supervisor: Supervisor not starting after update to 207
Operating environment (HassOS/Generic):
Ubuntu 18.04 Supervisor 207
Supervisor logs:
Mar 03 15:30:58 hassio hassio-supervisor[7786]: raise EnvironmentError(‘Could not create udev monitor’) Mar 03 15:30:58 hassio hassio-supervisor[7786]: OSError: Could not create udev monitor Mar 03 15:30:58 hassio hassio-supervisor[7786]: 20-03-03 15:30:58 ERROR (MainThread) [asyncio] Unclosed client session Mar 03 15:30:58 hassio hassio-supervisor[7786]: client_session: <aiohttp.client.ClientSession object at 0x7f3e87052bd0> Mar 03 15:30:58 hassio hassio-supervisor[7786]: 20-03-03 15:30:58 ERROR (MainThread) [asyncio] Unclosed client session Mar 03 15:30:58 hassio hassio-supervisor[7786]: client_session: <aiohttp.client.ClientSession object at 0x7f3e86e16150> Mar 03 15:30:58 hassio hassio-supervisor[7786]: [cont-finish.d] executing container finish scripts… Mar 03 15:30:58 hassio hassio-supervisor[7786]: [cont-finish.d] done. Mar 03 15:30:58 hassio hassio-supervisor[7786]: [s6-finish] waiting for services. Mar 03 15:30:58 hassio hassio-supervisor[7786]: [s6-finish] sending all processes the TERM signal.
Description of problem: Supervisor doesn’t start, see log above.
Just updated the supervisor to 207 via frontend, now it logs the Could not create udev monitor error
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 63 (6 by maintainers)
This is caused by older startup scripts, which causes the Supervisor to have incorrect permissions. The permissions changed over a half year ago, your instance would have thrown warnings for that same time as well.
Running the install instructions from our website again will fix this issue.
https://www.home-assistant.io/hassio/installation/#alternative-install-home-assistant-supervised-on-a-generic-linux-host
Running the installer again, preserves data.
Generally the above-listed installer command “should” be enough. But as a general good practice, running the full set of instructions might uncover some “older” missing things.
Warning
Note: I strongly disadvise to run manual Docker
pull,tagor similar commands, it will only cause things to go out of sync OR ending up with an edge dev version that might be broken.I don’t know what caused it, but after
docker pull homeassistant/amd64-hassio-supervisor:202docker tag homeassistant/amd64-hassio-supervisor:202 homeassistant/amd64-hassio-supervisor:latestsystemctl stop hassio-supervisor.servicesystemctl start hassio-supervisor.serviceIt work’s again. it even displays version 207 in the logs. So i guess the pull/tag did nothing, however stopping and starting of hassio-supervisor.service did not work before. ¯\(ツ)/¯
@bratanon can you try the four commands and see if it solves the issue for you?
Why is this closed- it is an ongoing issue.
THANKS EVERYONE! This worked I logged in via ssh sudo docker container stop hassio_supervisor sudo docker container rm hassio_supervisor sudo curl -sL “https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh” | sudo bash -s sudo docker restart homeassistant
I got mine finally working too. I had to fix it slightly differently.
First:
When I then tried:
I got this error:
So instead: docker tag homeassistant/amd64-hassio-supervisor:207 homeassistant/amd64-hassio-supervisor:latest
And then, it worked:
And finally:
For some reason latest / latest didn’t work for me. I have to admit I’m not sure about most of this. So this is just my experience.
Ah… seems to be a problem because before that i already tagged release 206 as latest. Doing this:
and then doing again:
seems to have fixed it
This works for me!
I’m going to share my fix for “Unable to load the panel source: /api/hassio/app/entrypoint.js.” issue here in case it helps anyone. Just so you know the background, I was trying to move a previous instance of hass.io from an ubuntu 16.04 lxc container into an ubuntu 18.04 VM. Banged my head around for a few hours before figuring this out so here are my steps:
1
sudo -i- Make sure you have network-manager installed or install withapt-get update && apt-get -y install network-manager2.sudo systemctl stop hassio-supervisor.service3.docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)- You may also need to dodocker rmi $(docker images -a -q)but I didn’t have to 4. Move your files over from previous installation if you need to 5.sudo systemctl start hassio-supervisor.service- at this point everything started except homeassistant docker container itself (which you can check by runningdocker ps) so my final step was… 6.reboot nowThis seemed to do everything needed to restart the containers with proper networking.
in case anybody else is also unhappy about automatic supervisor updates, vote here: https://community.home-assistant.io/t/feature-request-block-supervisor-auto-updates/112743
I think it must have updated itself when I restarted the supervisor service
This worked for me
Go through all the steps for the (re-)installation https://www.home-assistant.io/hassio/installation/#preparation
Do not skip the
sudo -i, orsystemctl disable ModemManagerSo, for everyone on 18.04, this is how I manage to get it to work with help from @ludeeus .
You need to run the install scritp again.
# curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -shttps://www.home-assistant.io/hassio/installation/#alternative-install-home-assistant-supervised-on-a-generic-linux-host
Also having the same issue on Ubuntu 18.04 LTS, and tried the 4 commands above. Also did not work for me.