Unifi - Communication with controller is partially degraded

unifi

#1

The unifi container is working great, but how can I solve the following alert. I believe it’s not realy a thing of the container, but a Docker issue:

Communication with controller is partially degraded.
This device is not able to connect to the internal STUN server on your Controller. Please check if the device is able to reach the STUN server on port 3478 and read https://help.ubnt.com/hc/en-us/articles/115015457668-UniFi-Troubleshooting-STUN-Communication-Errors

image

I mapped port 3478, but still having this alert


#2

Post your docker run/create or compose yml and we’ll take a look


#3

docker create --name unifi --restart unless-stopped -v /volume1/docker/unifi:/config -e PGID=100 -e PUID=1027 -p 3478:3478 -p 10001:10001 -p 8080:8080 -p 8081:8081 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 6789:6789 linuxserver/unifi:unstable


#4

ports 3478 and 10001 should be udp
See the readme: https://github.com/linuxserver/docker-unifi/blob/master/README.md
by default, docker maps tcp only


#5

Thanks for the info. It solved my issue.

Was this always defined in the documentation? Because normally I follow it very closely :slight_smile:


#6

Yeah, for a long time now.

Edit: but not always. The stun port requirement is somewhat newer (maybe a year or so?)