Skip to main content

Last week I had a brand new UniFi accesspoint that I just could not get adopted by the controller. It did show up in the controller, ready for adoption, but after adoption, the access point disappeared in the controller. When looking up the status in the access point I noticed the error Server Reject.

My first attempt to solve this was simply resetting the access point back to defaults. You can factory reset the accesspoint using the button, or use SSH and the set-default command. But that didn’t seem to help either. The device kept showing the Server Reject status.

Table Of Contents

  1. Method 1 – Check the inform address
  2. Method 2 – Forget and reset the UniFi device
  3. Method 3 – Remove it from the MongoDB
  4. Wrapping Up

In this article, I will explain how you can solve the UniFi Server Reject error.

Method 1 – Check the inform address

The first step is to check the inform address in the UniFi device. When the inform address is configured incorrectly, then you will also get the server reject status in the UniFi device. Make sure that you know the SSH credentials of the device, default username, and password is ubnt.

1. ssh ubnt@<font></font>
2. <font></font>
3. # Check current inform address<font></font>
4. info<font></font>
5. <font></font>
6. # Set correct address:<font></font>
7. set-inform

Make sure that you pay close attention to the http:// part, port number and don’t forget to add /inform at the end.

Method 2 – Forget and reset the UniFi device

If the inform address is set correctly and the device still won’t adopt, then we are first going to reset the device and remove it from the controller.

  1. Open the UniFi network controller
  2. Go to devices and select the device
  3. Click on Settings
  4. Scroll all the way down, expand Manage, and click on Forget

The device will reboot and should show up for adoption in the network controller.

Method 3 – Remove it from the MongoDB

If these methods don’t work then there is one last step that we can do. We can remove the device manually from the controller, by deleting it in the Mongo Database of the controller. For this, we are going to make an SSH connection to the controller and we will need the MAC address of the UniFi device that we want to delete.

You can find the MAC address in the network controller, when you open the device or on the bottom of the device itself.

The SSH password of the controller can be found/set in the UniFi OS > Settings System. It’s different from the SSH password that we have used for the UniFi devices. Make sure that you have a backup of your controller before you start!

  1. # Connect to your controller<font></font>
  2. ssh root@<font></font>
  3. <font></font>
  4. # Open the Mongo db<font></font>
  5. mongo –port 27117<font></font>
  6. <font></font>
  7. # Remove the MAC address from the db<font></font>
  8. use ace<font></font>
  9. db.device.remove({“mac”:”xx:xx:xx:xx:xx:xx”});<font></font>
  10. exit # or reboot the controller with the command reboot

The last step is to reboot the console. You can type the command reboot for this or restart it through the browser under Settings > System.

After these steps, I reset the access point back to factory settings once again, just to be sure that everything was removed. You should now be able to adopt the UniFi device without the server reject error.

Wrapping Up

I hope this article helped you with solver the UniFi server reject error, if you have any questions, just drop a comment below.