supervisor: Introspection of de.pengutronix.rauc fails on generic linux

Problem/Motivation

Introspection of de.pengutronix.rauc fails on generic linux, which is to be expected since RAUC is only available on HassOS.

Log:

18-07-06 16:52:50 INFO (MainThread) [hassio.utils.gdbus] Introspect de.pengutronix.rauc on /
18-07-06 16:52:50 ERROR (MainThread) [hassio.utils.gdbus] DBus return error: b'Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name de.pengutronix.rauc was not provided by any .service files\n'
18-07-06 16:52:50 WARNING (MainThread) [hassio.dbus.rauc] Can't connect to rauc

Expected behavoir

I did not expect the error to show up in the logs. I can imagine it might confuse less technical users.

Suggested solution

Only introspect for RAUC, in case the underlying system is HassOS.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 6
  • Comments: 26 (4 by maintainers)

Most upvoted comments

@daninfuchs Maybe a simple, indirect, temporary solution will solve raised alarms in new users like me. Maybe it’s enough to suppress the message or the update request if not running on HassOS… Or maybe explicitly adding to the message text: “Please ignore this message if NOT running on HassOS, see issue #560”. Just my 2 cents to avoid wasting time with silly issues. Piero

How about logging it at warning (instead of error) and/or skipping it if the platform is not detected as hassos, as in the suggested solution? Log diarrhea is not a good thing.

Fix with next supervisor

I’ve never seen this before, but now Supervisor gives a warning image and the log file says:

22-03-14 16:20:22 WARNING (MainThread) [supervisor.dbus.manager] Can't load dbus interface de.pengutronix.rauc: The name de.pengutronix.rauc was not provided by any .service files
22-03-14 16:20:22 WARNING (MainThread) [supervisor.dbus.manager] Can't load dbus interface org.freedesktop.resolve1: Unit dbus-org.freedesktop.resolve1.service not found.

I am on a Rpi4 with Debian 10 (buster) so maybe that’s the problem? As far as I know, this only started to show up with core-2022.3

That is not on my task list, so I never will work on that. I hold it open that other developer can pick this and provide a real fix and not only modify logger or change the log message.

I just ran into this issue as well, ran the Hassio install on ubuntu 18 LTS

Any way of installing Rauc on generic linux?

Rauc is the OTA updater for HassOS. This message mean: hey there is no HassOS around