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

fix: devcontainers permissions on Windows #26

Merged
merged 1 commit into from
Dec 21, 2023
Merged

fix: devcontainers permissions on Windows #26

merged 1 commit into from
Dec 21, 2023

Conversation

Becheler
Copy link
Collaborator

@Becheler Becheler commented Dec 21, 2023

Yibo gets this error on Windows 10 22H2

ERROR: boost/1.79.0: Error in build() method, line 887
        self.run(full_command)
        ConanException: Error 1 while executing
[775293 ms] onCreateCommand failed with exit code 1. Skipping any further user-provided commands.
[775332 ms] Error: Command failed: /bin/sh -c chmod +x .devcontainer/onCreateCommand.sh && ./.devcontainer/onCreateCommand.sh
[775332 ms]     at fY (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:235:130)
[775332 ms]     at runMicrotasks (<anonymous>)
[775332 ms]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[775333 ms]     at async rl (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:227:4393)
[775333 ms]     at async el (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:227:3738)
[775333 ms]     at async il (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:227:2745)
[775333 ms]     at async TeA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:612:30432)
[775333 ms]     at async PeA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:612:27664)
[775394 ms] Exit code 1
[775394 ms] Start: Run: docker rm -f 02f3da14e958f5ac342e7694eddd9f1f22dcb381674af63d53a33ff82276e8fa
[775397 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js run-user-commands --container-session-data-folder /tmp/devcontainers-6c9d5dc7-f99b-4e5c-af65-512698ae1bbc1703108200595 --workspace-folder /workspaces/quetzal-CoaTL --id-label vsch.local.repository=https://github.com/Quetzal-framework/quetzal-CoaTL --id-label vsch.local.repository.volume=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f --id-label vsch.local.repository.folder=quetzal-CoaTL --id-label devcontainer.config_file=/workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --container-id ac57edee18e87d76636134d23787c6affef5cced8f72d855ed1cd5fb45770eea --log-level debug --log-format json --config /workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-8d763103-331b-4e03-81a2-222582139ca4.json --default-user-env-probe loginInteractiveShell --skip-non-blocking-commands true --prebuild false --stop-for-personalization true --remote-env REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-81470aec-dcc1-49d6-b0e1-4ca9e876cbbc.sock --remote-env SSH_AUTH_SOCK=/tmp/vscode-ssh-auth-81470aec-dcc1-49d6-b0e1-4ca9e876cbbc.sock --remote-env DISPLAY=:0 --remote-env REMOTE_CONTAINERS_DISPLAY_SOCK=/tmp/.X11-unix/X0 --remote-env REMOTE_CONTAINERS=true --mount-workspace-git-root --dotfiles-target-path ~/dotfiles
[775397 ms] Exit code 1
[775712 ms] Container server terminated (code: 137, signal: null).

Seems like a a file permission problem.

@Becheler Becheler added the fix fix bug label Dec 21, 2023
@Becheler Becheler changed the title fix: setting remoteUser to root for devcontainers permissions fix: devcontainers permissions on Windows Dec 21, 2023
@Becheler Becheler merged commit 8fe6a74 into master Dec 21, 2023
3 checks passed
@Becheler
Copy link
Collaborator Author

Arthur on Windows 10

[8790 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f,dst=/workspaces --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=\\wsl.localhost\Debian\mnt\wslg\runtime-dir\wayland-0,dst=/tmp/vscode-wayland-4930276d-b9ed-41ae-b7ff-43fae90d98f8.sock -l vsch.local.repository=https://github.com/Quetzal-framework/quetzal-CoaTL -l vsch.local.repository.volume=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f -l vsch.local.repository.folder=quetzal-CoaTL -l devcontainer.config_file=/workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --entrypoint /bin/sh vsc-quetzal-coatl-02809b04e4fcad285e7f171ed27d137810403cb927ece4767844b9e5dc6fdf42 -c echo Container started
docker: Error response from daemon: can't access specified distro mount service: stat /run/guest-services/distro-services/debian.sock: no such file or directory.
See 'docker run --help'.
[8813 ms] Start: Run: docker ps -q -a --filter label=vsch.local.repository=https://github.com/Quetzal-framework/quetzal-CoaTL --filter label=vsch.local.repository.volume=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f --filter label=vsch.local.repository.folder=quetzal-CoaTL --filter label=devcontainer.config_file=/workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json
[8834 ms] Error: Command failed: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=volume,src=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f,dst=/workspaces --mount type=volume,src=vscode,dst=/vscode --mount type=bind,src=\\wsl.localhost\Debian\mnt\wslg\runtime-dir\wayland-0,dst=/tmp/vscode-wayland-4930276d-b9ed-41ae-b7ff-43fae90d98f8.sock -l vsch.local.repository=https://github.com/Quetzal-framework/quetzal-CoaTL -l vsch.local.repository.volume=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f -l vsch.local.repository.folder=quetzal-CoaTL -l devcontainer.config_file=/workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --entrypoint /bin/sh vsc-quetzal-coatl-02809b04e4fcad285e7f171ed27d137810403cb927ece4767844b9e5dc6fdf42 -c echo Container started
[8834 ms] trap "exit 0" 15
[8834 ms] exec "$@"
[8834 ms] while sleep 1 & wait $!; do :; done -
[8834 ms] at J$ (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:462:1253)
[8834 ms] at $J (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:462:997)
[8834 ms] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[8834 ms] at async tAA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:479:3660)
[8834 ms] at async CC (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:479:4775)
[8834 ms] at async NeA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:612:11107)
[8835 ms] at async MeA (/root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js:612:10848)
[8851 ms] Exit code 1
[8852 ms] Start: Run: docker rm -f 806247e22a3aaac72ceb1f03d6ba197bf4484441e49b076ffc82ac15f9a82304
[8854 ms] Command failed: node /root/.vscode-remote-containers/dist/dev-containers-cli-0.327.0/dist/spec-node/devContainersSpecCLI.js up --container-session-data-folder /tmp/devcontainers-c1621933-f7af-4f4b-befc-08cfd85ec89d1703170006449 --workspace-folder /workspaces/quetzal-CoaTL --workspace-mount-consistency cached --id-label vsch.local.repository=https://github.com/Quetzal-framework/quetzal-CoaTL --id-label vsch.local.repository.volume=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f --id-label vsch.local.repository.folder=quetzal-CoaTL --id-label devcontainer.config_file=/workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --log-level debug --log-format json --config /workspaces/quetzal-CoaTL/.devcontainer/devcontainer.json --override-config /tmp/devcontainer-91916c56-d489-4cb7-95e8-9d09240eddee.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=quetzal-CoaTL-6543d175a18dda8f2bcd1eb175a9e982510924f869315542b381993ba2369d0f,target=/workspaces,external=true --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Debian\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-4930276d-b9ed-41ae-b7ff-43fae90d98f8.sock --skip-post-create --update-remote-user-uid-default off --mount-workspace-git-root --terminal-columns 225 --terminal-rows 15
[8854 ms] Exit code 1
[8990 ms] Container server terminated (code: 137, signal: null).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix fix bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant