Username: Password:

Author Topic: Dashboard hanging due to websocket connection refused  (Read 7075 times)

Offline wootnoob

  • Rookie
  • *
  • Posts: 3
    • View Profile
Dashboard hanging due to websocket connection refused
« 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

Offline wootnoob

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #1 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


Offline zank

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #2 on: February 04, 2018, 12:57:17 AM »
You are my man! Had the same misstake all day long!

Offline MoZvy

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #3 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?

Offline MoZvy

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #4 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

Offline Blianga

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #5 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!

Offline mobile_dan

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Dashboard hanging due to websocket connection refused
« Reply #6 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