Code Monkey home page Code Monkey logo

Comments (3)

CaffeineDaemon avatar CaffeineDaemon commented on June 8, 2024

Found some errors in the docker daemon logs that occur every time i reproduce the error. Here they are, in case they are related to the issue:

time="2024-02-24T23:23:01.861382783Z" level=error msg="Error running exec 7432af9cdabe44bbdd4d14a69cf633cc03c44cedeea8472bf07bf16bd41627d1 in container: exec attach failed: error attaching stderr stream: write unix /mnt/wsl/rancher-desktop/run/docker.sock->@: write: broken pipe"
time="2024-02-24T23:23:01.883534487Z" level=error msg="Error running exec 6770688cbf5aaf3955681041d8f817f0b8c0f01f91197bd030be634485552c8a in container: exec attach failed: error attaching stderr stream: write unix /mnt/wsl/rancher-desktop/run/docker.sock->@: write: broken pipe"
time="2024-02-24T23:23:01.889523931Z" level=error msg="Error running exec 931462cdd60577806980da8382ccfeb9695a62e9a3d146d41e4ebf451c4d4eef in container: exec attach failed: error attaching stderr stream: write unix /mnt/wsl/rancher-desktop/run/docker.sock->@: write: broken pipe"

from skaffold.

CaffeineDaemon avatar CaffeineDaemon commented on June 8, 2024

Could narrow it down further, the issue only occurs when the environment variable REMOTE_CONTAINERS_IPC is set. If i unset it, it works.

Maybe templating has to do something with it? This log entry contains the environment variable:

time="2024-02-23T20:27:34Z" level=debug msg="Executing template &{envTemplate 0xc0006c4120 0xc0006c62d0  } with environment map[Bwith environment map[BROWSER:/vscode/vscode-server/bin/linux-ROWSER:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/bin/helpers/browser.sh COLORTERM:truecolor DISPLAY::0 GIT_ASKPASS:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/extensions/git/dist/askpass.sh GIT_EDITOR:code --wait HISTFILE:/dc/shellhistory/.bash_history HISTFILE_OLD:/home/vscode/.bash_history HOME:/home/vscode HOSTNAME:10e43e76c93c KREW_ROOT:/var/opt/krew KUBECONFIG:/home/vscode/.kube/config:/home/vscode/.kube/config-stp:/home/vscode/.kube/config-dev KUBECONFIGDIR:${containerEnv:HOME:/home/vscode}/.kube LANG:en_US.UTF-8 LESSCLOSE:/usr/bin/lesspipe %s %s LESSOPEN:| /usr/bin/lesspipe %s LS_COLORS:rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: PATH:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/opt/krew/bin:/workspaces/stp/scripts:/home/vscode/.local/bin PROMPT_COMMAND:__vsc_prompt_cmd_original PROMPT_DIRTRIM:4 PWD:/workspaces/stp REMOTE_CONTAINERS:true REMOTE_CONTAINERS_DISPLAY_SOCK:/tmp/.X11-unix/X0 REMOTE_CONTAINERS_IPC:/tmp/vscode-remote-containers-ipc-0f0cb20b-1a4d-473f-a895-58a17895ef01.sock REMOTE_CONTAINERS_SOCKETS:[\"/tmp/vscode-ssh-auth-0f0cb20b-1a4d-473f-a895-58a17895ef01.sock\",\"/tmp/.X11-unix/X0\",\"/home/vscode/.gnupg/S.gpg-agent\"] SHELL:/bin/bash SHLVL:2 SSH_AUTH_SOCK:/tmp/vscode-ssh-auth-0f0cb20b-1a4d-473f-a895-58a17895ef01.sock TERM:xterm-256color TERM_PROGRAM:vscode TERM_PROGRAM_VERSION:1.86.2 USER:vscode VSCODE_GIT_ASKPASS_EXTRA_ARGS: VSCODE_GIT_ASKPASS_MAIN:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE:/vscode/vscode-server/bin/linux-x64/903b1e9d8990623e3d7da1df3d33db3e42d80eda/node VSCODE_GIT_IPC_HANDLE:/tmp/user/1000/vscode-git-9a5ad21b79.sock VSCODE_IPC_HOOK_CLI:/tmp/vscode-ipc-f6aac10c-bfa7-460f-9d3e-e25ceb198211.sock WAYLAND_DISPLAY:vscode-wayland-e03be4bb-4fd5-4355-b443-d2e73088518a.sock XDG_RUNTIME_DIR:/tmp/user/1000 _:/usr/local/bin/skaffold]" subtask=-1 task=DevLoop

from skaffold.

CaffeineDaemon avatar CaffeineDaemon commented on June 8, 2024

Found the source of the problem, and skaffold is not at fault. Skaffold at some point causes the docker credential store to list all stored credentials. VSCode places a proxy credential store inside the devcontainer that should forward any calls to the host system. This works for get or store subcommands, but list crashes the VSCode extension host running inside the container.

Can be reproduced by

  1. cat ~/.docker/config.json to get the name of credsStore executable, which changes when connecting to the container
  2. running /usr/local/bin/docker-credential-dev-containers-02e71925-c4e9-4c83-8388-d458a2253f71 list (but with the id from config.json)

I could confirm that the credential store on the host gets called correctly and return the correct json data, so the must be some bug in the VSCode devcontainer extension, so i will close this issue and open one in the VSCode repo.

For anyone finding this, you can disable forwarding the credential store to the container until this is fixed with the following setting:
microsoft/vscode-remote-release#8201 (comment)

from skaffold.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.