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
Container submounts in /dev are read-only with Docker 25+ #4996
Comments
As described in #4996, Docker 25+ changes made sub-mounts of the /dev filesystem to be mounted read-only. Revert to the previous behavior by adjusting the ReadOnlyNonRecursive option. Cleaner way would be to upstream support for setting this option via Mount class arguments, so this change is meant to be rather a hotfix for the issue. Even better approach would be mounting /dev non-recursively, and taking care of creating all necessary filesystems when creating containers in Supervisor.
As described in #4996, Docker 25+ changes made sub-mounts of the /dev filesystem to be mounted read-only. Revert to the previous behavior by adjusting the ReadOnlyNonRecursive option. Cleaner way would be to upstream support for setting this option via Mount class arguments, so this change is meant to be rather a hotfix for the issue. Even better approach would be mounting /dev non-recursively, and taking care of creating all necessary filesystems when creating containers in Supervisor.
As described in #4996, Docker 25+ changes made sub-mounts of the /dev filesystem to be mounted read-only. Revert to the previous behavior by adjusting the ReadOnlyNonRecursive option. Cleaner way would be to upstream support for setting this option via Mount class arguments, so this change is meant to be rather a hotfix for the issue. Even better approach would be mounting /dev non-recursively, and taking care of creating all necessary filesystems when creating containers in Supervisor.
The Home Assistant Core container is not recreated on restart. However, the bug fix needs a container creation to take effect. So for the InfluxDB '[Errno 30] Read-only file system' issue a |
@agners How to pull the 2024.4.0 (or .1) image and linking it to current suppressed HA like we was doing with Silabs multi protocol then i can finding the image (or the right path to it) ? |
Currently, you'd need to update Supervisor 2024.04.0 specifically:
Other parts of the system (Core/Add-ons) won't get updated to the beta channel when you move right back to stable. We most likely will promote Supervisor 2024.04.0 to stable next week. |
Thanks @agners its working great after doing the Great work done !!!And large thanks for helping !!! PS: Shall reversing one test system to no dev so can see then the new |
Describe the issue you are experiencing
Docker 25.0.0 introduced a change that makes recursive mounts read-only, unless explicitly specified otherwise. However, in many cases the add-ons and even the Home Assistant Core might rely on
/dev/pts
(for psedo-terminal allocation) and/dev/shm
(for accessing shared memory) to be writable. It is possible to change it to make recursed mounts to be mounted writable to keep the old behavior, as suggested e.g. here.The issue already manifested a while ago when Docker was upgraded on some Supervised installations but it was not pursued further and was likely incorrectly assumed to be a result of the other upstream Docker bug: #4827 (comment)
With Docker bump in HAOS 12.2.rc1 the issue started to manifest on more places, e.g. for InfluxDB, hdmi_cec, both likely needing shared memory, or for the Advanced SSH add-on failing to create PTY.
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Steps to reproduce the issue
exec sudo -i
in.profile
withsudo: unable to allocate pty: Read-only file system
.Anything in the Supervisor logs that might be useful for us?
System Health information
N/A
Supervisor diagnostics
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: