linuxserver/docker-homeassistant

[BUG] permission error when starting 2023.6.1

zanna-37 opened this issue · 4 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm receiving a permission error when starting 2023.6.1.
This was not happening on 2023.5.4.

Expected Behavior

Permission should be correct.

Steps To Reproduce

Start the container with external components.

Environment

OS: rasberry OS bullseye 64bit

CPU architecture

arm64

Docker creation

Not relevant

Container logs

homeassistant  | 2023-06-12 06:55:59.797 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package deebot-client==1.6.0: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/lsiopy/lib/python3.11/site-packages/examples/__init__.py'
homeassistant  | 2023-06-12 07:02:00.612 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package watchdog==2.2.1: WARNING: Ignoring invalid distribution -oniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -roniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution - (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -atchdog (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -oniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -roniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution - (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -atchdog (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -oniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -roniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution - (/lsiopy/lib/python3.11/site-packages)
homeassistant  | WARNING: Ignoring invalid distribution -atchdog (/lsiopy/lib/python3.11/site-packages)
homeassistant  |     WARNING: Ignoring invalid distribution -oniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  |     WARNING: Ignoring invalid distribution -roniter (/lsiopy/lib/python3.11/site-packages)
homeassistant  |     WARNING: Ignoring invalid distribution - (/lsiopy/lib/python3.11/site-packages)
homeassistant  |     WARNING: Ignoring invalid distribution -atchdog (/lsiopy/lib/python3.11/site-packages)
homeassistant  | ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'REQUESTED'
homeassistant  | Check the permissions.

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Check #70

Already saw that but I think it's slightly different.
I see that some packets have the right permission, others don't.

drwxr-xr-x  2 root root 4.0K Jun  9 07:16  typing_inspect-0.9.0.dist-info
-rw-r--r--  1 root root  28K Jun  9 07:16  typing_inspect.py
drwxr-x---  6 abc  abc  4.0K Jun 12 07:04  typish
drwxr-x---  2 abc  abc  4.0K Jun 12 07:04  typish-1.9.3.dist-info
drwxr-xr-x  4 root root 4.0K Jun  9 07:15  tzdata
drwxr-xr-x  2 root root 4.0K Jun  9 07:15  tzdata-2023.3.dist-info

By the way, in #70 the focus is on custom components that try to overwrite existing py packets, while in my case I think it's installing new ones.

I close this for now and I will investigate better.
I'll reopen when/if I have more information.
Thanks.