Jacob Tomlinson's profile picture Jacob Tomlinson
Home Blog Talks About

How I fixed my UniFi Devices intermittently showing as offline

2 minute read #unifi, #networking, #home-lab, #troubleshooting

Since upgrading to a UniFi Dream Machine (UDM) Pro I’ve had a problem with some of my UniFi devices showing as offline. TLDR It turned out that I accidentally had two controllers on my network and the devices were hopping back and forth between them.

I found this forum post with folks running into the same problem but the thread is locked so I can’t comment with my own solution, hence this blog post.

Screenshot of UniFi control panel showing some devices as offline
A screenshot from the forum thread showing the same problem I was seeing

I tried factory resetting the devices and also manually SSHing into them and running set-inform https://<UDM PRO IP>:8080/inform as suggested in the post and it would work for a little while and then the devices would show as offline again.

I also ended up buying two new switches and noticed that they didn’t have the problem with going offline, only the devices I had before getting the UDM Pro would go offline.

In the forum thread it suggested SSHing to the device and running info, one user in the thread did this and saw that their device couldn’t connect to the controller. However when I did this I saw it was connected, but the IP didn’t match my UDM Pro.

OfficeSwitch-US.6.5.59# info

Model:       USW-16-PoE
Version:     6.5.59.14777
MAC Address: d0:21:f9:57:bb:6b
IP Address:  10.51.100.17
Hostname:    OfficeSwitch
Uptime:      1064431 seconds
NTP:         Synchronized

Status:      Connected (http://<NOT MY UDM PRO>:8080/inform)

Before getting the UDM Pro I had a UniFi Security Gateway (USG) and was running the controller software as an add-on container on my Home Assistant box. It turned out that I had successfully replaced the router with the UDM Pro and migrated the devices across, but I had forgotten to stop the old controller. For some reason any device that had previously been registered to the old controller would intermittently migrate back to it and show as offline in the UDM Pro controller.

Once I stopped the old controller the devices migrated back to the UDM Pro within a few seconds and have not gone offline since 🎉.

This turned out to be a pretty niche problem but hopefully this post helps someone!


Have thoughts?

I love hearing feedback on my posts. You should head over to Twitter and let me know what you think!

Spotted a mistake? Why not suggest an edit!