Page 1 of 1

PC browser loses connection to Cumulus on Pi, why

Posted: Sat 22 Feb 2020 7:36 pm
by Dublin-Bay-Prawn
I have recently got CumulusMX running on a Pi2. Data is being collected from the Fine Offset weather station stored and sent to Wunderground.

If I re-start the Pi whilst the PC is running, I can access the Cumulus Dashboard from the PC Firefox browser......great

If I re-start the PC whilst the Pi is running, I cannot connect to the Cumulus Dashboard (meanwhile the Pi is still running and sending data to Wunderground).

Why can I not re-connect to (PI-wifi-IP):8998 only after a PC re-boot?

When I setup the Pi I followed the "sticky" and did the

Code: Select all

"sudo crontab -e"
and

Code: Select all

"# Start Cumulus as background task 30s after reboot (delay to allow WiFi to startup)
@reboot (sleep 30;cd /home/pi/CumulusMX;sudo mono CumulusMX.exe) &

# Reboot each day at 0253
53 02 * * * sudo reboot"
But, I read on the thread viewtopic.php?f=27&t=17680&hilit=dashboard

that
I assume you started Cumulus as root using "sudo mono CumulusMX.exe", because the 200 code means "Such a response means the remote resource located at the URL doesn't listen or at least can't respond to a websocket request."., which would happen if Cumulus could not open the listening port because it was started incorrectly.
If I do "sudo mono CumulusMX.exe" at root, I get the response "No such file or directory"

Have I set up something incorrectly here?

Re: PC browser loses connection to Cumulus on Pi, why

Posted: Sat 22 Feb 2020 8:05 pm
by freddie
You need to do "sudo mono CumulusMX.exe" in the directory in which CumulusMX.exe is located.

Re: PC browser loses connection to Cumulus on Pi, why

Posted: Sun 23 Feb 2020 9:41 am
by Dublin-Bay-Prawn
You need to do "sudo mono CumulusMX.exe" in the directory in which CumulusMX.exe is located.
freddie, this is the only way that Cumulus will run. If I start it at root I get the message "No such file or directory".

I mentioned the thread viewtopic.php?f=27&t=17680&hilit=dashboard because he also had problems connecting a browser to his dashboard.

To fix this water01 said
I assume you started Cumulus as root using "sudo mono CumulusMX.exe", because the 200 code means "Such a response means the remote resource located at the URL doesn't listen or at least can't respond to a websocket request."., which would happen if Cumulus could not open the listening port because it was started incorrectly.
I can't start Cumulus in root, Is this why Firefox will not re-connect to the Pi Cumulus dashboard?

Re: PC browser loses connection to Cumulus on Pi, why

Posted: Sun 23 Feb 2020 11:45 am
by freddie
You're not being asked to start CUMULUS MX in root - you're being asked to start CumulusMX AS root. Hence the "sudo" part of the command. You should always start it in the location it is installed.

Re: PC browser loses connection to Cumulus on Pi, why

Posted: Sun 23 Feb 2020 1:38 pm
by water01
As Freddie said I said start CumulusMX AS root (hence the SUDO command) NOT start it IN Root.

Re: PC browser loses connection to Cumulus on Pi, why

Posted: Sun 23 Feb 2020 1:47 pm
by Dublin-Bay-Prawn
Ahh OK, thanks. Sorry still learning (and a long way to go!).