Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
New Member
Posts: 5
Registered: ‎03-01-2016
Kudos: 1
Accepted Solution

Unifi Controller as Service

Hey all,

 

I've got a windows 2012 server and I can't seem to get unifi running as a service. I followed the instructions here (https://help.ubnt.com/hc/en-us/articles/205144550-UniFi-Run-the-Controller-as-a-Windows-service) but haven't had any success. 

 

Any ideas? The controller app works fine and I've never had any trouble accessing port 8443. I also had no issues running an elevated command prompt to perform the commands necessary to run the controller as a service. 

 

thanks


Accepted Solutions
SuperUser
Posts: 6,536
Registered: ‎01-10-2012
Kudos: 3289
Solutions: 318

Re: Unifi Controller as Service


ITinDC wrote:

I have a service called "unifi controller", which was set to automatic startup but also gives me an error (could not start on local computer) when I try to run.  Under task manager -- services, there's a "unifi" service that is also not running. I assume these are the same service. 

 


I used to have this problem all the time, then someone in another thread mentioned downloading and installing both the 32 bit and 64 bit offline java installers from here:  https://java.com/en/download/manual.jsp

 

Since doing that I haven't had a problem with the controller restarting as a service since, and I haven't had to re-install it as a service either.


You have to dowload the Windows Offline and  Windows Offline (64-bit) both, and then install first one then the other (in no particular order)

When you receive a solution to your question/issue, don't forget to mark your thread as solved and to give kudo's to the people who have helped you out!

Having wifi problems? Take a look here first: https://help.ubnt.com/hc/en-us/articles/221029967-UniFi-Debugging-Intermittent-Connectivity-Issues-on-your-UAP

View solution in original post


All Replies
Emerging Member
Posts: 89
Registered: ‎06-17-2013
Kudos: 10
Solutions: 1

Re: Unifi Controller as Service

Could you bee more specific with whats not working for you? 

 

The commands? Or?

New Member
Posts: 5
Registered: ‎03-01-2016
Kudos: 1

Re: Unifi Controller as Service

The commands themselves are working fine. Upon navigating to the controller via localhost:8443, doesn't seem to work (and I have no way of knowing whether or not the controller itself is running). Just times out in my browser. If I run the controller manually, it works just fine.

Emerging Member
Posts: 89
Registered: ‎06-17-2013
Kudos: 10
Solutions: 1

Re: Unifi Controller as Service

Do you have a service called Ubiquiti something under services and if you have, is it started?
New Member
Posts: 3
Registered: ‎05-17-2016

Re: Unifi Controller as Service

Try doing "Ctrl+Alt+Delete" and go into your task manager to view current services running or not running. Unifi Controller service.JPG

 

 As you can see the picture above, showing my UniFi Controller is running as Service. 

New Member
Posts: 5
Registered: ‎03-01-2016
Kudos: 1

Re: Unifi Controller as Service

I have a service called "unifi controller", which was set to automatic startup but also gives me an error (could not start on local computer) when I try to run.  Under task manager -- services, there's a "unifi" service that is also not running. I assume these are the same service. 

 

though they could both very well be from a prior update/installation. I remember running unifi as a service used to be done differently.

New Member
Posts: 3
Registered: ‎05-17-2016

Re: Unifi Controller as Service

In that instructions page you use:

(https://help.ubnt.com/hc/en-us/articles/205144550-UniFi-Run-the-Controller-as-a-Windows-service)

 

I noticed at the bottom of the page in "Users Notes & Tips"

It says that some users were unable to start the installed UniFi service until both x86 and x64 Java was installed (on an x64 machine). 

Highlighted
New Member
Posts: 28
Registered: ‎11-24-2016
Kudos: 5

Re: Unifi Controller as Service

Hello

 

what I do on my 2012R2 server is (from a command promp)

 

cd to the installaion dir.

 

Then execute

java -jar lib\ace.jar installsvc

to install the service

then

net start "Unifi Controller"

 

and for unistallation

net stop "Unifi Controller"

then

java -jar lib\ace.jar uninstallsvc

 

 

USG 3P - USW 8-60 - USW - UAP-AC-PRO
SuperUser
Posts: 6,536
Registered: ‎01-10-2012
Kudos: 3289
Solutions: 318

Re: Unifi Controller as Service


ITinDC wrote:

I have a service called "unifi controller", which was set to automatic startup but also gives me an error (could not start on local computer) when I try to run.  Under task manager -- services, there's a "unifi" service that is also not running. I assume these are the same service. 

 


I used to have this problem all the time, then someone in another thread mentioned downloading and installing both the 32 bit and 64 bit offline java installers from here:  https://java.com/en/download/manual.jsp

 

Since doing that I haven't had a problem with the controller restarting as a service since, and I haven't had to re-install it as a service either.


You have to dowload the Windows Offline and  Windows Offline (64-bit) both, and then install first one then the other (in no particular order)

When you receive a solution to your question/issue, don't forget to mark your thread as solved and to give kudo's to the people who have helped you out!

Having wifi problems? Take a look here first: https://help.ubnt.com/hc/en-us/articles/221029967-UniFi-Debugging-Intermittent-Connectivity-Issues-on-your-UAP
New Member
Posts: 5
Registered: ‎03-01-2016
Kudos: 1

Re: Unifi Controller as Service

This worked. Thank you very much!

Reply