Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: wootnoob on February 03, 2018, 11:27:20 PM

Title: Dashboard hanging due to websocket connection refused
Post by: wootnoob on February 03, 2018, 11:27:20 PM
Hi guys,

I've just installed gunbot 8 on a linux vps (ubuntu 16 lts) and the core engine runs fine, but I'm having a problem when I connect to the gui dashboard on port 5000. The 'pairs' section of the page shows the loading spinner spinning indefinitely, and if I inspect this element I see the following error:

app.3d2ce6de004cb9319853.js:sourcemap:1 WebSocket connection to 'ws://127.0.0.1:5282/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

If I leave it running the errors pile up into the thousands and the page hangs, and I need to kill the google chrome helper. I've disabled the firewall on the server, and I'm using MacOS / Chrome to connect.

Any suggestions would be much appreciated.

Cheers
Wootnoob
Title: Re: Dashboard hanging due to websocket connection refused
Post by: wootnoob on February 04, 2018, 12:34:53 AM
SOLVED IT by adding my server ip to gui settings>websockets>hostname

Also needed to open up range of ports in the firewall for the websocket, as annoyingly it seems to choose a different one each time on startup
sudo ufw allow 5000:6000/tcp

Title: Re: Dashboard hanging due to websocket connection refused
Post by: zank on February 04, 2018, 12:57:17 AM
You are my man! Had the same misstake all day long!
Title: Re: Dashboard hanging due to websocket connection refused
Post by: MoZvy on February 05, 2018, 11:54:13 AM
I'm having the same error, however this solution doesn't work for me.
Any other suggestions?
Title: Re: Dashboard hanging due to websocket connection refused
Post by: MoZvy on February 05, 2018, 12:11:26 PM
On second thought I receive a different error in the debug console, although the same spinner showing.

The error is:
Unexpected value NaN parsing y1 attribute. markup.js:331:6
Title: Re: Dashboard hanging due to websocket connection refused
Post by: Blianga on February 09, 2018, 08:17:05 PM
This should be added to the main wiki in the debug section. I had the same issue!
Title: Re: Dashboard hanging due to websocket connection refused
Post by: mobile_dan on February 10, 2018, 09:38:02 AM
 :D :D :D ;D ;D ;D :D :D ;D ;D :D :D

Thanks for your post,  in my case it was only the hostname that I needed to change.


 :D ;D :D :D ;D :D :D ;D :D :D ;D ;D