Wednesday, September 1, 2010

Error while starting hudson as a service on Windows

Error

Installing a service
[hudson] $ C:\hudson\hudson.exe install
WMI.WmiException: StatusServiceExists
   at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
   at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
   at WMI.Win32ServicesProxy.Create(String , String , String , ServiceType , ErrorControl , StartMode , Boolean , String[] )
   at winsw.WrapperService.Run(String[] args)
   at winsw.WrapperService.Main(String[] args)

6 comments:

Niranjan said...

Any solution of this problem ?

Dronen said...

Any solution of this problem ?

Anonymous said...

may i know why you have started this blog to just remain silent.

If you can't answer the queries just close & shutdown your blog ..

Thanks

mugundhan said...
This comment has been removed by the author.
mugundhan said...

This is because Hudson is already running as a service in the machine. Follow the steps below to remove the service,

1. Run services.msc
2. You could see Hudson service if it exists
3. From command prompt, execute sc delete hudson. This will remove hudson from startup services
4. Reboot the system
5. Now proceed with installation of hudson as a windows service.

Anonymous said...

thanks mugundhan