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

Show error messages from podman/docker in log #5887

Closed
andreasWallner opened this issue Nov 15, 2021 · 0 comments · Fixed by devcontainers/cli#707
Closed

Show error messages from podman/docker in log #5887

andreasWallner opened this issue Nov 15, 2021 · 0 comments · Fixed by devcontainers/cli#707
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers verified Verification succeeded

Comments

@andreasWallner
Copy link

Please consider providing the output from a failed command in the remote container log.
I had a problem with podman (when running podman start ... it would error out with Error: please run 'podman system renumber' to resolve deadlocks). The result is that in VSCode (even on debug level trace) I only get the generic error message "Command failed: podman start ...". After playing around a bit and trying to run the command on the command line I found the problem, but it would have been quite helpful had the log in VSCode contained the error output from podman.

  • VSCode Version: 1.62.0-insider
  • Local OS Version: Windows 10.0.19042 running podman in WSL with Ubuntu 20.04.3 LTS
  • Remote OS Version: Ubuntu 21.04
  • Remote Extension/Connection Type: podman in WSL

Example log from VSCode:

[9052 ms] Start: Starting container
[9053 ms] Start: Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/username/git/myproject' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\username\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.205.1\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe' VSCODE_SSH_ASKPASS_MAIN='c:\Users\username\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.205.1\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\\.\pipe\ssh-askpass-fdd4ef021e446ccf26ade70a7009a6f00281f515-sock' DOCKER_CONTEXT='default' DOCKER_HOST='unix:///var/run/docker.sock' VSCODE_SSH_ASKPASS_COUNTER='5' podman 'start' '7eb4743b6bf7ec884f24f63ad5484808afa62c5bd985be893a7a23aa221dc99e'
[10141 ms] Stop (1088 ms): Run: wsl -d Ubuntu-20.04 -e /bin/sh -c cd '/home/username/git/myproject' && DISPLAY='1' ELECTRON_RUN_AS_NODE='1' SSH_ASKPASS='c:\Users\username\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.205.1\scripts\ssh-askpass.bat' VSCODE_SSH_ASKPASS_NODE='C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe' VSCODE_SSH_ASKPASS_MAIN='c:\Users\username\.vscode-insiders\extensions\ms-vscode-remote.remote-containers-0.205.1\dist\common\sshAskpass.js' VSCODE_SSH_ASKPASS_HANDLE='\\.\pipe\ssh-askpass-fdd4ef021e446ccf26ade70a7009a6f00281f515-sock' DOCKER_CONTEXT='default' DOCKER_HOST='unix:///var/run/docker.sock' VSCODE_SSH_ASKPASS_COUNTER='5' podman 'start' '7eb4743b6bf7ec884f24f63ad5484808afa62c5bd985be893a7a23aa221dc99e'
[10154 ms] Command failed: podman start 7eb4743b6bf7ec884f24f63ad5484808afa62c5bd985be893a7a23aa221dc99e

Command line output I'd think would be nice to get in VSCode:

# podman start 7eb4743b6bf7ec884f24f63ad5484808afa62c5bd985be893a7a23aa221dc99e
Error: please run 'podman system renumber' to resolve deadlocks: container 7eb4743b6bf7ec884f24f63ad5484808afa62c5bd985be893a7a23aa221dc99e and volume vscode share lock ID 1: deadlock due to lock mismatch
@github-actions github-actions bot added the containers Issue in vscode-remote containers label Nov 15, 2021
@chrmarti chrmarti added the bug Issue identified by VS Code Team member as probable bug label Nov 22, 2021
@chrmarti chrmarti self-assigned this Nov 22, 2021
@chrmarti chrmarti added this to the Backlog milestone Nov 22, 2021
@chrmarti chrmarti modified the milestones: Backlog, December / January 2024 Dec 13, 2023
chrmarti added a commit to devcontainers/cli that referenced this issue Dec 13, 2023
chrmarti added a commit to devcontainers/cli that referenced this issue Dec 15, 2023
@connor4312 connor4312 added the verified Verification succeeded label Jan 24, 2024
@microsoft microsoft locked and limited conversation to collaborators Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants