Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introspection of de.pengutronix.rauc fails on generic linux #560

Closed
frenck opened this issue Jul 7, 2018 · 26 comments
Closed

Introspection of de.pengutronix.rauc fails on generic linux #560

frenck opened this issue Jul 7, 2018 · 26 comments

Comments

@frenck
Copy link
Member

frenck commented Jul 7, 2018

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.

@jjtoard
Copy link

jjtoard commented Jan 28, 2019

issues disappeared after upgrade to 0.86.3
but after a few reboots it is back

@frenck
Copy link
Member Author

frenck commented Jan 29, 2019

@jjtoard This happens in Hass.io and has nothing to do with your HA version.
It is not a harmful message.

@jerrychong25
Copy link

jerrychong25 commented Feb 14, 2019

This issue still appeared on Raspbian OS with HA 0.87.1 installation.

@pimoon
Copy link

pimoon commented Feb 23, 2019

I got the issue me too.
Armbian Strech last version
Hassio fresh install

@pvizeli
Copy link
Member

pvizeli commented Feb 23, 2019

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

@Alxandr
Copy link

Alxandr commented Mar 1, 2019

Any way of installing Rauc on generic linux?

@dodexahedron
Copy link

dodexahedron commented Mar 8, 2019

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.

@stale
Copy link

stale bot commented May 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 7, 2019
@niemyjski
Copy link

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

@stale stale bot removed the stale label May 8, 2019
@keith721
Copy link

Please revise/update to WARNING rather than ERROR status.

@iamandymcinnes
Copy link

I'm also getting it on ubuntu 18.04

@PieBru
Copy link

PieBru commented May 13, 2019

This alarming log is still present today on Arch Linux, hassio fresh install from github repo, hassio-supervisor v163.

@codefaux
Copy link

Still there, for sure. Turns out I spent time out of my life searching for a fix to a problem that's not a problem while trying to diagnose something unrelated, due to an avoidable formatting change on an "error" message that doesn't actually mean anything important. Back to trying to figure out what's broken.

@PieBru
Copy link

PieBru commented May 14, 2019

@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

@stale
Copy link

stale bot commented Jul 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 13, 2019
@niemyjski
Copy link

Any ideas on this?

@stale stale bot removed the stale label Jul 16, 2019
@JranZu
Copy link

JranZu commented Aug 11, 2019

I have to agree with others on here - this message should only be showing up if running HassOS -- or at a minimum include that in the exception. I knew where to look for the answer so only wasted a few minutes on this -- but others that are not as experienced with open source software could spend hours trying to solve this -- possibly just giving up on HA all together.

@codefaux
Copy link

Personally, I feel that any software that throws an ERROR message during its normal operation is broken. If it's an error, it's something broken, incorrect, wrong, not working as planned. If it's an error, it is a problem. If it's a warning, it's something to safely ignore. My proposition, in a wholly generalized "approach to basic diagnostic error correction" in debugging my own work;
1 - It doesn't matter? It must not be an error, sounds like a warning or info message to me. Downgrade it.
2 - Maybe run a check so the error message from whatever underlying system isn't presented. If it IS an error, you're using something wrong and/or haven't built infrastructure to prevent the error from occuring.
3 - If I down't own the code presenting the error, maybe I should add my own debug line nearby telling people THEN AND THERE that it's not ACTUALLY an error, I'm just not capable of blocking it -- this way they don't have to find/file a (year old) Github issue to eliminate the message as a potential source of a failure they're trying to diagnose.

I hope this helps! Keep up the good work, this entire thing is amazing.

@pvizeli
Copy link
Member

pvizeli commented Aug 14, 2019

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.

@codefaux
Copy link

Awesome @frenck, super happy to see that it was a quick toss-in after all! Not to demean your work or anything, of course. I can't 'Like' pull requests directly or I just would've done that, lol. Good job!

@pvizeli
Copy link
Member

pvizeli commented Aug 22, 2019

Fix with next supervisor

@pvizeli pvizeli closed this as completed Aug 22, 2019
@lemassykoi
Copy link

lemassykoi commented Dec 12, 2021

same issue here on HomeAssistant Supervised fresh install, Rpi4, Debian 11 (only a Warning, in orange, in Logs, but annoying)

21-12-12 22:23:55 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

Supervisor supervisor-2021.12.1
Core core-2021.12.0

I have to agree with others on here - this message should only be showing up if running HassOS

@kongo09
Copy link

kongo09 commented Mar 14, 2022

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

@neckyaan
Copy link

neckyaan commented Apr 3, 2022

Update the package index:

sudo apt-get update

Install rauc-service deb package:

sudo apt-get install rauc-service

@Fusseldieb
Copy link

Update the package index:

sudo apt-get update
Install rauc-service deb package:

sudo apt-get install rauc-service

Executing and installing this makes no sense imo, since it will only be used in embedded installs like HassOS. Generic Linux probably won't even use it.

@KunalThanvi07
Copy link

WARNING: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name de.pengutronix.rauc was not provided by any .service files
WARNING: Failed to install software bundle.

facing this error while installing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.