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

dev container creation error: Syntax error: "&&" unexpected #1295

Closed
imWildCat opened this issue Feb 7, 2023 · 2 comments · Fixed by #1298
Closed

dev container creation error: Syntax error: "&&" unexpected #1295

imWildCat opened this issue Feb 7, 2023 · 2 comments · Fixed by #1298

Comments

@imWildCat
Copy link
Contributor

I was trying to start development using Codespaces.

But saw this error:

 > [dev_container_auto_added_stage_label  3/10] RUN groupdel dialout && groupdel staff &&     groupadd -g 20 staff && groupadd -g 121 docker &&     useradd -u 1000 -g 100 builder &&     printf "builder ALL=(ALL:ALL) NOPASSWD:ALL\n" > /etc/sudoers.d/opendal &&     && chmod 0440 /etc/sudoers.d/builder:
#7 0.516 /bin/sh: 1: Syntax error: "&&" unexpected
------
2023-02-07 06:14:45.476Z: ERROR: failed to solve: executor failed running [/bin/sh -c groupdel dialout && groupdel staff &&     groupadd -g 20 staff && groupadd -g 121 docker &&     useradd -u 1000 -g 100 builder &&     printf "builder ALL=(ALL:ALL) NOPASSWD:ALL\n" > /etc/sudoers.d/opendal &&     && chmod 0440 /etc/sudoers.d/builder]: exit code: 2
2023-02-07 06:14:45.479Z: Stop: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.28.0-1675750372026/Dockerfile-with-features -t vsc-opendal-52e06107a9c94826ad8b4c3f114cb7da --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/opendal/.devcontainer
2023-02-07 06:14:45.480Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.28.0-1675750372026/Dockerfile-with-features -t vsc-opendal-52e06107a9c94826ad8b4c3f114cb7da --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/opendal/.devcontainer
2023-02-07 06:14:45.480Z: {"outcome":"error","message":"Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.28.0-1675750372026/Dockerfile-with-features -t vsc-opendal-52e06107a9c94826ad8b4c3f114cb7da --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/opendal/.devcontainer","description":"An error occurred building the image."}
2023-02-07 06:14:45.480Z:     at pie (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1916:1698)
2023-02-07 06:14:45.480Z:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2023-02-07 06:14:45.480Z:     at async AF (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1915:1963)
2023-02-07 06:14:45.480Z:     at async P7 (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1915:901)
2023-02-07 06:14:45.480Z:     at async Fie (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1921:2093)
2023-02-07 06:14:45.480Z:     at async $f (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1921:3239)
2023-02-07 06:14:45.481Z:     at async eoe (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2045:17247)
2023-02-07 06:14:45.481Z:     at async Qse (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2045:16993)
2023-02-07 06:14:45.483Z: devcontainer process exited with exit code 1

Fully version:

Expand full logs

full_logs.log

@Xuanwo
Copy link
Member

Xuanwo commented Feb 7, 2023

cc @PsiACE, can you help take a look?

@Xuanwo
Copy link
Member

Xuanwo commented Feb 7, 2023

I was trying to start development using Codespaces.

But saw this error:

Sorry for the inconvenient.

Thanks to @PsiACE's #1298 merged, I confirmed that this issue has been fixed.

PTAL again~

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

Successfully merging a pull request may close this issue.

2 participants