HomeAssistant URL not reachable after reboot of host (RPi 3B+)

Hello experts!

I have a problem that seems to have been a popular issue in the community. As the title reads, the login page is not reachable. I have ddns setup. I am neither able to login via the ddns address nor via local IP address.

History: User of home assistant for 2 years-ish. Still a noob, as I had not setup samba or anyway to ssh, perhaps, that does not matter anyway now.

What I was doing just before the problem?
Nothing. I just wanted to look at my configuration file using the File Editor, but that failed with the problem mentioned here: Unable to load the panel source: /api/hassio/app/entrypoint.js

What did I do about it?
My trigger fingers restarted the OS, that did nothing.
I noticed that the Supervisor was not available either.
So, I proceeded to reboot the host, my Raspberry Pi 3B+ by pulling the cord. I have been locked out since.

What do I know?

  • I can ping my RPi, 0% packet loss
  • I can see that my RPi is alive on the fixed local IP address
  • I can not login as the website is unreachable/connection timed-out.

What did I do further?
I connected the RPi to the TV (still attached to the router via eth). Please find the steps in the pictures below:
So, I try to login via CLI, turns out the HA container is not up yet, so my “actual” login credentials are not accepted. So, I login as root, and I get the HA CLI container not running warning.

I try to find homeassistant related dir and files and I cd to the directory viz in /mnt/docker/supervisor/homeassistant

I try to understand the logs, starting from the latest events

As observed, there are some

  • homeassistant/restart request errors
  • Lovelace default-view uncaught errors
  • websocket_api.http.connection errors

I wanted to ensure if any these was the real reason for this issue that I am facing, so I went a bit into the past and noticed that there were similar errors all over the place

Where I live, power outages are not a thing, and I can say for certain, given my wfh, that this host had not been restarted in a long time, so this could’ve been an ancient issue that just surfaced. Is there some more info that you’d like to help me solve this? I am keen on not rebuilding, rather solving this.

What hardware (oh I see RPI)… ? Have you look at dmesg / OS syslog etc?

Perhaps you have an SDCARD problem? Personally, i’d try to simply get all my config off the sdcard and reinstall. Whenever trying to fix things, its ALWAYS smart to be able to get back to where you are. So you should backup your stuff before you do more.

Hi @calisro, Yes, I have now looked at the dmesg and syslog. I am not sure if this is an SD card problem, rather something related to the Supervisor not being available, as I mentioned earlier.

I have uploaded the dmesg and journal logs in my gdrive.

A short excerpt from the journal indicates that Supervisor is restarting infinitely due to a KeyError: 'CgroupVersion’

Jul 12 19:37:48 homeassistant hassos-supervisor[2355]: [19:37:48] INFO: Starting local supervisor watchdog...
Jul 12 19:37:54 homeassistant 92e608d88192[387]: 22-07-12 19:37:54 INFO (MainThread) [__main__] Initializing Supervisor setup
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: 22-07-12 19:37:54 INFO (MainThread) [__main__] Initializing Supervisor setup
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: Traceback (most recent call last):
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
Jul 12 19:37:54 homeassistant 92e608d88192[387]: Traceback (most recent call last):
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     return _run_code(code, main_globals, None,
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     return _run_code(code, main_globals, None,
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     exec(code, run_globals)
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/src/supervisor/supervisor/__main__.py", line 41, in <module>
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     coresys = loop.run_until_complete(bootstrap.initialize_coresys())
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     exec(code, run_globals)
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/src/supervisor/supervisor/__main__.py", line 41, in <module>
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     return future.result()
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/src/supervisor/supervisor/bootstrap.py", line 63, in initialize_coresys
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     coresys = loop.run_until_complete(bootstrap.initialize_coresys())
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     coresys = CoreSys()
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/src/supervisor/supervisor/coresys.py", line 66, in __init__
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     self._docker: DockerAPI = DockerAPI()
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 106, in __init__
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     self._info: DockerInfo = DockerInfo.new(self.docker.info())
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 62, in new
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]:     data["CgroupVersion"],
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: KeyError: 'CgroupVersion'
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     return future.result()
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/src/supervisor/supervisor/bootstrap.py", line 63, in initialize_coresys
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     coresys = CoreSys()
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/src/supervisor/supervisor/coresys.py", line 66, in __init__
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     self._docker: DockerAPI = DockerAPI()
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 106, in __init__
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     self._info: DockerInfo = DockerInfo.new(self.docker.info())
Jul 12 19:37:54 homeassistant 92e608d88192[387]:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 62, in new
Jul 12 19:37:54 homeassistant 92e608d88192[387]:     data["CgroupVersion"],
Jul 12 19:37:54 homeassistant 92e608d88192[387]: KeyError: 'CgroupVersion'
Jul 12 19:37:54 homeassistant 92e608d88192[387]: 22-07-12 19:37:54 ERROR (MainThread) [asyncio] Unclosed client session
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: 22-07-12 19:37:54 ERROR (MainThread) [asyncio] Unclosed client session
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: client_session: <aiohttp.client.ClientSession object at 0x73c0ac10>
Jul 12 19:37:54 homeassistant 92e608d88192[387]: client_session: <aiohttp.client.ClientSession object at 0x73c0ac10>
Jul 12 19:37:54 homeassistant 92e608d88192[387]: [19:37:54] WARNING: Halt Supervisor
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: [19:37:54] WARNING: Halt Supervisor
Jul 12 19:37:54 homeassistant 92e608d88192[387]: s6-rc: info: service legacy-services: stopping
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: s6-rc: info: service legacy-services: stopping
Jul 12 19:37:54 homeassistant 92e608d88192[387]: [19:37:54] INFO: Supervisor restart after closing
Jul 12 19:37:54 homeassistant hassos-supervisor[2355]: [19:37:54] INFO: Supervisor restart after closing

My money is still on SDCard issues that caused the corruption in the first place. You’re running HASSOS. If it were me, i’d simply re-image HA after copying teh entire contents of the config folder off and to the new installation. You won’t lose anything except you’d need to re-add your addons.

I’d also suggest moving to SSDs personally.

Yes, new SSDs are otw.
Speaking of SD cards being the reason for corruption, I noticed another issue that is the exact same problem that I have. They have a solution but that seems to be for a containerized setup (docker). I am running the HAOS on RPi and so, I don’t really get to use apt-get cmds… Do you think you have a way around for the solution mentioned here

not with HASSOS.


calisro
Rob,
saw your comment on the other post

I was really hoping that it would not come to re-imaging. Do you think I need more than just the directory containing the scripts/scenes/configuration.yaml files, or something more?

If you copy THE ENTIRE CONFIG DIRECTORY (the folder containing those files and down) you’ll have all your config except addons. The addons will just need to be re-added.

1 Like