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

Create service fails (Win10 Cumulusmx4)

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

Post Reply
GSV3MiaC
Posts: 28
Joined: Fri 15 Feb 2013 5:24 pm
Weather Station: Davis Vantage Vue.
Operating System: Win 10, rasp Pi, etc.
Location: Shropshire

Create service fails (Win10 Cumulusmx4)

Post by GSV3MiaC »

Moved it back from a (dead) Pi3b to windows, and tried to install as a service, but get:

c:\CumulusMX4>cumulusmx -install
Installing as a Windows Service...
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
A space is required between the equal sign and the value.
type= <own|share|interact|kernel|filesys|rec|userown|usershare>
(default = own)
start= <boot|system|auto|demand|disabled|delayed-auto>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName to the .exe file>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>

Cumulus MX failed to install as service

2024-06-15 13:10:35.666 Cumulus terminating

so what as I doing wrong, do I need to provide more than just the -install option??
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: Create service fails (Win10 Cumulusmx4)

Post by SamiS »

You probably have to open your command prompt or powershell via ”run as administrator” to get permissions required to install services.
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: Create service fails (Win10 Cumulusmx4)

Post by mcrossley »

Worth a try, but MX should request elevation.
golfgod56
Posts: 3
Joined: Wed 27 Jul 2016 10:48 pm
Weather Station: Ambient Weather
Operating System: Windows 10
Location: Illinois

Re: Create service fails (Win10 Cumulusmx4)

Post by golfgod56 »

I got it to install the service using the following:

To create a Windows Service from an executable, you can use sc.exe:

sc.exe create <new_service_name> binPath= "<path_to_the_service_executable>"

You must have quotation marks around the actual exe path, and a space after the binPath=

Hope this helps.
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: Create service fails (Win10 Cumulusmx4)

Post by mcrossley »

Did your install path contain spaces?
User avatar
lse-cumulus
Posts: 102
Joined: Mon 11 Jul 2022 3:39 am
Weather Station: Fine Offset Ecowitt
Operating System: Windows 11
Location: Austria
Contact:

Re: Create service fails (Win11 Cumulusmx4.3.2)

Post by lse-cumulus »

I had a similar problem when trying to Run Cumulus MX v4.3.2 as service under Windows 11.
Did also not work when Run CMD as Administrator.
Solution was to run sc.exe manually in a command box with administrator rights and then making some manual adjustments in Windows Services GUI (like start=automatic).

Code: Select all

C:\Wetterstation.Cumulus.MX\CumulusMXDist3184\CumulusMX>CumulusMX.exe -install
Installing as a Windows Service...
BESCHREIBUNG:
        Erstellt einen Diensteintrag in der Registrierung und der
        Dienstdatenbank.
SYNTAX:
        sc <Server> create [Dienstname] [binPath= ] <Option1> <Option2>...

OPTIONEN:
HINWEIS: Der Optionsname enthält das Gleichheitszeichen.
         Zwischen dem Gleichheitszeichen und dem Wert wird eine Leerstelle
         benötigt.
 type= <own|share|interact|kernel|filesys|rec|userown|usershare>
       (Standard = own)
 start= <boot|system|auto|demand|disabled|delayed-auto>
       (Standard = demand)
 error= <normal|severe|critical|ignore>
       (Standard = normal)
 binPath= <Binärpfadname zur EXE-Datei>
 group= <LoadOrderGroup>
 tag= <yes|no>
 depend= <Abhängigkeiten (getrennt durch / (Schrägstrich))>
 obj= <AccountName|ObjectName>
       (default = LocalSystem)
 DisplayName= <Anzeigename>
 password= <Kennwort>

Cumulus MX failed to install as service

2025-01-05 08:17:32.042 Cumulus terminating

Code: Select all

C:\Wetterstation.Cumulus.MX\CumulusMXDist3184\CumulusMX>sc.exe create CumulusMXservice binPath="C:\Wetterstation.Cumulus.MX\CumulusMXDist3184\CumulusMX\CumulusMX.exe"
[SC] CreateService ERFOLG
Leo

Ecowitt GW2000/WS90/Wittboy/GW1000/WS2910/WH65/WH31/WH34S/WH41/WH45/WH51/WH57/HP10/WN35/LDS01
AWEKAS/CWOP/PWS/Weathercloud/Windy/WOW/WU/WxSim/CMX/CU
https://leonas.ddns.net/index.html

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: Create service fails (Win10 Cumulusmx4)

Post by mcrossley »

OK, found the problem, fixed for the next build
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: Create service fails (Win10 Cumulusmx4)

Post by mcrossley »

MX uses the command line

Code: Select all

sc.exe create CumulusMX binPath= "{path}" start= delayed-auto depend= Netman obj= "NT Authority\NetworkService"
Post Reply