Closed lolanchen closed 3 years ago
I'm not very familiar with Linux, to be honest, but the error looks to me like PS is having trouble spawning processes. The errors "EPIPE" and "ERR_IPC_DISCONNECTED" are all errors that mean "we tried to communicate with another process and failed", and "Unknown system error -122" means "quota exceeded".
My best guess is that you're using too much of some system resource. "After the crash, PS server cannot be started again" tells me that you might still have running processes fighting for resources. Something like killall node
might allow you to restart PS.
In the future, might I suggest using the simulator API directly?
https://github.com/smogon/pokemon-showdown/blob/master/sim/README.md
You can communicate with it using standard IO, and this will skip over a lot of overhead relating to server hosting and matchmaking.
Thanks for the quick answer! Killing all the node processes does solve the problem. Seems that it really was just a resource issue.
Yea I thought about using the simulator API in the beginning, but to implement a random matching system for a pool of python bots seems to be quite a bit of effort for someone who's never written a single line of Javascript in my whole life. The ladder has it implemented already, so I decided I might well just used the ladder.
Cheers!
Hi there!
I'm running a PS on a Ubuntu 18.04 server for a little reinforcement learning project.
I tweaked the config a little bit, following advice from friends, to make PS handle large amount of simultaneous battles better than the default setting.
I threw 32 bots on the ladder playing against each other to gather data, and it worked fine for a few days, until it crashed today. After the crash, PS server cannot be started again, as everytime I try to do so the following error would occur.
The version of showdown I'm using is
commit 82006cf3089adce77f88b81740818ae2e4b779dd
,changes on configs/source code are as follows.
How can I fix this ?
And besides, what else can I do to make PS's ladder better handle heavy loads coming from bots? (typically 100 battles / s and each battle lasts 30 ~ 100+ turns)
Thank you!