Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Weird shutdown

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
HansR
Posts: 5964
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Weird shutdown

Post by HansR »

I normally shutdown CumulusMX daily at 9:00 hrs for a backup and about a minute later it restarts. That's been going on like that since I restarted June last year.
This morning I had some kind of failure (see last logile, no debugging).
I make the following remarks:
  1. My experimentation with MQTT left cumulus trying to connect continuously with a non-existing MQTT server. It could have stopped that after failing three times (and not modifying the connection data) It floods the logfile.
  2. There were repetitive stackdump failures at shutdown (see end of last logfile).
  3. My Cumulus.ini file was completely reinitialised when starting up.
Had to restore the ini from my backup, system running again but it was kind of a shock. I deleted MQTT connection data of course. Did not yet activate debug logging, but in the light of recent changes in the shutdown code I thought it useful to mention. I'll keep my eyes open.
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12764
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Weird shutdown

Post by mcrossley »

MQTT - yep early days, reconnection needs some love.

Errors on close: Seem benign, the data reading thread continued after the port was closed. We often see things like that. The shutdown code is not as complete as it could be.

Cumulus.ini - odd as you can see in the log it says it completed writing to Cumulus.ini, then wrote today.ini. I have a question to myself about if those files need to be written at all on shutdown.
User avatar
HansR
Posts: 5964
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Weird shutdown

Post by HansR »

Yes, the shutdown itself and the MQTT are not high priority. A message to the user to switch it off when continued failing might be useful.
mcrossley wrote: Tue 02 Jun 2020 3:08 pm Cumulus.ini - odd as you can see in the log it says it completed writing to Cumulus.ini, then wrote today.ini. I have a question to myself about if those files need to be written at all on shutdown.
I think files are only written if at least one parameter has changed value.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply