Skip to content
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

Can not read config file #184

Closed
tilentravnik opened this issue Oct 21, 2020 · 13 comments
Closed

Can not read config file #184

tilentravnik opened this issue Oct 21, 2020 · 13 comments

Comments

@tilentravnik
Copy link

Hi, I'm running PAI as an add-in in HA. Running 2.2.2. When I start the add-in I get the following message in the log:
Attempting to load configuration from /data/options.json Traceback (most recent call last): File "/usr/local/bin/pai-service", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/site-packages/paradox/console_scripts/pai_run.py", line 36, in main main(args) File "/usr/local/lib/python3.7/site-packages/paradox/main.py", line 118, in main cfg.load() File "/usr/local/lib/python3.7/site-packages/paradox/config.py", line 314, in load with open(self.CONFIG_FILE_LOCATION) as f: PermissionError: [Errno 13] Permission denied: '/data/options.json'

All was working a few days ago.

@skkostas
Copy link

I have the same issue after I reboot my RPI.

HA version 0.116.2
OS version 4.13

@yozik04
Copy link
Collaborator

yozik04 commented Oct 21, 2020

Created an issue in supervisor's repo.

@yozik04
Copy link
Collaborator

yozik04 commented Oct 21, 2020

I also got that after reboot. Strange that other plugins work fine.

@dragonflyuk
Copy link

I've woken up to this aswell.

@vargatomy
Copy link

I have the same issue for a couple of days
OS: Ubuntu 18.04.5 LTS \n \l
Docker: Docker version 19.03.13, build 4484c46d9d
HA: 0.116.4
PAI: 2.2.2

Thanks for checking!

@kylev12
Copy link

kylev12 commented Oct 22, 2020

I have the same issue today after a reboot also,

HA version: 0.116.4
OS version: 4.14
PAI version: 2.2.2

Attempting to load configuration from /data/options.json
Traceback (most recent call last):
File "/usr/local/bin/pai-service", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/paradox/console_scripts/pai_run.py", line 36, in main
main(args)
File "/usr/local/lib/python3.7/site-packages/paradox/main.py", line 118, in main
cfg.load()
File "/usr/local/lib/python3.7/site-packages/paradox/config.py", line 314, in load
with open(self.CONFIG_FILE_LOCATION) as f:
PermissionError: [Errno 13] Permission denied: '/data/options.json'

@yozik04
Copy link
Collaborator

yozik04 commented Oct 22, 2020

Fixed in dev.
Master is in progress.

@yozik04
Copy link
Collaborator

yozik04 commented Oct 22, 2020

Should be fixed now.

@tilentravnik
Copy link
Author

Is there a way to upgrade this or should I just wait for an updated Add-on?

@yozik04
Copy link
Collaborator

yozik04 commented Oct 22, 2020

If you are using dev version then you need to reinstall the plugin.
I do not know how supervisor updates addons. For main version maybe a reboot is sufficient to trigger update.

@tilentravnik
Copy link
Author

I tried rebooting the host - no change. I tried uninstalling the add-on - no change (installed version 2.2.2 right back). Now running the dev version of the add-on with no problems. Would be nice to fully understand how new add-on versions are distributed. Thanks for the help @yozik04 !

@Gunth
Copy link

Gunth commented Oct 22, 2020

Remove the repository and add it worked for me ...

@tilentravnik
Copy link
Author

Yes, uninstalling and reinstalling the repository works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants