Help with pokemon showdown server on Ubuntu

Hi everyone,
I didn't know where to post this (if this is the wrong place please direct me to the correct threads), but I have been having issues running a pokemon showdown server on my new ubuntu pc. I have nodejs installed (ver 14+). Here is the error log I get.


Error: Cannot find module '../config/config'
Require stack:
- /home/josef/Desktop/pokemon-showdown-master/server/config-loader.ts
- /home/josef/Desktop/pokemon-showdown-master/server/team-validator-async.ts
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.resolve (internal/modules/cjs/helpers.js:98:19)
at Object.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/server/config-loader.ts:23:29)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Module.m._compile (/home/josef/Desktop/pokemon-showdown-master/node_modules/ts-node/src/index.ts:1225:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Object.require.extensions.<computed> [as .ts] (/home/josef/Desktop/pokemon-showdown-master/node_modules/ts-node/src/index.ts:1228:12)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)




Thank you!
 
Okay so I did what you asked and it loads! It says the normal localhost:8000 message. The new issues is a crash report after said message. Here it is.

CRASH: Error: bind EADDRINUSE 0.0.0.0:8000
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)


thanks in advance!
 
here is the error log in the showdown server itself

The main process crashed: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnectedat ChildProcess.target.disconnect (internal/child_process.js:865:26)
at QueryProcessWrapper.destroy (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:185:16)
at QueryProcessWrapper.release (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:171:9)
at QueryProcessManager.releaseCrashed (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:438:16)
at ChildProcess.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:495:47)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.emit (domain.js:470:12)
at finish (internal/child_process.js:895:14)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
 

HoeenHero

The Misspelled Hero!
is a Battle Simulator Administratoris a Programmeris a Super Moderatoris a Community Contributoris a Live Chat Contributor
PS Admin
Okay so I did what you asked and it loads! It says the normal localhost:8000 message. The new issues is a crash report after said message. Here it is.

CRASH: Error: bind EADDRINUSE 0.0.0.0:8000
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)


thanks in advance!
This means that you have something else bound to port 8000, maybe another instance of the showdown server. Make sure you don't have the server running already.
here is the error log in the showdown server itself

The main process crashed: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnectedat ChildProcess.target.disconnect (internal/child_process.js:865:26)
at QueryProcessWrapper.destroy (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:185:16)
at QueryProcessWrapper.release (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:171:9)
at QueryProcessManager.releaseCrashed (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:438:16)
at ChildProcess.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:495:47)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.emit (domain.js:470:12)
at finish (internal/child_process.js:895:14)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
This is probably because of the previous error. I'd ignore it for now and work on the other issue.
 
mkay so I managed to get rid of

CRASH: Error: bind EADDRINUSE 0.0.0.0:8000
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)


by switching the port to "8080". There's less errors but here are the ones that still remain.

RESTORE CHATROOM: lobby
RESTORE CHATROOM: staff
/home/josef/Desktop/pokemon-showdown-master/node_modules/bindings/bindings.js:121
throw e;
^

Error: /home/josef/Desktop/pokemon-showdown-master/node_modules/better-sqlite3/build/Release/better_sqlite3.node: invalid ELF header
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at bindings (/home/josef/Desktop/pokemon-showdown-master/node_modules/bindings/bindings.js:112:48)
at Object.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/node_modules/better-sqlite3/lib/database.js:9:24)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
Worker 1 now listening on 0.0.0.0:8080
Test your server at http://localhost:8080

CRASH: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnected
at ChildProcess.target.disconnect (internal/child_process.js:865:26)
at QueryProcessWrapper.destroy (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:185:16)
at QueryProcessWrapper.release (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:171:9)
at QueryProcessManager.releaseCrashed (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:438:16)
at ChildProcess.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:495:47)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.emit (domain.js:470:12)
at finish (internal/child_process.js:895:14)
at processTicksAndRejections (internal/process/task_queues.js:77:11)


I figured it might be more helpful to put the full error log in
 

HoeenHero

The Misspelled Hero!
is a Battle Simulator Administratoris a Programmeris a Super Moderatoris a Community Contributoris a Live Chat Contributor
PS Admin
mkay so I managed to get rid of

CRASH: Error: bind EADDRINUSE 0.0.0.0:8000
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)


by switching the port to "8080". There's less errors but here are the ones that still remain.

RESTORE CHATROOM: lobby
RESTORE CHATROOM: staff
/home/josef/Desktop/pokemon-showdown-master/node_modules/bindings/bindings.js:121
throw e;
^

Error: /home/josef/Desktop/pokemon-showdown-master/node_modules/better-sqlite3/build/Release/better_sqlite3.node: invalid ELF header
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at bindings (/home/josef/Desktop/pokemon-showdown-master/node_modules/bindings/bindings.js:112:48)
at Object.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/node_modules/better-sqlite3/lib/database.js:9:24)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
Worker 1 now listening on 0.0.0.0:8080
Test your server at http://localhost:8080

CRASH: Error [ERR_IPC_DISCONNECTED]: IPC channel is already disconnected
at ChildProcess.target.disconnect (internal/child_process.js:865:26)
at QueryProcessWrapper.destroy (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:185:16)
at QueryProcessWrapper.release (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:171:9)
at QueryProcessManager.releaseCrashed (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:438:16)
at ChildProcess.<anonymous> (/home/josef/Desktop/pokemon-showdown-master/.lib-dist/process-manager.js:495:47)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.emit (domain.js:470:12)
at finish (internal/child_process.js:895:14)
at processTicksAndRejections (internal/process/task_queues.js:77:11)


I figured it might be more helpful to put the full error log in
One of your dependencies is crashing, try deleting the node_modules folder and re-installing dependencies with npm install --production.
 
One of your dependencies is crashing, try deleting the node_modules folder and re-installing dependencies with npm install --production.
Okay so I did what you asked and here is what happens when I try to boot, only one error to go!

$ node pokemon-showdown 8080
RESTORE CHATROOM: lobby
RESTORE CHATROOM: staff
Worker 1 now listening on 0.0.0.0:8080
Test your server at http://localhost:8080

CRASH: Error: bind EADDRINUSE 0.0.0.0:8080
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
 

HoeenHero

The Misspelled Hero!
is a Battle Simulator Administratoris a Programmeris a Super Moderatoris a Community Contributoris a Live Chat Contributor
PS Admin
Okay so I did what you asked and here is what happens when I try to boot, only one error to go!

$ node pokemon-showdown 8080
RESTORE CHATROOM: lobby
RESTORE CHATROOM: staff
Worker 1 now listening on 0.0.0.0:8080
Test your server at http://localhost:8080

CRASH: Error: bind EADDRINUSE 0.0.0.0:8080
at listenOnMasterHandle (net.js:1387:18)
at rr (internal/cluster/child.js:138:12)
at Worker.<anonymous> (internal/cluster/child.js:105:7)
at process.onInternalMessage (internal/cluster/utils.js:48:5)
at process.emit (events.js:387:35)
at process.emit (domain.js:470:12)
at emit (internal/child_process.js:910:12)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
Same issue as the last EADDRINUSE, check to see if you have showdown processes still running. EADDRINUSE will almost always mean that
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top