8000 camera.snapshot 'no access to path!' error in 0.65.x · Issue #13107 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

camera.snapshot 'no access to path!' error in 0.65.x #13107

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

Closed
mvdarend opened this issue Mar 12, 2018 · 2 comments · Fixed by #13154
Closed

camera.snapshot 'no access to path!' error in 0.65.x #13107

mvdarend opened this issue Mar 12, 2018 · 2 comments · Fixed by #13154

Comments

@mvdarend
Copy link
mvdarend commented Mar 12, 2018

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.65.2 and 0.65.3 0.64.3

Python release (python3 --version):

Component/platform:
Raspberry Pi 3

Description of problem:
camera.snapshot seems to have broken in the 0.65.x 0.64.3 release. I was running 0.64.2 and it worked fine untill I updated to 0.65.2, I then received the error 'Can’t write ‘/tmp/snapshot_front_door_1.jpg’, no access to path!'

Expected:
Expected it to write to the given path :)

Problem-relevant configuration.yaml entries and steps to reproduce:

whitelist_external_dirs: /tmp/

homeassistant user has full access to the /tmp/ folder

        entity_id: camera.front_door_camera
        filename: "/tmp/snapshot_front_door_1.jpg"

Additional info:
Reverting to version before 0.64.3 fixes the problem, it now works as before. I'm now running version 0.64.2 again and it works as expected.

Seem to be related to a fix in the 0.64.3 release:
https://github.com/home-assistant/home-assistant/releases/tag/0.64.3

@kellerza
Copy link
Member

@mvdarend as you mentioned in the forum, likely to #12810.

File paths and directory paths must be handled differently and will look into this for you

@luca-angemi
Copy link
Contributor
luca-angemi commented Mar 12, 2018

Found a workaround while it gets fixed: create a file with the same name of the snapshot in the same folder.
The camera.snapshot service won't throw an error and your file will be overwritten.

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

Successfully merging a pull request may close this issue.

3 participants
0