Page 1 of 1

Create service fails (Win10 Cumulusmx4)

Posted: Sat 15 Jun 2024 12:19 pm
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??

Re: Create service fails (Win10 Cumulusmx4)

Posted: Sat 15 Jun 2024 7:18 pm
by SamiS
You probably have to open your command prompt or powershell via ”run as administrator” to get permissions required to install services.

Re: Create service fails (Win10 Cumulusmx4)

Posted: Tue 18 Jun 2024 2:18 pm
by mcrossley
Worth a try, but MX should request elevation.

Re: Create service fails (Win10 Cumulusmx4)

Posted: Sat 29 Jun 2024 2:07 am
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.

Re: Create service fails (Win10 Cumulusmx4)

Posted: Fri 12 Jul 2024 10:01 pm
by mcrossley
Did your install path contain spaces?

Re: Create service fails (Win11 Cumulusmx4.3.2)

Posted: Sun 05 Jan 2025 7:44 am
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

Re: Create service fails (Win10 Cumulusmx4)

Posted: Sun 05 Jan 2025 10:48 am
by mcrossley
OK, found the problem, fixed for the next build

Re: Create service fails (Win10 Cumulusmx4)

Posted: Sun 05 Jan 2025 10:49 am
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"