Troubleshoot dead/flashing Unifi equipment

Identifying the problem

These instructions only apply if the device powers on and one or more of the following is true:

  1. The port activity lights on the device do not blink as they normally should (they are either off, or solid)
  2. There is a noticeable low-volume electrical hum coming from the device or power supply
  3. Port lights (other than the 24V POE indicator) stay on after unplugging ethernet from that port
  4. The lights seem normal, but you cannot contact the device through ping, web interface, or SSH

Attempt the "usual fixes"

  1. Power the device off and back on, check for signs of life.
  2. Try swapping the power supply for a known-working power supply.
  3. Try factory resetting the device.

If none of the above works, it's likely that the hardware inside the device is failing. The most common failure is that the boot drive has gone bad. Most Unifi devices have a removable USB boot drive that can be swapped out. The following devices are known to have a removable boot drive:

  • USG-3P
  • USG-Pro-4
  • UNVR
  • Unifi Switches
  • Edge Routers

Before attempting to remove and replace the USB drive, check the warranty status of the device. If possible, RMA the device because replacing the USB drive could possibly void the warranty or cause issues/delays in the RMA process.

Replace the USB Drive

Unifi routers and switches

Follow the instructions on this Ubiquiti Forum Post

Alternatively, get the 4.2.0 image, unpack it (bunzip), then flash it to a replacement USB drive using a utility like Rufus (Windows) or Balena Etcher (Windows/Mac). To get the USG to show up again on the Controller, you will probably have to manually update the firmware to the latest available from Unifi manually via SSH (see below).

Alternatively, build a fresh bootable USB from scratch via instructions here from user BranoB.

Alternative instructions for recovery via SCP and SSH

Ubiquiti Downloads

Unifi NVR (UNVR)

NOTE The power supply is exposed and only covered by a thin sheet of plastic. Do not attempt these instructions immediately after powering off the device, as the power supply may still have significant electrical charge that could seriously injure or kill you.

  1. Power down the unit, remove the screws holding in the outer case, and remove the USB drive
  2. Remove the Hard Drives (note failure to do this may result in data loss). With a sharpie, write a number on the drive corresponding to the bay it was removed from (i.e. Bay 1 is the leftmost)
  3. Insert a new USB drive
  4. Replace the outer case and screws, power on the device with the hard drives still removed
  5. Allow the device 10-20 minutes to rebuild the USB. Eventually, the UNVR should allow you to reach the configuration webpage at its IP address to begin setting it up from a factory reset condition.
  6. Power down the device, then reinsert the hard drives in the same order in which they were removed.
  7. Navigate to the UNVR webpage at its IP address and begin setting up the device
  8. When prompted, choose to restore one of the backups presented (if no backups, check UI cloud account)
  9. When the restoration is completed, the device should be in a fully working state with all previously-added cameras and recordings. It is possible that you will have to recreate and/or reinivite Protect users.
No backups from which to restore

If there are no backups available, you will have to setup the UNVR from scratch including a factory reset of each camera, which will require physically handling and then repositioning every camera. If possible, avoid this by recovering the "Device Password" from the previous UNVR installation which will allow you to readopt the devices to the new UNVR instance without physically touching them.

To get the device password:

  1. Connect the failed/failing original USB to a Linux machine
  2. Browse to /etc/unifi-protect/jsonDb/nvrs.json and open the file
  3. Search for devicePassword and copy the value. It should be a 20-character random password

Before proceeding, take some time to gather data that will make the readoption process smoother:

  1. Login to the customer's Unifi Site in the Unifi Network Controller, or login to their router/other interface if they do not have a Unifi site or do not use Unifi equipment
  2. On the Clients tab (or, on other interfaces, the "DHCP Client List" or similar), identify all named cameras. If a camera was named "Main Building - Front", then its device name on the network would be "main-building---front".
  3. For each device that was previously adopted to the controller, gather its name, MAC address, and IP address. This will prevent any confusion because the devices will lose their names once readopted

Once you have all the requisite information:

  1. Login to the local UNVR web interface. Devices will not show up for adoption in the Cloud web interface (unifi.ui.com).
  2. On the devices tab, find previously-adopted cameras in the list as "Managed by another controller"
  3. Click on a device, and then click to readopt them
  4. Enter the device password
  5. The device should almost immediately readopt and appear in a separate section in the devices list
  6. Repeat steps 3-5 for all devices to adopt
  7. Rename devices according to the information you gathered earlier
  8. Recreate/reinvite any administrators/users that existing previously
Discard
Save
Was this article helpful?

On this page

Review Changes ← Back to Content
Message Status Space Raised By Last update on