Scheduled maintenance: Community will be offline Monday June 17th, 1:00 AM - 6:00 AM (PT)
Reply
Emerging Member
Posts: 47
Registered: ‎04-25-2016
Kudos: 4

Unable to adopt UniFi AP and APLR - Server Reject

Running hosted Linux controller, 5.29 

 

Two devices that appear to have been removed but not from the DB.

 

Tried the following;

 

set-default - Adopt - Nope

The above again, they appeared, adopted and then disconnected - forgot them from controller. 

Tried pruning DB - nope

Tried a post from 2015 that ended with this command,

 

db.device.remove({"mac":"my:mac:here:"});

 

WriteResult({ "nRemoved" : 0 })

 

Tried a local controller, where they appear and adopt in seconds... backed up that local site and imported it to our cloud hosted controller. Again, they appear but are disconnected.

 

It's not the local site, as they have an AC-Lite connected with no problems.

 

Short of replacing the units at our cost, anything else I can try?

 

Is there anyway that you can develop a simple button to achieve pruning the database of both userdata and devices that are no longer present, along with the 'Compact Database' feature?

 

Highly frustrating!

 

Mad2

Senior Member
Posts: 25,945
Registered: ‎08-04-2017
Kudos: 4865
Solutions: 1287

Re: Unable to adopt UniFi AP and APLR - Server Reject

Hello @lynas,

 

What firmware version is the UAP on?

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Emerging Member
Posts: 47
Registered: ‎04-25-2016
Kudos: 4

Re: Unable to adopt UniFi AP and APLR - Server Reject

4.0.15

Senior Member
Posts: 25,945
Registered: ‎08-04-2017
Kudos: 4865
Solutions: 1287

Re: Unable to adopt UniFi AP and APLR - Server Reject

Hello @lynas,

 

Adopt it to the local controller and that do a site migration.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Emerging Member
Posts: 47
Registered: ‎04-25-2016
Kudos: 4

Re: Unable to adopt UniFi AP and APLR - Server Reject

Already tried that as per above.

 

thanks for the suggestion though 

Senior Member
Posts: 25,945
Registered: ‎08-04-2017
Kudos: 4865
Solutions: 1287

Re: Unable to adopt UniFi AP and APLR - Server Reject

Hello @lynas,

 

Did you remove the MAC Address from the DB using the following commands?

mongo --port 27117
use ace
db.device.remove({"mac":"xx:xx:xx:xx:xx:xx"});
exit

Take a settings only backup and reinstall UniFi.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Emerging Member
Posts: 47
Registered: ‎04-25-2016
Kudos: 4

Re: Unable to adopt UniFi AP and APLR - Server Reject

Yes as above, with code returned after running that command 

 

I have over 40 sites with a LOT of devices.... what does this backup contain?

Senior Member
Posts: 25,945
Registered: ‎08-04-2017
Kudos: 4865
Solutions: 1287

Re: Unable to adopt UniFi AP and APLR - Server Reject

Hello @lynas,

 

Backup contains all the settings.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Highlighted
Emerging Member
Posts: 47
Registered: ‎04-25-2016
Kudos: 4

Re: Unable to adopt UniFi AP and APLR - Server Reject

Thanks for the replies. Appreciate the input.

 

Anyone from UBNT seen this behaviour before?

 

I’d rather work out what the problem is and have a solution, in case it happens again, instead of just whacking a PC World fix on to it.

Reply