Hi everyone,
I’m relatively new to Home Assistant and TrueNAS Scale, but I’ve been using them to learn as I go. Home Assistant was running smoothly for about two years until last week when I decided to upgrade my storage setup.
I disconnected the temporary drives I was using and set up a new 16TB mirrored storage pool. After navigating through some challenges with the updated TrueNAS Scale interface, I finally got Home Assistant back up and running. I wasn’t too concerned about having to rebuild everything from scratch since I thought this would be a good opportunity to do it better.
However, after setting everything up and making it look great, I rebooted, and then I discovered that everything was gone! I checked the logs and found the following error messages:
PermissionError: [Errno 1] Operation not permitted
ERROR (MainThread) [homeassistant.helpers.storage] Error writing config for core.restore_state: [Errno 1] Operation not permitted
ERROR (SyncWorker_0) [homeassistant.util.file] Saving file failed: /config/.storage/bluetooth.passive_update_processor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/util/file.py”, line 62, in write_utf8_file
os.fchmod(fdesc.fileno(), 0o644)
and a second one with the same layout but another file:
ERROR (SyncWorker_6) [homeassistant.util.file] Saving file failed: /config/.storage/core.restore_state
At first, I assumed this was a permission issue—maybe Home Assistant doesn’t have the right permissions. However, I created the `homeassistant/config` directory myself, and Home Assistant was able to generate its subdirectories without any problems during setup.
Why would it give itself incorrect permissions? Did I miss something during the setup, or is there something else I need to check?
I’d appreciate any guidance or troubleshooting advice to help me resolve this.
Thanks in advance!