Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

CumulusMX.Servce Issue

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
DeerWeather
Posts: 16
Joined: Mon 23 Dec 2013 8:20 pm
Weather Station: Davis Vantage Vue
Operating System: WIN7PRO
Location: USA-Indiana

CumulusMX.Servce Issue

Post by DeerWeather »

Hello all, I am running MX on a Raspberry PI Zero W attached to a Davis Vue Console / datalogger. Been working for years on a PI-3, I am just trying to move my system to the smaller platform.

When I start MX things with : sudo mono /opt/CumulusMX/CumulusMX.exe Everything works fine.

However, I am having issue running MX as a service.

I run this command to configure the service: sudo nano /etc/systemd/system/cumulusmx.service

[Unit]
Description=CumulusMX weather station software
After=network.target

[Service]
WorkingDirectory=/opt/CumulusMX/
ExecStart=/usr/bin/mono CumulusMX.exe
Restart=on-failure
User=frank

[Install]
WantedBy=multi-user.target


Here is the service status immediately after starting the service:


● cumulusmx.service - CumulusMX weather station software
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor pre>
Active: active (running) since Sat 2024-02-03 20:09:16 CST; 18s ago
Main PID: 3280 (mono)
Tasks: 12 (limit: 414)
CPU: 13.797s
CGroup: /system.slice/cumulusmx.service
└─3280 /usr/bin/mono CumulusMX.exe

Feb 03 20:09:16 raspberrypi systemd[1]: Started CumulusMX weather station softw>
Feb 03 20:09:21 raspberrypi mono[3280]: Cumulus MX v.3.28.3 build 3280
Feb 03 20:09:21 raspberrypi mono[3280]: Working Dir: /opt/CumulusMX/
Feb 03 20:09:27 raspberrypi mono[3280]: Error while attempting to read/delete f>
lines 1-13/13 (END)
● cumulusmx.service - CumulusMX weather station software
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-02-03 20:09:16 CST; 18s ago
Main PID: 3280 (mono)
Tasks: 12 (limit: 414)
CPU: 13.797s
CGroup: /system.slice/cumulusmx.service
└─3280 /usr/bin/mono CumulusMX.exe

Feb 03 20:09:16 raspberrypi systemd[1]: Started CumulusMX weather station software.
Feb 03 20:09:21 raspberrypi mono[3280]: Cumulus MX v.3.28.3 build 3280
Feb 03 20:09:21 raspberrypi mono[3280]: Working Dir: /opt/CumulusMX/
Feb 03 20:09:27 raspberrypi mono[3280]: Error while attempting to read/delete folder: backup/20240202214456, error message: Directory not empty



Then when I check the status again, I see this:

● cumulusmx.service - CumulusMX weather station software
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor pre>
Active: active (running) since Sat 2024-02-03 20:09:16 CST; 1min 55s ago
Main PID: 3280 (mono)
Tasks: 13 (limit: 414)
CPU: 30.225s
CGroup: /system.slice/cumulusmx.service
└─3280 /usr/bin/mono CumulusMX.exe

Feb 03 20:09:38 raspberrypi mono[3280]: http://10.0.0.240:8>
Feb 03 20:09:38 raspberrypi mono[3280]: Open the admin interface by entering >
Feb 03 20:09:38 raspberrypi mono[3280]: Opening station type 1 - Davis Vantage >
Feb 03 20:09:39 raspberrypi mono[3280]: Last update: 2024-02-03T19:35:00
Feb 03 20:09:42 raspberrypi mono[3280]: 2024-02-03 20:09:42 Error opening seria>
Feb 03 20:09:42 raspberrypi mono[3280]: Will retry in 30 seconds...
Feb 03 20:10:12 raspberrypi mono[3280]: 2024-02-03 20:10:12 Error opening seria>
Feb 03 20:10:12 raspberrypi mono[3280]: Will retry in 30 seconds...
Feb 03 20:10:42 raspberrypi mono[3280]: 2024-02-03 20:10:42 Error opening seria>
Feb 03 20:10:42 raspberrypi mono[3280]: Will retry in 30 seconds...
lines 1-19/19 (END)
● cumulusmx.service - CumulusMX weather station software
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-02-03 20:09:16 CST; 1min 55s ago
Main PID: 3280 (mono)
Tasks: 13 (limit: 414)
CPU: 30.225s
CGroup: /system.slice/cumulusmx.service
└─3280 /usr/bin/mono CumulusMX.exe

Feb 03 20:09:38 raspberrypi mono[3280]: http://10.0.0.240:8998/
Feb 03 20:09:38 raspberrypi mono[3280]: Open the admin interface by entering one of the above URLs into a web browser.
Feb 03 20:09:38 raspberrypi mono[3280]: Opening station type 1 - Davis Vantage Pro2
Feb 03 20:09:39 raspberrypi mono[3280]: Last update: 2024-02-03T19:35:00
Feb 03 20:09:42 raspberrypi mono[3280]: 2024-02-03 20:09:42 Error opening serial port - Permission denied
Feb 03 20:09:42 raspberrypi mono[3280]: Will retry in 30 seconds...
Feb 03 20:10:12 raspberrypi mono[3280]: 2024-02-03 20:10:12 Error opening serial port - Permission denied
Feb 03 20:10:12 raspberrypi mono[3280]: Will retry in 30 seconds...
Feb 03 20:10:42 raspberrypi mono[3280]: 2024-02-03 20:10:42 Error opening serial port - Permission denied
Feb 03 20:10:42 raspberrypi mono[3280]: Will retry in 30 seconds...

Tinkering around with it yesterday I somehow managed to get the service up and running and it ran for 24 hours perfectly until I needed to re-boot the zero.
I am close for sure but need some help with some tweaks my cumululsMX.service config.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CumulusMX.Servce Issue

Post by mcrossley »

There is a sample service file in the zip.

When running as a service under Linux, MX must be started with the -service parameter
DeerWeather
Posts: 16
Joined: Mon 23 Dec 2013 8:20 pm
Weather Station: Davis Vantage Vue
Operating System: WIN7PRO
Location: USA-Indiana

Re: CumulusMX.Servce Issue

Post by DeerWeather »

That worked and everything seems to be fine now!! THANK YOU and have a great day!
Post Reply