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

Help with cumulusmx.service

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
Palometero
Posts: 7
Joined: Tue 05 Oct 2021 8:47 pm
Weather Station: Weatherflow Tempest
Operating System: Raspberry Pi

Help with cumulusmx.service

Post by Palometero »

I have a new install of CumulusMX on a Raspberry Pi 4. 3.15.3 build 3173. If I start it from command line, it runs fine. I got a copy of the cumulusmx.service from the CumulusMX/MXutils/linux/ of the install, updated file path to /opt/CumulusMX/ and unfortunately it doesn't start. Any help troubleshooting this?

Here is it working from command line:

Code: Select all

 sudo mono /opt/CumulusMX/CumulusMX.exe
Cumulus MX v.3.15.3 build 3173
Working Dir: /opt/CumulusMX/
PuTTY X11 proxy: Unsupported authorisation protocol

Cumulus running at: http://localhost:8998/
                    http://192.168.1.66:8998/

  Open the admin interface by entering one of the above URLs into a web browser.

Today.ini = data/today.ini
Last update=2022-04-02T08:20:00
4/2/2022 8:24:17 AM
Type Ctrl-C to terminate
Processing history data for 5 records. 8:24:18 AM
Completed processing history data. 8:24:19 AM, Rate: 10.87/second
Normal running
This is the file:

Code: Select all

 cat /etc/systemd/system/cumulusmx.service
[Unit]
Description=CumulusMX service
Documentation=https://cumuluswiki.org/a/Main_Page
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
ExecStart=/usr/bin/mono-service -/opt/CumulusMX CumulusMX.exe -service
Type=forking
ExecStopPost=/bin/rm /tmp/CumulusMX.exe.lock

[Install]
WantedBy=multi-user.target
And this is what I get when i try to start from systemctl:

Code: Select all

 cumulusmx.service - CumulusMX service
     Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-04-02 08:26:17 EST; 30s ago
       Docs: https://cumuluswiki.org/a/Main_Page
    Process: 2585 ExecStart=/usr/bin/mono-service -/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
    Process: 2590 ExecStopPost=/bin/rm /tmp/CumulusMX.exe.lock (code=exited, status=1/FAILURE)
   Main PID: 2586 (code=exited, status=1/FAILURE)
        CPU: 734ms

Apr 02 08:26:16 rpi-piconsole systemd[1]: Starting CumulusMX service...
Apr 02 08:26:16 rpi-piconsole systemd[1]: Started CumulusMX service.
Apr 02 08:26:17 rpi-piconsole mono[2586]: -/opt/CumulusMX: Could not find assembly -/opt/CumulusMX
Apr 02 08:26:17 rpi-piconsole systemd[1]: cumulusmx.service: Main process exited, code=exited, status=1/FAILURE
Apr 02 08:26:17 rpi-piconsole rm[2590]: /bin/rm: cannot remove '/tmp/CumulusMX.exe.lock': No such file or directory
Apr 02 08:26:17 rpi-piconsole systemd[1]: cumulusmx.service: Control process exited, code=exited, status=1/FAILURE
Apr 02 08:26:17 rpi-piconsole systemd[1]: cumulusmx.service: Failed with result 'exit-code'.

Any Ideas what is wrong? Also if you need any other logs etc. let me know and I'll add them.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Help with cumulusmx.service

Post by freddie »

Pretty sure it's your ExecStart line - in particular this bit doesn't look correct:

-/opt/CumulusMX

I'll check mine in a tick.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Help with cumulusmx.service

Post by freddie »

freddie wrote: Sat 02 Apr 2022 1:41 pm Pretty sure it's your ExecStart line - in particular this bit doesn't look correct:

-/opt/CumulusMX

I'll check mine in a tick.
Mine looks like this:

Code: Select all

ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service
So it looks like there is a bit missing from yours - the "d:" bit between the "-" and the "/opt..."
Freddie
Image
Palometero
Posts: 7
Joined: Tue 05 Oct 2021 8:47 pm
Weather Station: Weatherflow Tempest
Operating System: Raspberry Pi

Re: Help with cumulusmx.service

Post by Palometero »

@freddie Thanks! That did it. I guess I assumed it was a d: from windows, so when I edited the path, I deleted it. :D :oops: ;)
Post Reply