smogon / pokemon-showdown

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

ECONNRESET Error on clean install #8890

Closed adzcai closed 2 years ago

adzcai commented 2 years ago

Hello, I've been trying to run the Pokemon Showdown server on a fresh EC2 instance, but after completing the installation steps, I get the following errors:

[ec2-user@{my host} pokemon-showdown]$ ./pokemon-showdown start --skip-build --no-security
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)

The server then does not start up. It's running the default Amazon Linux and Node LTS. Any ideas?

adzcai commented 2 years ago

Strange, I fixed it by deleting node_modules and then running npm install. Running npm install --production for some reason breaks it.