home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.73k stars 630 forks source link

Latest Supervisor is crash-looping #3718

Closed phellarv closed 2 years ago

phellarv commented 2 years ago

Describe the issue you are experiencing

Infinite restart loop of the Supervisor-container after reboot of server.

What is the used version of the Supervisor?

Cannot tell - system is down

What type of installation are you running?

Home Assistant Supervised

Which operating system are you running on?

Other (e.g., Raspbian/Raspberry Pi OS/Fedora)

What is the version of your installed operating system?

Ubuntu 22.04

What version of Home Assistant Core is installed?

2022.6.7

Steps to reproduce the issue

Rebooted system

Anything in the Supervisor logs that might be useful for us?

[15:49:26] INFO: Supervisor restart after closing
[15:49:26] INFO: Watchdog restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/udev.sh
[15:59:43] INFO: Using udev information from host
cont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun supervisor (no readiness notification)
services-up: info: copying legacy longrun watchdog (no readiness notification)
s6-rc: info: service legacy-services successfully started
[15:59:43] INFO: Starting local supervisor watchdog...
22-07-06 15:59:43 INFO (MainThread) [__main__] Initializing Supervisor setup
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/src/supervisor/supervisor/__main__.py", line 41, in <module>
    coresys = loop.run_until_complete(bootstrap.initialize_coresys())
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/usr/src/supervisor/supervisor/bootstrap.py", line 63, in initialize_coresys
    coresys = CoreSys()
  File "/usr/src/supervisor/supervisor/coresys.py", line 66, in __init__
    self._docker: DockerAPI = DockerAPI()
  File "/usr/src/supervisor/supervisor/docker/__init__.py", line 106, in __init__
    self._info: DockerInfo = DockerInfo.new(self.docker.info())
  File "/usr/src/supervisor/supervisor/docker/__init__.py", line 62, in new
    data["CgroupVersion"],
KeyError: 'CgroupVersion'
22-07-06 15:59:43 ERROR (MainThread) [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fa4f9dbaca0>
[15:59:43] WARNING: Halt Supervisor

Additional information

No response

andrewjfreyer commented 2 years ago

Same error here.

wbrocker commented 2 years ago

Same error here as well. Running the same versions as mentioned above.

frenck commented 2 years ago

Duplicate of #3692

Velly56 commented 2 years ago

Same for me.

phellarv commented 2 years ago

Solution from #3692 did not solve the problem. Request this to be reopened.

mdegat01 commented 2 years ago

Ubuntu is not a supported OS for Home Assistant Supervised so this isn't a bug unless it can be reproduced in a supported installation. Would suggest switching to a supported installation method

phellarv commented 2 years ago

Sorry - I missed one step: Docker upgrade. That solved it! Thanks.

kcrexchan commented 2 years ago

I had to force upgrading Docker. Just sudo apt upgrade did not upgrade Docker for me. May be because Docker was still running. This was what I did: sudo systemctl stop docker sudo apt install docker-ce sudo reboot sudo systemctl start docker

hope it helps...

mykola-dev commented 2 years ago

guys, is it possible to disable automatic updates for the supervisor? i'm running pretty critical stuff under home assistant. and that fact it suddenly stops working doesn't add the value for the product.