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

Installing two copies of v4 as a service

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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

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: Installing two copies of v4 as a service

Post by mcrossley »

:thumbsup:
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

when i ruining another copy off CMX its saying some files are missing but ive copied them all here is my service file
[Unit]
Description=CumulusMX2 service
Documentation=https://cumuluswiki.org/a/Main_Page https://cumulus.hosiene.co.uk/
Wants=network-online.target time-sync.target
After=network-online.target time-sync.target

[Service]
User=cmx
Group=cmx
WorkingDirectory=/home/cmx/CumulusMX/VP2
ExecStart="/usr/share/dotnet/dotnet" CumulusMX2.dll -service -port 9999
Type=simple

[Install]
WantedBy=multi-user.target


Jun 02 11:40:31 Cumulusmx systemd[1]: Started CumulusMX2 service.
Jun 02 11:40:31 Cumulusmx dotnet[117136]: A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/home/cmx/CumulusMX/VP2/'.
Jun 02 11:40:31 Cumulusmx dotnet[117136]: Failed to run as a self-contained app.
Jun 02 11:40:31 Cumulusmx dotnet[117136]: - The application was run as a self-contained app because '/home/cmx/CumulusMX/VP2/CumulusMX2.runtimeconfig.json' was not found.
Jun 02 11:40:31 Cumulusmx dotnet[117136]: - If this should be a framework-dependent app, add the '/home/cmx/CumulusMX/VP2/CumulusMX2.runtimeconfig.json' file and specify the appropriate framework.
Jun 02 11:40:31 Cumulusmx systemd[1]: cumulusmx2.service: Main process exited, code=exited, status=131/n/a
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
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: Installing two copies of v4 as a service

Post by mcrossley »

The CumulusMX.runtimeconfig.json file is included in the zip, so not sure why your second install does not have it?
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

Hey mate
Yes it is in that folder and if I run it just with the command it works great

But running as a service it throwing this error
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
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: Installing two copies of v4 as a service

Post by mcrossley »

file access rights then?
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

Yep I've checked that and permissions
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
SamiS
Posts: 510
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Installing two copies of v4 as a service

Post by SamiS »

Why do you have the number 2 on the filename CumulusMX2.dll on your service file? Because it seems to cause the system to assume the number 2 also in CumulusMX2.runtimeconfig.json which of course does not exist.
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

Because I'm following the guide what Mark said someone posted about running 2 cmx on the same machine as a different services
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
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: Installing two copies of v4 as a service

Post by mcrossley »

SamiS wrote: Sun 02 Jun 2024 7:35 pm Why do you have the number 2 on the filename CumulusMX2.dll on your service file? Because it seems to cause the system to assume the number 2 also in CumulusMX2.runtimeconfig.json which of course does not exist.
AH! Good spot!
SamiS
Posts: 510
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Installing two copies of v4 as a service

Post by SamiS »

So the correct way is to also rename the json, or not to rename the dll at the first place?
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: Installing two copies of v4 as a service

Post by freddie »

I seriously doubt you would need to rename DLLs. Perhaps the systemd service file.
Freddie
Image
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: Installing two copies of v4 as a service

Post by mcrossley »

Correct, just rename the service file. The DLLs should not be renamed.
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

I wish it was that easy just to re name the service file because I did and it still giving me the same error?
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

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: Installing two copies of v4 as a service

Post by freddie »

The service name has no bearing on this error message, so you must still have one of your renamed files present. Might be easier to reinstall both instances from the zip file.
Freddie
Image
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Installing two copies of v4 as a service

Post by dazza1223 »

hey there yes i did that but this what its saying

Code: Select all

● cumulusmx2.service - CumulusMX service
     Loaded: loaded (/etc/systemd/system/cumulusmx2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2024-06-07 13:34:52 BST; 3s ago
       Docs: https://cumuluswiki.org/a/Main_Page
             https://cumulus.hosiene.co.uk/
    Process: 21807 ExecStart=/usr/share/dotnet/dotnet CumulusMX.dll -service -port 9999 -lang en-GB>
   Main PID: 21807 (code=exited, status=1/FAILURE)
        CPU: 895ms

Jun 07 13:34:51 Cumulusmx systemd[1]: Started CumulusMX service.
Jun 07 13:34:52 Cumulusmx dotnet[21807]: Cumulus stopped
Jun 07 13:34:52 Cumulusmx systemd[1]: cumulusmx2.service: Main process exited, code=exited, status=>
Jun 07 13:34:52 Cumulusmx systemd[1]: cumulusmx2.service: Failed with result 'exit-code'.
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
Post Reply