Closed mrc4tt closed 8 years ago
Sometimes the websocket is crashing inside the php daemon and it's not auto restarted. What I do in my case: I comment the nodejs start code and I launch it with "forever" (npm install -g forever)
So you will recommend i need to use "forever" ? :)
Yep :)
I will do it, for next tournament i hosting! ;) - it's very good! i waiting for you reply on private email! :)
I forget to ask:
just this? forever start bootstrap.php ?
forever start websocket_server.js ip port
@deStrO - i did the command with forever start.
Websocket Online. How to start eBot up? if i try: php bootstrap.php > error: Websocket Server crashed.
What can i do?
As I said, you need to comment in bootstrap.php that part. From line 83 to line 112, you can comment them all.
aka remove the code? or just set // ?
i did restart the forever start of websocket_server.js - it works. After some minutes, it goes down again.
New error under websocket_server.js
SyntaxError: Unexpected token �
at Object.parse (native)
at Socket.
Be carreful, you need to launch the websocket on the exact same IP + PORT
Got anything fixed, i did remove some wrong codes! ;)
Hi,
I have the same problem (ebot status stuck: Loading), websocket running, bootstrap.php running. Tried running forever but didn't work out.
~/ebot$ forever start websocket_server.js 79.172.xxx.xxx 12361 warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: websocket_server.js
websocket.log:
info: socket.io started Thu Jul 20 2017 15:07:03 GMT+0200 (CEST) Server is listening on port 12360 UDP Server listening on 79.172.xxx.xxx:12361
Any idea why this happen? :)
Okay, restarting the server solved this. Funny. :)
Hello,
the status with: Websocket online eBot online Sound ON:
It' just bugged. some minutes it show "Loading...." where the bootstrap.php is running behind screen.
What can i do?
After it just show: Loading... Loading...
(Where the other buttons dont works - without i need to restart the bootstrap each 5 minutes 24/7!)