core: System Monitor Integration Fails to Start
The problem
After loading HAOS 11.3 the SystemMonitor Integration Throws an error
2024-01-05 04:11:43.963 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up systemmonitor platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py", line 393, in async_setup_entry
disk_arguments = await hass.async_add_executor_job(get_all_disk_mounts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/util.py", line 22, in get_all_disk_mounts
usage = psutil.disk_usage(part.mountpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 2012, in disk_usage
return _psplatform.disk_usage(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/_psposix.py", line 177, in disk_usage
st = os.statvfs(path)
^^^^^^^^^^^^^^^^
BlockingIOError: [Errno 11] Resource temporarily unavailable: '/media/Music'
What version of Home Assistant Core has the issue?
2024.1.0
What was the last working version of Home Assistant Core?
2024.1.0
What type of installation are you running?
Home Assistant OS
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?
2024-01-05 04:11:43.963 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up systemmonitor platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py", line 393, in async_setup_entry
disk_arguments = await hass.async_add_executor_job(get_all_disk_mounts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/systemmonitor/util.py", line 22, in get_all_disk_mounts
usage = psutil.disk_usage(part.mountpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 2012, in disk_usage
return _psplatform.disk_usage(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/_psposix.py", line 177, in disk_usage
st = os.statvfs(path)
^^^^^^^^^^^^^^^^
BlockingIOError: [Errno 11] Resource temporarily unavailable: '/media/Music'
Additional information
The /media/Music Mounted CIFS volume does work when I go to Media / myMedia / Music folder … I see the sub folders and files from the UI and I am able to play music in the Browser
it was working prior to the HAOS 11.3 update
I tried to remove and re add the system Monitor Integration and that fails the same way
I can access the File Share from other devices with no problem
I do not see diagnostic data available for systemmonitor.
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 2
- Comments: 19 (5 by maintainers)
It seems there is some problem with shares in general, the
systemmonitorintegration only helps the issue to manifest. It’s unlikely related to Core, so let’s gather more information in https://github.com/home-assistant/operating-system/issues/3041