home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.38k stars 30.64k forks source link

SystemMonitor home directory #125134

Open Noltari opened 2 months ago

Noltari commented 2 months ago

The problem

There's a warning when the integration is loaded: OS error for home, error [Errno 2] No such file or directory: 'home' In my docker compose I've got the debian /home mounted as /debian_home. I've tried mounting another empty /home directory to suppress the error but it doesn't work.

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

I think it was working before systemmonitor config was migrated from YAML to UI.

What type of installation are you running?

Home Assistant Container

Integration causing the issue

systemmonitor

Link to integration documentation on our website

https://www.home-assistant.io/integrations/systemmonitor/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Registrador: homeassistant.components.systemmonitor.coordinator
Fuente: components/systemmonitor/coordinator.py:157
integración: System Monitor (documentación, problemas)
Ocurrió por primera vez: 11:58:48 (1 ocurrencias)
Último inicio de sesión: 11:58:48

OS error for home, error [Errno 2] No such file or directory: 'home'

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @gjohansson-st, mind taking a look at this issue as it has been labeled with an integration (systemmonitor) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `systemmonitor` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign systemmonitor` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


systemmonitor documentation systemmonitor source (message by IssueLinks)

gjohansson-ST commented 3 weeks ago

the integration does a discovery on startup so somehow it would think there is a /home directory which then is not then actually there. Maybe you can do df -h from within the container to see what it actually mounts?