Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

jq: error: Could not open file /data/options.json: Permission denied #8

Closed
mtthp opened this issue Oct 29, 2020 · 3 comments · Fixed by #9
Closed

jq: error: Could not open file /data/options.json: Permission denied #8

mtthp opened this issue Oct 29, 2020 · 3 comments · Fixed by #9
Assignees
Labels
bug Something isn't working teslamate Pertaining to the Teslamate addon

Comments

@mtthp
Copy link

mtthp commented Oct 29, 2020

After updating the HA supervisor, it seems that the options.json file is out of reached because the teslamate addon isn't run with the root user, as it is stated here : home-assistant/supervisor#2158

Here are the logs of my instance :

jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
jq: error: Could not open file /data/options.json: Permission denied
/ha-bootstrap.sh: line 24: [: ==: unary operator expected
waiting for postgres at 127.0.0.1:5432 (2sec)

Is it possible to set the user as root in https://github.com/matt-FFFFFF/hassio-addon-repository/blob/master/teslamate/Dockerfile#L40 to fix the issue ?

@matt-FFFFFF
Copy link
Owner

Understood, leave it with me - thanks for reporting

@matt-FFFFFF matt-FFFFFF self-assigned this Oct 30, 2020
@matt-FFFFFF matt-FFFFFF added teslamate Pertaining to the Teslamate addon bug Something isn't working labels Oct 30, 2020
@matt-FFFFFF
Copy link
Owner

Hi, have released 0.4.0 - please can you validate @mtthp ?

@mtthp
Copy link
Author

mtthp commented Nov 2, 2020

Yes, working as it should now. I tested by pulling locally your repo because it doesn't seems to be available by fetching it from Github.
Thank you very much for your help 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working teslamate Pertaining to the Teslamate addon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants