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

Devcontainer Permission denied error during chown #13109

Closed
4 tasks done
Adrien-D opened this issue May 29, 2024 · 0 comments · Fixed by #13111
Closed
4 tasks done

Devcontainer Permission denied error during chown #13109

Adrien-D opened this issue May 29, 2024 · 0 comments · Fixed by #13111
Labels
area/build Build or GithubAction/CI issues area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix P3 Low priority type/bug

Comments

@Adrien-D
Copy link
Member

Adrien-D commented May 29, 2024

Pre-requisites

  • I have double-checked my configuration
  • I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
  • I have searched existing issues and could not find a match for this bug
  • I'd like to contribute the fix myself (see contributing guide)

What happened/what did you expect to happen?

Trying to build the Dev Containers extension with Visual Studio Code, it fails with this error

+ sudo chown -R vscode:vscode /home/vscode/go
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/68/731473993a08a5ee54b4d3c9e98d2b20556ffe': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/d8/d51dfbca81d1b2c9d2953a8e70bf84473e2a73': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/pack/pack-77aedb02a90e545d47e39071c537d350485bacd1.pack': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/pack/pack-77aedb02a90e545d47e39071c537d350485bacd1.idx': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/7d/591463e237ff7ccc62106429359ae397c04ef3': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/e7/dfc42dcce830221b7892cea2751eb73e837b9d': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/2c/0f747bb334fbc00a95007f4bb0f05a3ca69c41': Permission denied
chown: changing ownership of '/home/vscode/go/src/github.com/argoproj/argo-workflows/.git/objects/84/1696c9f7f8de069949a6edf1f420876f66ba1c': Permission denied

What's next?
  Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug e9c3e807acebd41613ef1fb26582da47978b990800c14a4e8ef2793dfb48cb0e
  Learn more at https://docs.docker.com/go/debug-cli/
[323873 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

I expect this error not to happen and the process to finish

Version

v3.5.7

Happening on a mac M1 arm64

Workaround

By changing sudo chown -R vscode:vscode /home/vscode/go to sudo chown -R vscode:vscode /home/vscode/go || true, it just ignore the error and everything works well

@agilgur5 agilgur5 added P3 Low priority area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix labels May 29, 2024
@agilgur5 agilgur5 changed the title Running Locally - Permission Denied error Devcontainer Permission denied error during chown May 29, 2024
Joibel pushed a commit that referenced this issue May 29, 2024
@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label May 29, 2024
ATGardner pushed a commit to codefresh-io/argo-workflows that referenced this issue Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/contributing Contributing docs, ownership, etc. Also devtools like devcontainer and Nix P3 Low priority type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants