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

Error: [Errno 13] Permission denied: ../build/nvidia-uefi' #86

Open
fadhelh-nd opened this issue Dec 4, 2023 · 3 comments
Open

Error: [Errno 13] Permission denied: ../build/nvidia-uefi' #86

fadhelh-nd opened this issue Dec 4, 2023 · 3 comments

Comments

@fadhelh-nd
Copy link

Hi,
When following steps https://github.com/NVIDIA/edk2-nvidia/wiki/Build-with-docker

I'm seeing permission denied when giving
$ edk2_docker edkrepo clone nvidia-uefi NVIDIA-Platforms main
Syncing the global manifest repository: /home/fadhelh/.edkrepo/edk2-edkrepo-manifest-main
Syncing the global manifest repository: /home/fadhelh/.edkrepo/nvidia
Error: [Errno 13] Permission denied: '/home/fadhelh/project/octo_v1/uefi_docker/build/nvidia-uefi

When tried with
$sudo edk2_docker edkrepo clone nvidia-uefi NVIDIA-Platforms main
sudo: edk2_docker: command not found

I could even see hello when giving
edk2_docker echo hello

Please guide.

Regards

@jgarver
Copy link
Contributor

jgarver commented Dec 4, 2023

You'll need to check the permissions on /home/fadhelh/project/octo_v1/uefi_docker/build and make sure docker can access it.

We can also take a peek inside the container with:
edk2_docker ls -l

You definitely shouldn't need sudo access.

Thanks.

@yenchao
Copy link

yenchao commented Dec 23, 2024

Hi
I have met the same problem.
could you descript more details how to " check the permissions on /home/fadhelh/project/octo_v1/uefi_docker/build and make sure docker can access it"
Thx

@jgarver
Copy link
Contributor

jgarver commented Dec 23, 2024

It's attempting to create the "nvidia-uefi" workspace under the "build" directory, but doesn't have file permissions. This is run from inside docker, but should be using the same user id as the user id that launched docker. In other words, if "yanchao" ran "edk2_docker", then edkrepo should be running inside docker as "yanchao" and have the same access to "nvidia-uefi" and "build".

My best guess is you're mixing in sudo calls when you don't need to. The end result is that you have directories owned by root when they should all be owned by "yanchao".

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

3 participants