Help answer threads with 0 replies.
Go Back > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name


Hi. I'm a Unix Administrator, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: Unix.
Rate this Entry

Ubiquiti Controller: Devices listed as "Disconnected"

Posted 06-23-2018 at 09:03 AM by rocket357
Updated 06-23-2018 at 09:12 AM by rocket357

Had this problem after an ip change for my controller. I have an EdgeRouter Lite with 2 US-8's hanging off of eth1 and eth2, and for silly reasons I needed to move my controller laptop from one US-8 to the other. Once I did that, the US-8 it was previously attached to and the AP-AC-LR attached to the old US-8 showed up in "Disconnected" state in the controller software (eth1 and eth2 are not bridged, currently. If they were, it would have avoided this issue).

A cursory review of the interwebs didn't help much. People say the US-8 and AP-AC-LR will look up "unifi" and use that IP as the controller (perhaps on first boot, but not during a broken configuration situation such as mine). Rebooting the disconnected devices didn't help, nor did killing the mcad process on the devices.

Once I'd ssh'd to the devices, I noticed a "cfg" folder in root's home. Within that, a file named "mgmt".

The following got me back up and running:

cp cfg/mgmt cfg/mgmt.ORIG; # *always* ensure you have a good backup before editing files!
sed -e 's/$OLD_IP/$NEW_IP/g' cfg/mgmt > mgmt.NEW;
mv mgmt.NEW cfg/mgmt;
ps ww | grep mcad; # note the mcad pid
kill $MCAD_PID;

By the time you've switched back to the controller, it should at least be making progress towards re-establishing connectivity.
Posted in Uncategorized
Views 1484 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 01:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration