Addon unable to reach /data/options.json. Permission denied.
See original GitHub issueHome Assistant release with the issue: 0.116.4
Operating environment (HassOS/Generic): 4.14 on a RPI
Supervisor version having problem 249
Supervisor logs:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[20:54:08] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:54:10] INFO: Starting local supervisor watchdog...
20-10-21 20:54:11 INFO (MainThread) [__main__] Initializing Supervisor setup
20-10-21 20:54:11 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry
20-10-21 20:54:11 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/amd64-hassio-supervisor with version 249
20-10-21 20:54:11 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connecting Supervisor to hassio-network
20-10-21 20:54:11 INFO (SyncWorker_0) [supervisor.docker.interface] Cleanup images: ['homeassistant/amd64-hassio-supervisor:248']
20-10-21 20:54:11 INFO (MainThread) [__main__] Setting up Supervisor
20-10-21 20:54:11 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
20-10-21 20:54:11 INFO (MainThread) [supervisor.host.info] Updating local host information
20-10-21 20:54:11 INFO (MainThread) [supervisor.host.services] Updating service information
20-10-21 20:54:11 INFO (MainThread) [supervisor.host.network] Updating local network information
20-10-21 20:54:12 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
Failed to load cookie file from cookie: No such file or directory
20-10-21 20:54:12 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
20-10-21 20:54:12 INFO (MainThread) [supervisor.host.services] Reloading local service hassos-apparmor.service
20-10-21 20:54:12 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-dns with version 9
20-10-21 20:54:12 INFO (MainThread) [supervisor.plugins.dns] Restarting CoreDNS plugin
20-10-21 20:54:12 INFO (SyncWorker_0) [supervisor.docker.interface] Restarting homeassistant/amd64-hassio-dns
20-10-21 20:54:15 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-10-21 20:54:15 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-audio with version 17
20-10-21 20:54:15 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-cli with version 2020.10.0
20-10-21 20:54:15 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-observer with version 2020.10.1
20-10-21 20:54:15 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-multicast with version 3
20-10-21 20:54:15 INFO (MainThread) [supervisor.plugins.multicast] Restarting Multicast plugin
20-10-21 20:54:16 INFO (SyncWorker_0) [supervisor.docker.interface] Restarting homeassistant/amd64-hassio-multicast
20-10-21 20:54:19 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/qemux86-64-homeassistant with version 0.116.4
20-10-21 20:54:19 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 2 Home Assistant secrets
20-10-21 20:54:19 INFO (MainThread) [supervisor.hassos] Detect HassOS 4.14 / BootSlot A
20-10-21 20:54:19 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/e92a3241 repository
20-10-21 20:54:19 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/cebe7a76 repository
20-10-21 20:54:19 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
20-10-21 20:54:19 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
20-10-21 20:54:19 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/7ad98f9c repository
20-10-21 20:54:19 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 71 new - 0 remove
20-10-21 20:54:19 INFO (MainThread) [supervisor.addons] Found 11 installed add-ons
20-10-21 20:54:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-duckdns with version 1.12.1
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to sabeechen/hassio-google-drive-backup-amd64 with version 3.12
20-10-21 20:54:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to hassioaddons/sonweb-amd64 with version 0.13.0
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to dwelch2101/zigbee2mqtt-amd64 with version 1.15.0
20-10-21 20:54:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to hassioaddons/log-viewer-amd64 with version 0.9.0
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-ssh with version 8.9.1
20-10-21 20:54:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-mosquitto with version 5.1
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-samba with version 9.3.0
20-10-21 20:54:19 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-configurator with version 5.1.0
20-10-21 20:54:19 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to hassioaddons/portainer-amd64 with version 1.2.2
20-10-21 20:54:19 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-check_config with version 3.6.0
20-10-21 20:54:19 INFO (MainThread) [supervisor.snapshots] Found 30 snapshot files
20-10-21 20:54:20 INFO (MainThread) [supervisor.discovery] Loaded 1 messages
20-10-21 20:54:20 INFO (MainThread) [supervisor.ingress] Loaded 2 ingress sessions
20-10-21 20:54:20 INFO (MainThread) [__main__] Running Supervisor
20-10-21 20:54:20 INFO (MainThread) [supervisor.hassos] Rauc: A - marked slot kernel.0 as good
20-10-21 20:54:20 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
20-10-21 20:54:20 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
20-10-21 20:54:20 INFO (MainThread) [supervisor.misc.hwmon] Started Supervisor hardware monitor
20-10-21 20:54:20 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-10-21 20:54:20 INFO (MainThread) [supervisor.host.info] Updating local host information
20-10-21 20:54:20 INFO (MainThread) [supervisor.host.services] Updating service information
20-10-21 20:54:20 INFO (MainThread) [supervisor.host.network] Updating local network information
20-10-21 20:54:53 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/e92a3241_paradox_alarm_interface
20-10-21 20:54:53 INFO (SyncWorker_4) [supervisor.docker.interface] Downloading docker image paradoxalarminterface/pai with tag 2.2.2.
20-10-21 20:54:58 INFO (MainThread) [supervisor.addons] Add-on 'e92a3241_paradox_alarm_interface' successfully installed
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option LOGGING_FILE as Docker env
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option CONNECTION_TYPE as Docker env
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option IP_CONNECTION_SITEID as Docker env
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option IP_CONNECTION_EMAIL as Docker env
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option IP_CONNECTION_PANEL_SERIAL as Docker env
20-10-21 20:55:09 WARNING (SyncWorker_0) [supervisor.docker.addon] Can not set nested option LIMITS as Docker env
20-10-21 20:55:09 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
20-10-21 20:55:10 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on paradoxalarminterface/pai with version 2.2.2
Description of problem:
I am a maintainer of the Paradox Alarm System addon. Repository: https://github.com/ParadoxAlarmInterface/pai Supervisor auto updated itself and after a system reboot our addon can not reach it’s config anymore.
PermissionError: [Errno 13] Permission denied: '/data/options.json'
We did not had any releases for a long time and it suddenly stopped working for some of our users. Then I have rebooted my RPI and I got the same error users were getting. I tried to play with “map” parameter in paradox_alarm_interface/config.json but that did not help.
Addon repository: https://github.com/ParadoxAlarmInterface/hassio-repository
Please advise where to dig further. i am out of ideas.
Issue in our repo: https://github.com/ParadoxAlarmInterface/pai/issues/184
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
@ludeeus Thank you. Tried with root user now and it works again. Rebuilding containers. Closing.
You are not running the add-on as root, all JSON files are stored with 0600. If you can not use root to run the add-on, use the API to get the options
/addons/self/info
https://developers.home-assistant.io/docs/api/supervisor/endpoints#addons