HA won't run after latest upgrade

Hi,

I just upgraded to latest version from the actual previous version. It all was working fine, but now I HA won’t start because of this (even when using sudo):

ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 8123: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8123): address already in use
ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 80: [Errno 98] error while attempting to bind on address ('192.168.1.158', 80): address already in use

I haven’t changed anything else. I just upgraded using:

pip3 install --upgrade homeassistant

Is there anything wrong with the latest upgrade?

Thanks

Are you confident you’ve shutdown the previous instance? Can you reboot the system and see if it works?

Another thought: if your old installation was in conjunction with a virtualenv, but you upgraded (and therefore installed) outside of the venv, then you now might have two HASS’ installed, were one of both is still running and by that also blocking the ports.

Yes, I rebooted the machine a couple times

I don’t remember how I installed it. How can I check it? Also, I do remember that HA was running when I upgraded. Should’ve I turned it off before upgrading? Thanks!

Fixed! Although I don’t know what caused the issue. I had a screenshot of the machine where I run HA (VirtualBox). I just restored it, so HA went back to the previous version, and upgraded it again. I guess upgrading while HA was running caused the issue.

Thanks!

1 Like