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

missing root cause of error #845

Open
behrica opened this issue May 14, 2024 · 2 comments
Open

missing root cause of error #845

behrica opened this issue May 14, 2024 · 2 comments
Assignees

Comments

@behrica
Copy link

behrica commented May 14, 2024

I have
devcontainer snippet like this:

"postStartCommand":  
  { 
    "poetry setup":  ["/bin/bash", "-i", "-c",  "python3 -m venv $HOME/.local && source $HOME/.local/bin/activate && poetry install"]
  }

and forgot to setup poetry, so it is not available.
But the log does not show this, it does not show the root error message in this situation. (poetry: command not found)
I took me while to figure this out.

2024-05-14T08:35:36.7508615Z Error: Command failed: /bin/bash -i -c mkdir -p /home/vscode/.local && python3 -m venv /home/vscode/.local && source /home/vscode/.local/bin/activate && poetry install
2024-05-14T08:35:36.7511344Z     at N7 (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130)
2024-05-14T08:35:36.7513197Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-05-14T08:35:36.7515326Z     at async Am (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4393)
2024-05-14T08:35:36.7517736Z     at async k7 (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3910)
2024-05-14T08:35:36.7520153Z     at async $w (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3102)
2024-05-14T08:35:36.7522547Z     at async fa (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2386)
2024-05-14T08:35:36.7524984Z     at async DtA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:464:1496)
2024-05-14T08:35:36.7660547Z     at async NH (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:464:964)
2024-05-14T08:35:36.7662569Z     at async KtA (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:3692)
2024-05-14T08:35:36.7664542Z     at async AB (/usr/local/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:4807)
2024-05-14T08:35:36.7665571Z 
2024-05-14T08:35:36.7856893Z ##[error]Dev container up failed: Command failed: /bin/bash -i -c mkdir -p /home/vscode/.local && python3 -m venv /home/vscode/.local && source /home/vscode/.local/bin/activate && poetry install (exit code: undefined)

@samruddhikhandale
Copy link
Member

@gauravsaini04 / @prathameshzarkar9 Can either of you help with investigating this? Thanks!

@samruddhikhandale samruddhikhandale transferred this issue from devcontainers/ci Jun 12, 2024
@prathameshzarkar9 prathameshzarkar9 self-assigned this Jun 17, 2024
@prathameshzarkar9
Copy link
Contributor

Hi @samruddhikhandale ,

PR created for this fix: #852
kindly review and let me know if any changes required.

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