deStrO / eBot-CSGO

The eBot is a full managed server-bot written in PHP and nodeJS. eBot features easy match creation and tons of player and matchstats. Once it's setup, using the eBot is simple and fast.
http://www.esport-tools.net/ebot
376 stars 140 forks source link

eBot bugged [fixed] #97

Closed mrc4tt closed 8 years ago

mrc4tt commented 8 years ago

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!)

deStrO commented 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)

mrc4tt commented 8 years ago

So you will recommend i need to use "forever" ? :)

deStrO commented 8 years ago

Yep :)

mrc4tt commented 8 years ago

I will do it, for next tournament i hosting! ;) - it's very good! i waiting for you reply on private email! :)

mrc4tt commented 8 years ago

I forget to ask:

just this? forever start bootstrap.php ?

deStrO commented 8 years ago

forever start websocket_server.js ip port

mrc4tt commented 8 years ago

@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?

deStrO commented 8 years ago

As I said, you need to comment in bootstrap.php that part. From line 83 to line 112, you can comment them all.

mrc4tt commented 8 years ago

aka remove the code? or just set // ?

mrc4tt commented 8 years ago

i did restart the forever start of websocket_server.js - it works. After some minutes, it goes down again.

mrc4tt commented 8 years ago

New error under websocket_server.js

SyntaxError: Unexpected token � at Object.parse (native) at Socket. (/home/ebot/ebot-csgo/websocket_server.js:166:30) at emitTwo (events.js:100:13) at Socket.emit (events.js:185:7) at UDP.onMessage (dgram.js:529:8)

deStrO commented 8 years ago

Be carreful, you need to launch the websocket on the exact same IP + PORT

mrc4tt commented 8 years ago

Got anything fixed, i did remove some wrong codes! ;)

b0rZ84 commented 7 years ago

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? :)

b0rZ84 commented 7 years ago

Okay, restarting the server solved this. Funny. :)