RaspberryMatic: HASS Add-on broken on HASSOS 9.0

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.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 51 (14 by maintainers)

Most upvoted comments

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

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.

@JoMass Enable ssh on Hassos ssh to port 22222 and execute # ha os update --version 8.5

@andreas-bulling yes, for me it was working, even I have the information still in my notifications after the reboot. But the Addon itself is starting as expected. grafik

I guess, with the new release of the Addon (recently) there is a delay in the startup sequence, and this is causing the log message.

…same for me but with RPI-RF-MOD:

Starting multimacd: .OK Starting rfd: ....................ERROR Starting HMIPServer: ..............OK

Hello, in my system (Odroid with HmIP-RFUSB) the error no longer occurs under HomeAssistant OS v9.2.

We take it down but it comes soon back. We was not sure if that is an bug with cgroup or and homematic custom kernel driver bug with the kernel version.

…I will do the upgrade again…