smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.65k stars 2.71k forks source link

Error: read ECONNRESET when using Ubuntu 20.04 on WSL2 #8949

Open kasmith11 opened 1 year ago

kasmith11 commented 1 year ago

When following the Getting Started guide, I am getting CRASH: Error: read ECONNRESET when running node pokemon-showdown start --no-security using Ubuntu 20.04 on WSL2

`RESTORE CHATROOM: lobby RESTORE CHATROOM: staff

CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)

CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)

CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)

Worker 1 now listening on 0.0.0.0:8000 Test your server at http://localhost:8000

TecToast commented 1 year ago

Don't know why this is happening, but I had the same problem and I figured out that the reason is the Repl Server, which can be toggled off in the config (exports.repl = true is the default) if you don't need it

singiamtel commented 1 year ago

I think this is Artemis crashing

baskuit commented 1 year ago

Similar error on Kubuntu 22.04. Have not been able to use showdown on any of my linux distros in months.

baskuit commented 1 year ago

I was able to fix this on my Kubuntu 22.04 by rolling back to the last version of NodeJS 14 @kasmith11

kasmith11 commented 1 year ago

@baskuit do you have the specific NodeJS version number?

baskuit commented 1 year ago

node-v14.21.1 @kasmith11

JoshElias commented 1 year ago

Running into this issue as well in Arch Linux. using v14.21.1 did resolve the issue. Will reply if I find what is causing this.