When starting up your UniFi controller on your server, you might be prompted with the error saying “Start-up failed” as the screenshot below.
Some might manage to see that the application says that Port 8443 is in use by another application. Some CCTV applications or other web applications installed on the server would use the same port.
Here you would have two choices, you can uninstall the conflicting application or just change the port of the UniFi controller.
To change the port of the UniFi controller, you need to open the
system.properties file from
C:\Users\<user name>\Ubiquiti UniFi\data.
Remove the hash from the below lines and change the port to 8445 and both lines should be as below.
Save the file and close Notepad. Open the UniFi Controller and the issue will be resolved and the service will start with no issues.
When loosing your credentials on a Cisco router, you can recover it all if you have physical access to it. You have to connect with the console cable and do the following:
Turn off Device
Turn on Device
Press CTRL C or CTRL Break Until rommon 1> shows
Select as below:
do you wish to change the configuration? y/n [n]: y
enable “diagnostic mode”? y/n [n]:
enable “use net in IP bcast address”? y/n [n]:
disable “load rom after netboot fails”? y/n [n]:
enable “use all zero broadcast”? y/n [n]:
enable “break/abort has effect”? y/n [n]:
enable “ignore system config info”? y/n [n]: y
change console baud rate? y/n [n]:
change the boot characteristics? y/n [n]:
(Virtual Configuration Register: 0x2142)
load rom after netboot fails
ignore system config info
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco2-
do you wish to change the configuration? y/n [n]: n
You must reset or power cycle for new config to take effect
Wait for 2 minutes, turn off and on the device
Would you like to enter the initial configuration dialog? [yes/no]: no
Press enter to start
You should see Router>
Enter copy start run
Enter conf t
Enter user admin privilege 15 password 4dm1n
Enter enable secret 4dm1n (or whatever)
If need by change the VTY passwords
Enter copy run start
Enter do sh ver to see the register
Configuration register is 0x2142
Now enter config-register 0x2102
Enter do sh ver to confirm the register has been updated
Enter copy run start
Make sure no shut on all interface
One time when I encountered this after a reboot of the device, being a Cisco router or Switch or Wireless Device, I get back to factory settings. After some research I found out that the device is bypassing the startup configuration. This is what you get after a reboot:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
To fix this answer
no to the question and press enter and type the following.
If you notice Configuration register is
0x2142 in the information displayed, then type the following
And when asked if you want to save the configuration, type
Some other Configuration Register codes and what they mean. The list below have been taken from the Cisco website.
0x0000-0x000F | Boot Field Parameters 0x0000 Stays at the system bootstrap prompt 0x0001 Boots system image on EPROM
0x0002-0x000F Specifies a default netboot filename.
0x0040 | Ignore NVRAM contents.
0x0080 | OEM bit enabled to exclude details in boot messages.
0x0100 | Break disabled
0x0400 | IP broadcast with all zeros
0x800-0x1000 | Console line speed
0x2000 | Boot default ROM software if network boot fails
0x4000 | IP broadcasts do not have net numbers
0x8000 | Enable diagnostic message and ignore NVRAM contents
When plugging in the Cisco Smart Storage for the first time, setting up the IP Address can be a bit tricky and the setup CD isn’t quite plain and simple. So to setup the IP address manually plug in a monitor and a keyboard to the device and once the login process comes up, use the default username and password i.e. admin/admin.
Once you log in, type the following to set the IP Address:
ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up
You should see the IP address configured and all there is now to do is enter the address
https://192.168.1.5 in your browser and access the web interface of the device.