hassio-addons / addon-unifi

UniFi Network Application - Home Assistant Community Add-ons
https://addons.community
MIT License
276 stars 137 forks source link

Can not start AddOn: Port '10001' is already in use by something else on the host. #460

Closed Vip0r closed 11 months ago

Vip0r commented 11 months ago

Problem/Motivation

I am not anylonger able to start the addon because i receive the Error "Port '10001' is already in use by something else on the host. If i adjust the port in the configuration i receive the same error for another Port. If i adjust all Ports in the configuration the AddOn starts. It "looks like" there is a stale version of this AddOn still running or maybe HA core didn't recognized that the AddOn is not anylonger running

At the moment i am running on the latest HA Release (2023.10.5) with the latest AddOn Release ( 2.8.1 )

I already tried to uninstall / install the AddOn and of course rebooted the entire system.

Vip0r commented 11 months ago

As i am running HAOS on VMWare i have access to the supervisor. I checked the output for docker container lsand netstat -nlp for the blocking ports.

It looks like docker-proxy is still holding the ports even if there is no container running. Please see the attached screenshot.

docker container ls and netstat
Vip0r commented 11 months ago

Was able to fix it by deleting the following file

rm -f /var/lib/docker/network/files/local-kv.db

and rebooting the machine afterwards

.. found at stackoverflow.com