Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get the server running #311

Closed
mitchngwen opened this issue May 12, 2021 · 3 comments
Closed

Can not get the server running #311

mitchngwen opened this issue May 12, 2021 · 3 comments

Comments

@mitchngwen
Copy link

Hi i have spent hours trying to get this to work, I just can not seem to get the server running. Any help would be awesome as I would like to play this with my family. Below is the code from my terminal:

mitch@pop-os:~/Documents/server-develop$ npm start

@runejs/[email protected] start
npm run build && concurrently "npm run build:watch" "npm run start:infra" "npm run start:game"

@runejs/[email protected] build
rimraf dist && babel ./src --out-dir dist --extensions ".ts,.tsx,.js" --source-maps

Successfully compiled 242 files with Babel (5903ms).
[2]
[2] > @runejs/[email protected] start:game
[2] > nodemon --delay 5000ms --max-old-space-size=2048 dist/index.js
[2]
[1]
[1] > @runejs/[email protected] start:infra
[1] > concurrently "npm run start:update" "npm run start:login"
[1]
[0]
[0] > @runejs/[email protected] build:watch
[0] > babel ./src --out-dir dist --extensions ".ts,.tsx,.js" --source-maps --watch
[0]
[2] [nodemon] 2.0.6
[2] [nodemon] reading config ./nodemon.json
[2] [nodemon] to restart at any time, enter rs
[2] [nodemon] or send SIGHUP to 53580 to restart
[2] [nodemon] ignoring: ./src/plugins//*
[2] [nodemon] watching path(s): src/
/*
[2] [nodemon] watching extensions: ts,js
[2] [nodemon] starting node --max-old-space-size=2048 dist/index.js
[2] [nodemon] spawning
[2] [nodemon] child pid: 53608
[2] [nodemon] watching 129 files
[2] node:internal/modules/cjs/loader:1168
[2] return process.dlopen(module, path.toNamespacedPath(filename));
[2] ^
[2]
[2] Error: /home/mitch/Documents/server-develop/node_modules/canvas/build/Release/libcairo.so.2: cannot read file data
[2] at Object.Module._extensions..node (node:internal/modules/cjs/loader:1168:18)
[2] at Module.load (node:internal/modules/cjs/loader:989:32)
[2] at Function.Module._load (node:internal/modules/cjs/loader:829:14)
[2] at Module.require (node:internal/modules/cjs/loader:1013:19)
[2] at require (node:internal/modules/cjs/helpers:93:18)
[2] at Object. (/home/mitch/Documents/server-develop/node_modules/canvas/lib/bindings.js:3:18)
[2] at Module._compile (node:internal/modules/cjs/loader:1109:14)
[2] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
[2] at Module.load (node:internal/modules/cjs/loader:989:32)
[2] at Function.Module._load (node:internal/modules/cjs/loader:829:14) {
[2] code: 'ERR_DLOPEN_FAILED'
[2] }
[2] [nodemon] app crashed - waiting for file changes before starting...
[1] [1]
[1] [1] > @runejs/[email protected] start:login
[1] [1] > node --max-old-space-size=1024 dist/game-engine/login-server.js
[1] [1]
[1] [0]
[1] [0] > @runejs/[email protected] start:update
[1] [0] > node --max-old-space-size=1024 dist/game-engine/update-server.js
[1] [0]
[1] [0] node:internal/modules/cjs/loader:1168
[1] [0] return process.dlopen(module, path.toNamespacedPath(filename));
[1] [0] ^
[1] [0]
[1] [0] Error: /home/mitch/Documents/server-develop/node_modules/canvas/build/Release/libcairo.so.2: cannot read file data
[1] [0] at Object.Module._extensions..node (node:internal/modules/cjs/loader:1168:18)
[1] [0] at Module.load (node:internal/modules/cjs/loader:989:32)
[1] [0] at Function.Module._load (node:internal/modules/cjs/loader:829:14)
[1] [0] at Module.require (node:internal/modules/cjs/loader:1013:19)
[1] [0] at require (node:internal/modules/cjs/helpers:93:18)
[1] [0] at Object. (/home/mitch/Documents/server-develop/node_modules/canvas/lib/bindings.js:3:18)
[1] [0] at Module._compile (node:internal/modules/cjs/loader:1109:14)
[1] [0] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
[1] [0] at Module.load (node:internal/modules/cjs/loader:989:32)
[1] [0] at Function.Module._load (node:internal/modules/cjs/loader:829:14) {
[1] [0] code: 'ERR_DLOPEN_FAILED'
[1] [0] }
[1] [0] npm run start:update exited with code 1
[1] [1] [2021-05-12T05:26:40.415Z] INFO (53647 on pop-os): Login Server listening @ 0.0.0.0:43591.
[0] Successfully compiled 242 files with Babel (6123ms).

@src52
Copy link
Contributor

src52 commented May 13, 2021

Hello,

I haven't seen an error like this before, but you could try to do a fresh re-install of the packages by deleting the node_modules folder, and running npm install from that directory. I'd be interested in seeing if it has any problems there.

@mitchngwen
Copy link
Author

That was the Trick! Thank you very much for your help!

@Tynarus
Copy link
Member

Tynarus commented May 13, 2021

Gonna close this as it was resolved. :)

@Tynarus Tynarus closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants