Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
- DietPi version |
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=0
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
(also happens with 9.0.2 beta on another system with different hardware) - Distro version | bookworm
- Kernel version | Linux DietPi 6.5.0-0.deb12.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1~bpo12+1 (2023-11-23) x86_64 GNU/Linux
- Architecture |
- SBC model | amd64 (Intel Nuc 11 Essential, same issue on Intel NUC 8i3BEH
- Power supply used | OEM power supply
- SD card used | M.2 nvme drive (Samsung EVO 870)
Additional Information (if applicable)
- Software title | Home Assistant
- Updated
- Replicable on 2 separate instances
Steps to reproduce
- Update DietPi and Home Assistant
- Install Midea Air Appliances (LAN) through HACS
- Try to add Midea Dehumidifier integration (which used to work before, but stopped due to changes in Home Assistant)
- Check logs
Expected behaviour
- Midea Dehumidifier integration should work
Actual behaviour
HA cannot load the integration, and 2 errors are found in the logs, both linked to a ‘Read Only file system’ issue:
Logger: homeassistant.loader
Source: loader.py:822
First occurred: 11:38:41 (1 occurrences)
Last logged: 11:38:41
Unexpected exception importing component custom_components.midea_dehumidifier_lan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
from midea_beautiful.cloud import MideaCloud
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/__init__.py", line 7, in <module>
from midea_beautiful.lan import LanDevice, appliance_state
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/lan.py", line 13, in <module>
from midea_beautiful.appliance import Appliance
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/appliance.py", line 8, in <module>
from midea_beautiful.command import (
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/command.py", line 17, in <module>
_order_lock = RLock()
^^^^^^^
File "/usr/local/lib/python3.11/multiprocessing/context.py", line 73, in RLock
return RLock(ctx=self.get_context())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 194, in __init__
SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 57, in __init__
sl = self._semlock = _multiprocessing.SemLock(
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system
and
Logger: homeassistant.setup
Source: setup.py:251
First occurred: 11:38:41 (1 occurrences)
Last logged: 11:38:41
Setup failed for custom integration 'midea_dehumidifier_lan': Unable to import component: Exception importing custom_components.midea_dehumidifier_lan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 822, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/midea_dehumidifier_lan/__init__.py", line 29, in <module>
from midea_beautiful.cloud import MideaCloud
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/__init__.py", line 7, in <module>
from midea_beautiful.lan import LanDevice, appliance_state
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/lan.py", line 13, in <module>
from midea_beautiful.appliance import Appliance
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/appliance.py", line 8, in <module>
from midea_beautiful.command import (
File "/usr/local/lib/python3.11/site-packages/midea_beautiful/command.py", line 17, in <module>
_order_lock = RLock()
^^^^^^^
File "/usr/local/lib/python3.11/multiprocessing/context.py", line 73, in RLock
return RLock(ctx=self.get_context())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 194, in __init__
SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
File "/usr/local/lib/python3.11/multiprocessing/synchronize.py", line 57, in __init__
sl = self._semlock = _multiprocessing.SemLock(
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 830, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.midea_dehumidifier_lan
For info, both systems have either a 256 or a 512GB drive of which literally about 1GB is used.
Adding other integrations also works, and adding and removing e.g. folders in the CLI also works.