Unifi Port 8080 Is Used By Other Programs Startup Failed Due



The first thing we have to do is to open up HTTP port 80 and HTTP port 443 so that Let’s Encrypt can renew itself. If anyone browses directly to those services, they will get a connection refused response. Log into your UniFi controller and run the following commands to allow those ports through the firewall. In Windows what can look for port 8080 and try to kill the process it is using through CMD Towfik Alrazihi. Unifi start-up failed - Duration: 3:09. Dipole Wireless Communication 31,748 views. Server failed to start for port 8080: Address already in use indicates that some other process on your machine has already bound itself to port 8080. I would guess this is an instance of Tomcat running either because you started it or it didn't get properly shutdown by whatever IDE you use.

Ubiquiti provides instructions here for running the UniFi Controller as a service. What they don’t tell you is that when you try to upgrade the controller, you can’t, because the service is still running. Here are the instructions for that:

If you need the SSL port to be free as well, use the Change Apache SSL Port option and change it to something other than 443. Click the Start Apache button and you should get a green light for a successful connection. We did look at AMPPS but it has a few problems when you change the port manually to something other that 80. Loading Ubiquiti Community Ubiquiti Community.

1. Back up your config from Settings > Maintenance > Download Backup. If you get the message, “There was an error generating a new backup file,” check %UserProfile%Ubiquiti UniFilogsserver.log for details. If it indicates that it could not create a file in a TEMP folder, try stopping and restarting the UniFi Controller service from Windows Services. That should recreate the folder(s) in TEMP and allow you do Download Backup.

Another alternative, if you haven’t made recent changes, is to go to Settings > Auto Backup and download the most recent backup.

Used

2. On the server running the controller, open an administrative Command Prompt. Stop the UniFi Java service:

cd '%UserProfile%Ubiquiti UniFi'
java -jar libace.jar stopsvc

3. Overinstall the new controller (run UniFi-installer.exe). On the last page of the install wizard, check “Start UniFi Controller after installation”.

4. In the small window that opens, wait until it says “UniFi Controller (x.xx.xx) started”:

Close the window (do not launch browser).

5. Back at the administrative Command Prompt, install and start the service:

java -jar libace.jar installsvc
java -jar libace.jar startsvc

6. Test access from a browser.

Additional Commands and Troubleshooting

To view other commands available, run java –jar libace.jar without parameters. You’ll see:

Once the service is installed, you can check its status in the list of Windows Services. For example, here the service is present but it’s not running:

Unifi Controller Error Port 8080 Is Used By Other Programs

After upgrading the controller at one site to version 5.8.24, I could no longer access the controller inside the LAN on port 8443, although cloud access was working. Also, all devices showed as offline. When I logged in directly to the USG, it told me that the Controller was unreachable, even though it is on the same LAN, indicating that it could not “inform” to the controller on port 8080:

UniFi had already added TCP and UDP firewall exceptions on the server for mongod.exe, but apparently that is not enough. I added explicit exceptions on ports 8080 and 8443. After that, I was able to access the controller across the network on 8443, and the devices once again showed as connected.

Port

Unifi Port 8080 Is Used By Other Programs

Update August 29, 2020

With controller 5.14.23, and probably before, the service is no longer appearing in the list of services (services.msc). You can check for the service definition in the registry (HKLMSYSTEMCurrentControlSetServicesUniFi). You can also manage the service from an administrative command prompt:

Unifi Port 8080 Is Used By Other Programs Startup Failed Due Coronavirus

sc query UniFi
net stop UniFi
net start UniFi