-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
HAOS compile failed with git dubious ownership #2347
Comments
Hm, I haven't come across this so far. It seems that the problem appears when Buildroot builds |
Is it possible that your docker image is using old git binary from cached layers? There is a CVE for dubious ownership: https://nvd.nist.gov/vuln/detail/cve-2022-24765 and it seems like Debian backported the git security update that fixes that CVE to bullseye, breaking the build There's this: https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/ that we can try |
I got the same error. I've got a freshly installed Docker instance on a fresh Windows 11/WSL2 system. @minecraft2048
|
Good guess, and I was already certain that should be it. But: I've removed the image, and made sure git got reinstalled. From the logs I can see that the image gets rebuilt and git gets reinstalled. However, I am still not able to reproduce. Even after blowing away my whole build and build cache.
Maybe something got updated again? Seems the last update to the git package is two weeks ago already. I got
This works as a work around, but ideally the unterlaying git call from the wrong directory should be addressed. |
Running |
@millin thanks, that hint allowed me to reproduce this problem: With The script runs the whole build within the container as root if it has been started with user id 0. That leads to the git error message. It seems that |
Fixed by #2347 |
Describe the issue you are experiencing
I try to follow the instruction at https://developers.home-assistant.io/docs/operating-system/getting-started, and it failed to build containerd with
fatal: detected dubious ownership in repository at '/build'
This failed with both podman on my home Arch linux machine and docker version 20.10.17 on AWS EC2 Ubuntu
The last output is this:
What operating system image do you use?
rpi4-64 (Raspberry Pi 4/400 64-bit OS)
What version of Home Assistant Operating System is installed?
dev
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
fatal: detected dubious ownership in repository at '/build'
...
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: