Page 1 of 1

Cumulus 3107 crashes when I use the :8998 site

Posted: Tue 09 Feb 2021 12:21 pm
by martinu
I've noticed a number of instances when Cumulus has crashed (no access to 8998 site, no mono process running) while I've been using the 8998 site.

Running on Raspberry Pi 3 B+. (Raspbian Stretch) "uname -a" gives "Linux martin-pi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux". "dpkg-query -l" output is in attached dpkg.txt file.


It's happened when I've been accessing the Select-a-Chart (typically when I add the first data line - which displays OK - and I then add a second line), or when I've been in the Settings menu (when I tried to enable Spike Removal in alarms, or when I tried to turn on Debug).

The log files in MXdiags don't really help. I was hoping that I could turn on debugging so you'd get more diagnostics, but as soon as I press Save after ticking the Debug logging and Data logging, it crashes. Is there a way for me to hand-edit the Cumulus.ini file so it starts in Debug mode?


I'm starting Cumulus manually using "sudo ./cumulusmx.sh". I also auto-start it at boot time, I *think* from init.d (can't remember: it's so long ago since I set that up. for a much earlier build of Cumulus).

I've attached a couple of MXdiags files which show that Cumulus had only just started, but as soon as I went into Settings on the 8998 site to turn on debugging, it crashed. I've also attached an "ls -lR" output of the CumulusMX directory and everything below it, in case there's a permissions problem, and the output of "ps -alef | grep Cum" to show the command line options for the "mono CumulusMX.exe" process.

As far as I can remember, the CumulusMX tree structure is unchanged from when I was running b3086, apart from expanding the 3107 ZIP over the top of it and then modifying the web/*T.htm templates, and the webfiles/js/*.js and interfaces/js/*.js files to customise the graphs (eg labelling the 00:00 time on the graphs in red to make it easier to see when a new date starts, and disabling the display of the navigation panel when graphs are exported to PNG, PDF, SVG etc).
dpkg.txt
20210209-114139.txt
20210209-114348.txt
ps.txt
ls.txt
20210207-161943.zip
(the last log file is for the first time I ran b3107, when it ran for 3 days until it crashed when I was running Select-a-Graph on the 8998 site).

Cumulus seems run reliably until I start using the 8998 site...

All accesses to the 8998 site have been from Firefox on a Windows 7 PC, rather from a browser on the Pi.

Re: Cumulus 3107 crashes when I use the :8998 site

Posted: Tue 09 Feb 2021 1:39 pm
by sutne
You are running mono version 4.
This is a known problem.
You must upgrade to mono version 5 or 6.

Re: Cumulus 3107 crashes when I use the :8998 site

Posted: Tue 09 Feb 2021 1:46 pm
by martinu
Ah. I must have missed the mention in one of the build release notes to upgrade to Mono 5 or 6. Do I need to uninstall Mono 4, or if I install Mono 5 or 6, will it remove/update the Mono 4 files? I've been keeping the Pi up to date with sudo apt update and sudo apt full-upgrade, but evidently this doesn't update Mono.

Re: Cumulus 3107 crashes when I use the :8998 site

Posted: Tue 09 Feb 2021 1:59 pm
by sutne
Following this link you will have the latest version.

It will overwrite existing mono.

https://www.mono-project.com/download/s ... n-raspbian

Re: Cumulus 3107 crashes when I use the :8998 site

Posted: Tue 09 Feb 2021 2:09 pm
by martinu
Excellent: the link that I found was the same one, so I'm doing it correctly! And the ongoing status messages talk about overwriting 6.x.x over 4.x.x.


UPDATE: Cumulus started OK and seems to be behaving itself now. Thanks for you help, sutne.