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

OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/workspaces/eShopLite-SemanticSearch") #1

Open
vikramhn opened this issue Feb 5, 2025 · 0 comments

Comments

@vikramhn
Copy link

vikramhn commented Feb 5, 2025

Below is some of the messages I see when i am opening in codespaces.
exit code 0
Running blocking commands...
$ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/eShopLite-RealtimeAudio --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --expect-existing-container --config "/var/lib/docker/codespacemount/workspace/eShopLite-RealtimeAudio/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
[590 ms] @devcontainers/cli 0.68.0. Node.js v18.20.6. linux 6.5.0-1025-azure x64.
Running the onCreateCommand from devcontainer.json...

sudo chown -R vscode:vscode /workspaces/eShopLite-SemanticSearch && dotnet new install Aspire.ProjectTemplates::-
OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/workspaces/eShopLite-SemanticSearch") set in config.json failed: no such file or directory: unknown
[1197 ms] onCreateCommand failed with exit code 126. Skipping any further user-provided commands.

Error: Command failed: /bin/sh -c sudo chown -R vscode:vscode /workspaces/eShopLite-SemanticSearch && dotnet new install Aspire.ProjectTemplates::-
at b7 (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130)
{"outcome":"error","message":"Command failed: /bin/sh -c sudo chown -R vscode:vscode /workspaces/eShopLite-SemanticSearch && dotnet new install Aspire.ProjectTemplates::-","description":"The onCreateCommand in the devcontainer.json failed.","containerId":"ad748ab307cc1f25f3bbe18948ffbc0dfa39529572cd31b3c56caae88f260566"}
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Am (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4483)
at async Xw (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3828)
at async $w (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2835)
at async fa (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2438)
at async mtA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:1534)
at async NH (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:465:964)
at async YtA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:3771)
at async eB (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:482:4886)
devcontainer process exited with exit code 1
Failed to create container.
Error: Command failed: /bin/sh -c sudo chown -R vscode:vscode /workspaces/eShopLite-SemanticSearch && dotnet new install Aspire.ProjectTemplates::-
Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
Container creation failed.

Creating recovery container.
Creating container...
$ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/eShopLite-RealtimeAudio --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --skip-post-create --config "/var/lib/docker/codespacemount/workspace/eShopLite-RealtimeAudio/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
[200 ms] @devcontainers/cli 0.68.0. Node.js v18.20.6. linux 6.5.0-1025-azure x64.
[946 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,src=/var/lib/docker/codespacemount/workspace,dst=/workspaces --mount source=/root/.codespaces/shared,target=/workspaces/.codespaces/shared,type=bind --mount source=/var/lib/docker/codespacemount/.persistedshare,target=/workspaces/.codespaces/.persistedshare,type=bind --mount source=/.codespaces/agent/mount,target=/.codespaces/bin,type=bind --mount source=/mnt/containerTmp,target=/tmp,type=bind --mount type=bind,src=/.codespaces/agent/mount/cache,dst=/vscode -l Type=codespaces -e CODESPACES_RECOVERY_CONTAINER=******** -e CODESPACES=******** -e ContainerVersion=13 -e RepositoryName=eShopLite-RealtimeAudio --label ContainerVersion=13 --hostname codespaces-7482a5 --add-host codespaces-7482a5:127.0.0.1 --cap-add sys_nice --network host --entrypoint /bin/sh -l devcontainer.metadata=[{"id":"./local-features/git"},{"id":"ghcr.io/devcontainers/features/common-utils:2"},{"remoteUser":"vscode"},{"mounts":["source=/root/.codespaces/shared,target=/workspaces/.codespaces/shared,type=bind","source=/var/lib/docker/codespacemount/.persistedshare,target=/workspaces/.codespaces/.persistedshare,type=bind","source=/.codespaces/agent/mount,target=/.codespaces/bin,type=bind","source=/mnt/containerTmp,target=/tmp,type=bind"],"containerEnv":{"CODESPACES_RECOVERY_CONTAINER":"","CODESPACES":"","ContainerVersion":"13","RepositoryName":"eShopLite-RealtimeAudio"},"remoteUser":"vscode"}] mcr.microsoft.com/devcontainers/base:alpine -c echo Container started
Unable to find image 'mcr.microsoft.com/devcontainers/base:alpine' locally
alpine: Pulling from devcontainers/base
da9db072f522: Pull complete
3cdff9e33f37: Pull complete
87dffdaee0b6: Pull complete
3f72e2f1b3f3: Pull complete
1ac829ce5af3: Pull complete
2a15ab263bdf: Extracting 230.6MB/230.6MB
a9bdcaa5c876: Download complete

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

1 participant