Command 'Dev Containers: Rebuild Container' intermittently fails #154
Replies: 4 comments 6 replies
-
Thanks for opening. Looping in @chrmarti as it seems this is Dev Containers extension related. |
Beta Was this translation helpful? Give feedback.
-
Got reproduce again:
Dev Containers Log
[54 ms] Dev Containers 0.388.0 in VS Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427). [53 ms] Start: Resolving Remote [107 ms] Setting up container for folder or workspace: c:\Users\alexa\OneDrive\Documents\GitHub\deep-space-cartel\amp [107 ms] Context: desktop-linux [109 ms] Start: Run: wsl -l -v [281 ms] Start: Run: wsl -d docker-desktop-data -e /bin/sh -c echo ~ [2891 ms] Could not connect to WSL. [2891 ms] Command failed: wsl -d docker-desktop-data -e /bin/sh -c echo ~ [2891 ms] [2891 ms] <3>WSL (52) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\alexa\AppData\Local\Programs\Microsoft VS Code <3>WSL (52) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2 <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\system32 <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\Wbem <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0\ <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\OpenSSH\ <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32 <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0\ <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH\ <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Git\cmd <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\HashiCorp\Vagrant\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\GnuPG\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\alexa\AppData\Local\Programs\Microsoft VS Code\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\GitHub CLI\ <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\alexa\AppData\Local\GitHubDesktop\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\alexa\AppData\Local\Programs\Lens\resources\cli\bin <3>WSL (52) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\alexa\AppData\Local\Microsoft\WinGet\Links <3>WSL (52) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2 <3>WSL (52) ERROR: CreateProcessEntryCommon:505: execvpe /bin/sh failed 2 <3>WSL (52) ERROR: CreateProcessEntryCommon:508: Create process not expected to return [2899 ms] Start: Check Docker is running [2899 ms] Start: Run: docker version [3058 ms] Client: [3058 ms] Version: 27.2.0 API version: 1.47 Go version: go1.21.13 Git commit: 3ab4256 Built: Tue Aug 27 14:17:17 2024 OS/Arch: windows/amd64 Context: desktop-linux |
Beta Was this translation helpful? Give feedback.
-
@bamurtaugh here is devcontainer.json as well: {
// "image": "mcr.microsoft.com/devcontainers/go:1.2.0-1.23-bookworm",
// "dock"
"dockerComposeFile": "docker-compose.yml",
"service": "amp",
"runServices": [
"mongodb",
"swagger-ui"
],
"workspaceFolder": "/workspace/amp",
"features": {
"ghcr.io/deep-space-cartel/devcontainers-features/starship:1": {},
"ghcr.io/deep-space-cartel/devcontainers-features/apt:1": {
"packages": "shellcheck npm"
},
"ghcr.io/deep-space-cartel/devcontainers-features/pip:1": {
"location": "/opt/pip",
"packages": "pre-commit"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
}
},
// "appPort": [
// 8080
// ],
// "runArgs": [
// "--cap-add=SYS_ADMIN",
// "--cap-add=SYS_PTRACE",
// "--security-opt=seccomp=unconfined",
// "--privileged"
// ],
"customizations": {
"vscode": {
"settings": {
"makefile.configureOnOpen": false,
"editor.fontFamily": "'Hack Nerd Font Mono'",
"terminal.integrated.fontFamily": "'Hack Nerd Font Mono'",
"files.insertFinalNewline": true,
"dotfiles.repository": "deep-space-cartel/dotfiles",
"cSpell.enableFiletypes": [
"*"
],
"remote.extensionKind": {
"ms-vscode.PowerShell": [
"ui"
],
"1Password.op-vscode": [
"ui"
]
}
},
"extensions": [
"golang.go",
"Codeium.codeium",
"yzhang.markdown-all-in-one",
"mongodb.mongodb-vscode",
"42Crunch.vscode-openapi",
"a-h.templ",
"Postman.postman-for-vscode",
"ryanluker.vscode-coverage-gutters",
"DavidAnson.vscode-markdownlint",
"ms-vscode.makefile-tools",
// "alexkrechik.cucumberautocomplete",
// "GitHub.vscode-pull-request-github",
// "eamodio.gitlens",
// "GitHub.github-vscode-theme",
// "GitHub.remotehub",
// "GitHub.vscode-github-actions",
"streetsidesoftware.code-spell-checker"
]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
This would be very specialized setting, I'd prefer to increase the timeout some more before considering adding a setting. The 6 seconds timeout is part of Dev Containers 0.390.0-pre-release if you want to give that try. |
Beta Was this translation helpful? Give feedback.
-
I can't find a repo with related sources to put a PR, could someone please point me?
Beta Was this translation helpful? Give feedback.
All reactions