question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HASS Add-on broken on HASSOS 9.0

See original GitHub issue

Describe the issue you are experiencing

Since the upgrade to HASSOS 9.0, the add-on cannot start. I suspect this is due to the docker migration to cgroups2.

Error message from the Supervisor:

22-09-15 13:34:43 ERROR (MainThread) [supervisor.docker.addon] Can't set cgroup permission on the host for addon_de838cd8_raspberrymatic
22-09-15 13:34:43 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-14879' coro=<DockerAddon._hardware_events() done, defined at /usr/src/supervisor/supervisor/jobs/decorator.py:85> exception=DockerError("Can't set cgroup permission on the host for addon_de838cd8_raspberrymatic")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 720, in _hardware_events
    await self.sys_dbus.agent.cgroup.add_devices_allowed(
  File "/usr/src/supervisor/supervisor/dbus/agent/cgroup.py", line 19, in add_devices_allowed
    await self.dbus.CGroup.AddDevicesAllowed(container_id, permission)
  File "/usr/src/supervisor/supervisor/utils/dbus.py", line 174, in call_dbus
    raise DBusFatalError(reply.body[0])
supervisor.exceptions.DBusFatalError: Error calling runc for '87542225ef424bd38c4d49ff3db5a8c46b277fdee1c3efd1a6aee5edd57d9d80': exit status 1, output time="2022-09-15T11:34:43Z" level=warning msg="could not find device group for '99/204' in /proc/devices -- temporarily ignoring rule: {99 204 -1 rwm true}"
time="2022-09-15T11:34:43Z" level=info msg="found more than one filter (2) attached to a cgroup -- removing extra filters!"
time="2022-09-15T11:34:43Z" level=info msg="removing old filter 0 from cgroup" id=139 name= run_count=0 runtime=0s tag=f231b56d360e591c type=CGroupDevice
time="2022-09-15T11:34:43Z" level=info msg="removing old filter 1 from cgroup" id=140 name= run_count=0 runtime=0s tag=be0b8d7ca6afd4d8 type=CGroupDevice
time="2022-09-15T11:34:43Z" level=warning msg="could not find device group for '99/204' in /proc/devices -- temporarily ignoring rule: {99 204 -1 rwm true}"
time="2022-09-15T11:34:43Z" level=info msg="found more than one filter (2) attached to a cgroup -- removing extra filters!"
time="2022-09-15T11:34:43Z" level=info msg="removing old filter 0 from cgroup" id=144 name= run_count=0 runtime=0s tag=839fa1b30f0f67c3 type=CGroupDevice
time="2022-09-15T11:34:43Z" level=info msg="removing old filter 1 from cgroup" id=147 name= run_count=0 runtime=0s tag=be0b8d7ca6afd4d8 type=CGroupDevice
time="2022-09-15T11:34:43Z" level=error msg="failed to call BPF_PROG_DETACH (BPF_CGROUP_DEVICE) on old filter program: can't detach program: no such file or directory"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 141, in wrapper
    raise err
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 139, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/docker/addon.py", line 727, in _hardware_events
    raise DockerError(
supervisor.exceptions.DockerError: Can't set cgroup permission on the host for addon_de838cd8_raspberrymatic
22-09-15 13:34:43 ERROR (MainThread) [supervisor.docker.addon] Can't set cgroup permission on the host for addon_de838cd8_raspberrymatic

Describe the behavior you expected

The add-on successfully starts.

Steps to reproduce the issue

  1. Upgrade to HASSOS 9.0
  2. Try to start the add-on

What is the version this bug report is based on?

3.65.8.20220831

Which base platform are you running?

ha-addon (HomeAssistant Add-on)

Which HomeMatic/homematicIP radio module are you using?

HmIP-RFUSB

Anything in the logs that might be useful for us?

No.

Additional information

I’m using the ELV USB stick.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:10
  • Comments:51 (14 by maintainers)

github_iconTop GitHub Comments

6reactions
H3xF2xcommented, Sep 15, 2022

Downgrade to OS 8.5 solved the bug. FYI: ssh to port 22222 and execute # ha os update --version 8.5

4reactions
jens-mauscommented, Sep 19, 2022

Please note that with the next nightly snapshot this issues should be hopefully solved/fixed by having introduced an additional sleep 5 call after multimacd startup. Also note that a newer HomeAssistant supervisor version (Supervisor 2022.09.1 or newer) seem to be required as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with add-ons - hassio-addon
I installed Hassio from 0 and imported the backup. The result was that the problem extended from a single addon to all addons....
Read more >
Addon Store page isn't loading : r/homeassistant - Reddit
Hi! I'm new to hassio but I've already done some troubleshooting for different errors I've got in the past month. Now I'm completely...
Read more >
The easiest way to secure Home Assistant with HTTPS
Today we'll learn how to set up your HTTPS connection really quick and without pain. Well, almost no pain. We'll use Nginx Proxy...
Read more >
Install HACS 2022 (Home Assistant How To) - YouTube
... small fast paced series that quickly shows how to setup and install some of the integrations and addons that I make use...
Read more >
Need to reboot Home Assistant a few times before it detects ...
I'm now running a fresh clean install of Hassio however I'm still having this ... [hassio.docker.interface] Clean homeassistant/aarch64-addon-samba docker ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found