Reply
Longtime Visitor
purityspring
Posts: 6
Registered: ‎08-02-2012
Posts: 6
Registered: 08-02-2012

UniFi Controller as Service not working...

I tried to set up the controller as a service... No luck.

The "PATH" mentioned in the instructions...

Computer>Properties>Advanced>Environmental Variables...? Correct?

I added my Java Path to the string. C:\Program files\java\jre7

ran the command prompt instructions and successfully installed Controller service.
- It shows up as a service under the services listing.

When I start the service I get an error:

The unifi controller could not be started.
A service specific error occurred: 0.
More help is available by typing NET HELPMSG 3547.

I am running the controller on a windows 7 terminal.

Thoughts?
Member
saslanis
Posts: 121
Registered: ‎11-16-2012
Posts: 121
Kudos: 10
Solutions: 1
Registered: 11-16-2012

Re: UniFi Controller as Service not working...

I installed 2.3.9 as service.
Had to remove jre7 and use jre6
jre7 caused problems to me.
good luck
Longtime Visitor
purityspring
Posts: 6
Registered: ‎08-02-2012
Posts: 6
Registered: 08-02-2012

Re: UniFi Controller as Service not working...

I was able to remove the J7 and the service runs; however. I cannot log on to the controller now. I attempted the http://IP:8443/manage, to access,

but no luck getting the controller. I suspect that the service is not really working.

 

Thoughts?

Member
saslanis
Posts: 121
Registered: ‎11-16-2012
Posts: 121
Kudos: 10
Solutions: 1
Registered: 11-16-2012

Re: UniFi Controller as Service not working...

It's httpS

 

Longtime Visitor
purityspring
Posts: 6
Registered: ‎08-02-2012
Posts: 6
Registered: 08-02-2012

Re: UniFi Controller as Service not working...

Thanks, that did it.

New Member
Magren
Posts: 28
Registered: ‎07-30-2011
Posts: 28
Kudos: 2
Registered: 07-30-2011

Re: UniFi Controller as Service not working...

Ok, is there a way to get the 2.4.5 to run as a service on a 2012?

Server: Windows 2012
Installed java 7.0.45 64-bit in c:\program files\java BEFORE the Unifi installation.
Installed Unifi 2.4.5 and it starts ok.
Verfied that java is reachable from <unifi_base>, added the path to the java exe just to be sure.

Adds the Unifi as a service according to the FAQ: java -jar lib\ace.jar installsvc from the <unifi_base>
The service refuse to start. System log shows Event ID: 7024
"The UniFi Controller service terminated with the following service-specific error:
The operation completed successfully."



 

Ubiquiti Employee
UBNT-MikeD
Posts: 2,306
Registered: ‎01-28-2013
Posts: 2306
Kudos: 680
Solutions: 239
Contributions: 19
Registered: 01-28-2013

Re: UniFi Controller as Service not working...

[ Edited ]

Hi,

I don't have Windows 2012, but on Win7 + 8.1 it works fine with J7U45. Both are x64 systems and I just tested this yesterday. So I freshly installed Java x86 and x64 using the manual executables. This was with 2.4.6 though, not 2.4.5...

When I installed it I didn't run it after the install. The paths I had added were ;C:\Program Files\Java\jre7\bin\;C:\Program Files (x86)\Java\jre7\bin\. I went directly to the UniFi_base\lib directory and ran java -jar ace.jar installsvc from an elevated command prompt (although on server I would guess that it's elevated to admin by default). 

I wonder what's different in the backend causing this...hmm...Another user recently uninstalled J7U45 x86 then reinstalled with the manual install file and the service worked... but different version of Windows again...

I know this doesn't really solve your issue. I just thought I'd add that this as it is working for most, although it may require some fooling with Java installs.

Thanks,
Mike

UBNT_Alternate_Logo.png

New Member
Magren
Posts: 28
Registered: ‎07-30-2011
Posts: 28
Kudos: 2
Registered: 07-30-2011

Re: UniFi Controller as Service not working...

Thanks for your input. Installed the -32bit Java 7.0.45 and added that to the path and after that i could start the service.

Unifi seems to need the 32-bit version when running as a service. When starting Unifi from the desktop icon it uses the 64-bit version. Very annoying and should really be in your FAQ

 

Ubiquiti Employee
UBNT-MikeD
Posts: 2,306
Registered: ‎01-28-2013
Posts: 2306
Kudos: 680
Solutions: 239
Contributions: 19
Registered: 01-28-2013

Re: UniFi Controller as Service not working...


Magren wrote:

Thanks for your input. Installed the -32bit Java 7.0.45 and added that to the path and after that i could start the service.

Unifi seems to need the 32-bit version when running as a service. When starting Unifi from the desktop icon it uses the 64-bit version. Very annoying and should really be in your FAQ

 


You're welcome. Glad that worked. Duly noted and I'll modify the KB article to reflect this, thanks for pointing that out.

Thanks,
Mike

UBNT_Alternate_Logo.png

New Member
stever
Posts: 10
Registered: ‎03-06-2014
Posts: 10
Registered: 03-06-2014

Re: UniFi Controller as Service not working...

I needed the 32bit version also, no mention of it in the wiki but after finding this thread, I got it to work. Thanks to all for posting. 

Reply