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

[BUG] Fix for #109 breaks setup of a previously functioning HACs custom integration #111

Closed
1 task done
3ll3d00d opened this issue Oct 13, 2024 · 6 comments
Closed
1 task done

Comments

@3ll3d00d
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

a custom integration fails to install

2024-10-13 18:34:12.032 ERROR (SyncWorker_27) [homeassistant.util.package] Unable to install package hamcws==0.1.31: error: Failed to install: hamcws-0.1.31-py3-none-any.whl (hamcws==0.1.31)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/AqB0g_eWr9PPwGnFH_unP/LICENSE to /usr/local/lib/python3.12/site-packages/LICENSE
  Caused by: Operation not permitted (os error 1)

Expected Behavior

the integration installs normally

Steps To Reproduce

upgrade an existing installation with some hacs custom integrations to the new build that incorporates #110

Environment

- OS: unraid 6.10
- How docker service was installed: unraid 6.10

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='homeassistant'
  --net='host'
  -e TZ="Europe/London"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="zalaga-unraid"
  -e HOST_CONTAINERNAME="homeassistant"
  -e 'TCP_PORT_8123'='8123'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8123]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/homeassistant-logo.png'
  -v '/mnt/user/backups/homeassistant':'/config/backups':'rw'
  -v '/mnt/user/homeassistant':'/config':'rw' 'lscr.io/linuxserver/homeassistant'
7021566a9010b955d98353d10a3795a81b6c2a70c330e25240df0f3f603cce22

Container logs

024-10-13 20:01:42.519 ERROR (SyncWorker_20) [homeassistant.util.package] Unable to install package hamcws==0.1.31: error: Failed to install: hamcws-0.1.31-py3-none-any.whl (hamcws==0.1.31)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/AqB0g_eWr9PPwGnFH_unP/LICENSE to /usr/local/lib/python3.12/site-packages/LICENSE
  Caused by: Operation not permitted (os error 1)
2024-10-13 20:01:42.519 INFO (SyncWorker_20) [homeassistant.util.package] Attempting install of hamcws==0.1.31
@3ll3d00d
Copy link
Author

not sure why it's trying to copy to a location that isn't specific to the same package, the offending file is owned by root

/usr/local/lib/python3.12/site-packages# ls -la LICENSE
-rw-rw-r-- 1 root lsio 0 Oct 13 20:01 LICENSE

@florie1706
Copy link

I think I have the same issue with a different integration:

2024-10-13 21:16:17.567 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package weconnect-cupra-daern==0.50.13: error: Failed to install: weconnect_cupra_daern-0.50.13-py3-none-any.whl (weconnect-cupra-daern==0.50.13)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/UsIrIOV7wR8JUu5ZYahzD/tests/__init__.py to /usr/local/lib/python3.12/site-packages/tests/__init__.py
  Caused by: Operation not permitted (os error 1)
2024-10-13 21:16:18.820 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package ascii_magic==2.1.1: error: Failed to install: ascii_magic-2.1.1-py3-none-any.whl (ascii-magic==2.1.1)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/bqU5mV30p3Ohbsh5GU_3p/tests/__init__.py to /usr/local/lib/python3.12/site-packages/tests/__init__.py
  Caused by: Operation not permitted (os error 1)
2024-10-13 21:16:19.150 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package ascii_magic==2.1.1: error: Failed to install: ascii_magic-2.1.1-py3-none-any.whl (ascii-magic==2.1.1)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/bqU5mV30p3Ohbsh5GU_3p/tests/__init__.py to /usr/local/lib/python3.12/site-packages/tests/__init__.py
  Caused by: Operation not permitted (os error 1)
2024-10-13 21:16:19.697 ERROR (SyncWorker_8) [homeassistant.util.package] Unable to install package ascii_magic==2.1.1: error: Failed to install: ascii_magic-2.1.1-py3-none-any.whl (ascii-magic==2.1.1)
  Caused by: failed to copy file from /config/.cache/uv/archive-v0/bqU5mV30p3Ohbsh5GU_3p/tests/__init__.py to /usr/local/lib/python3.12/site-packages/tests/__init__.py
  Caused by: Operation not permitted (os error 1)
2024-10-13 21:16:19.698 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'cupra_we_connect': Requirements for cupra_we_connect not found: ['ascii_magic==2.1.1'].

@aptalca
Copy link
Member

aptalca commented Oct 13, 2024

not sure why it's trying to copy to a location that isn't specific to the same package, the offending file is owned by root

User is root, but the group is lsio. The file has group rw and the abc user belongs to lsio group.

@aptalca
Copy link
Member

aptalca commented Oct 13, 2024

If I do a manual cp, it works (as expected) but uv fails when it tries to do that. No idea why.

@florie1706
Copy link

florie1706 commented Oct 14, 2024

Image ghcr.io/linuxserver/lspipepr-homeassistant:2024.10.2-pr-112 from PR #112 fixed my problem :) Thanks 👍

@aptalca
Copy link
Member

aptalca commented Oct 14, 2024

Had to use an ugly hack but it seems to work for now. I'll keep tinkering with it.
New build should be out shortly.

@aptalca aptalca closed this as completed Oct 14, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants