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
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
Moderator: mcrossley
- 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
when i ruining another copy off CMX its saying some files are missing but ive copied them all here is my service file
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
[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
- 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
The CumulusMX.runtimeconfig.json file is included in the zip, so not sure why your second install does not have it?
- 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
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
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
- 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
Yep I've checked that and permissions
-
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
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.
- 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
Because I'm following the guide what Mark said someone posted about running 2 cmx on the same machine as a different services
- 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
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
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
I seriously doubt you would need to rename DLLs. Perhaps the systemd service file.
- 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
Correct, just rename the service file. The DLLs should not be renamed.
- 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
I wish it was that easy just to re name the service file because I did and it still giving me the same error?
-
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
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.
- 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
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'.