17CrazyBrain
17CrazyBrain

Reputation: 63

Hudson - Install as windows service Initialisation failure

Hudson - Install as Windows Service I am trying to install hudson build server on a windows xp. Path to the Hudson folder in the E:\Hudson. The Hudson directory contains the hudson.war file. I use the following command to navigate to Hudson dashboard.

java -jar E:\hudon\Hudson.war.

Then I can navigate to http://localhost:8080.

Now the problem is when I try to Install as Windows Service it is thrwoing the below exception.

**Installing a service
[hudsonhome] $ D:\hudsonhome\hudson.exe install
System.Management.ManagementException: Initialization failure 
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementScope.Connect()
   at WMI.WmiRoot..ctor(String machineName)
   at WMI.WmiRoot..ctor()
   at winsw.WrapperService.Run(String[] _args)
   at winsw.WrapperService.Main(String[] args)**

Is there any one who faced the same issue. Why it is throwing such an exception?

Upvotes: 1

Views: 598

Answers (1)

VonC
VonC

Reputation: 1323753

The only case of "Initialization failure" I know about (regarding WMI) is when the WMI repository is corrupted: see "Rebuilding WMI Repository".
Your context is a bit different, and the script detailed in the article might not be the right one for you, but before executing any script anyway, it is still worth to check if the WMI repo is corrupted or not, before attempting to rebuild it.

Upvotes: 1

Related Questions