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

Remote Container: connection drops when attaching and opening a directory #6685

Closed
RaananHadar opened this issue May 4, 2022 · 37 comments
Closed
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@RaananHadar
Copy link

  • VSCode Version:
    Version: 1.66.2 (Universal)
    Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
    Date: 2022-04-11T07:49:20.994Z
    Electron: 17.2.0
    Chromium: 98.0.4758.109
    Node.js: 16.13.0
    V8: 9.8.177.11-electron.0

  • Local OS Version:
    OS: Darwin x64 21.4.0

  • Remote OS Version:
    ubuntu:focal official image (this happens with other versions as well).

  • Remote Extension/Connection Type: SSH/Docker/WSL
    Docker

  • Logs:
    The logs are repeating with retries. A trace appears once and seems to be the most informative:

[27196 ms] Port forwarding 53155 > 39423 > 39423 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[37000 ms] Port forwarding 53124 > 39423 > 39423 stderr: Error: write ECONNRESET
    at afterWriteDispatched (node:internal/stream_base_commons:164:15)
    at writeGeneric (node:internal/stream_base_commons:155:3)
    at Socket._writeGeneric (node:net:795:11)
    at Socket._write (node:net:807:8)
    at writeOrBuffer (node:internal/streams/writable:389:12)
    at _write (node:internal/streams/writable:330:10)
    at Socket.Writable.write (node:internal/streams/writable:334:10)
    at Socket.ondata (node:internal/streams/readable:754:22)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)Remote close with error
[37001 ms] Port forwarding 53124 > 39423 > 39423 stderr: command terminated with exit code 1
[37006 ms] Port forwarding 53124 > 39423 > 39423 terminated with code 1 and signal null.
[37007 ms] Port forwarding 53124 > 39423 > 39423: Local close

Then the reconnection logs appear as following:

[9074 ms] Start: Reconnection attempt 1
[9340 ms] Port forwarding 55032 > 45569 > 45569 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[10670 ms] Port forwarding 55032 > 45569 > 45569 stderr: Error: connect ECONNREFUSED 127.0.0.1:45569
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[10670 ms] Port forwarding 55032 > 45569 > 45569 stderr: Remote close with error
[10763 ms] Port forwarding 55032 > 45569 > 45569 stderr: command terminated with exit code 1
[10766 ms] Port forwarding 55032 > 45569 > 45569 terminated with code 1 and signal null.
[10766 ms] Port forwarding 55032 > 45569 > 45569: Local close
[10778 ms] Port forwarding connection from 55038 > 45569 > 45569 in the container.
[10778 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='621dab52-d3af-450f-8e75-9230c93f0b511651706503996' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[11066 ms] Port forwarding 55038 > 45569 > 45569 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[11890 ms] Port forwarding 55038 > 45569 > 45569 stderr: Error: connect ECONNREFUSED 127.0.0.1:45569
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[11890 ms] Port forwarding 55038 > 45569 > 45569 stderr: Remote close with error
[11945 ms] Port forwarding 55038 > 45569 > 45569 stderr: command terminated with exit code 1
[11948 ms] Port forwarding 55038 > 45569 > 45569 terminated with code 1 and signal null.
[11948 ms] Port forwarding 55038 > 45569 > 45569: Local close
[15772 ms] Port forwarding connection from 55045 > 45569 > 45569 in the container.
[15773 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='621dab52-d3af-450f-8e75-9230c93f0b511651706503996' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[16060 ms] Port forwarding 55045 > 45569 > 45569 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[16800 ms] Port forwarding 55045 > 45569 > 45569 stderr: Error: connect ECONNREFUSED 127.0.0.1:45569
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[16800 ms] Port forwarding 55045 > 45569 > 45569 stderr: Remote close with error
[16862 ms] Port forwarding 55045 > 45569 > 45569 stderr: command terminated with exit code 1
[16866 ms] Port forwarding 55045 > 45569 > 45569 terminated with code 1 and signal null.
[16866 ms] Port forwarding 55045 > 45569 > 45569: Local close

Steps to Reproduce:

  1. I ran a simple deployment to k8s.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: foo
spec:
  selector:
    matchLabels:
      app: foo
  template:
    metadata:
      labels:
        app: foo
    spec:
      containers:
      - name: main
        image: ubuntu:focal
        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"
        command: ["/bin/sh", "-ec", "sleep infinity"]
  1. attached vscode to the container
  2. tried opening a directory caused the connection to drop

Does this issue occur when you try this locally?: No

@RaananHadar RaananHadar changed the title Remote Container: Remote Container: connection drops when attaching and opening a directory May 4, 2022
@github-actions github-actions bot added the containers Issue in vscode-remote containers label May 5, 2022
@chrmarti
Copy link
Contributor

chrmarti commented May 5, 2022

Which version of Remote-Containers are you using? Could you append the full log?

@chrmarti chrmarti self-assigned this May 5, 2022
@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 5, 2022
@RaananHadar
Copy link
Author

I am using version v0.231.6 of remote containers.

Re-running this produces the following log:

[30 ms] Remote-Containers 0.231.6 in VS Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977).
[30 ms] Start: Resolving Remote
[36 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /bin/sh
[38 ms] Start: Run in container: echo $PATH
[1565 ms] /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[1565 ms] Unable to use a TTY - input is not a terminal or the right kind of file
[1566 ms] Start: Run in container: id -un
[1663 ms] root
[1663 ms] 
[1664 ms] Start: Run in container: uname -m
[1790 ms] x86_64
[1790 ms] 
[1791 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1883 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[1884 ms] 
[1884 ms] Start: Run in container: cat /etc/passwd
[1973 ms] Start: Run in container: test -d /root/.vscode-server
[2098 ms] 
[2098 ms] 
[2099 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2179 ms] 
[2180 ms] 
[2180 ms] Exit code 1
[2181 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[2266 ms] 
[2266 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[2266 ms] Exit code 1
[2267 ms] Start: Run in container: test -d /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977
[2357 ms] 
[2357 ms] 
[2358 ms] Start: Launching Remote-Containers helper.
[2359 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-19a7c9e1e853339b6a9843f4cfd6334603d4207c.sock) forwarded to local host (/private/tmp/com.apple.launchd.896yzhJO1O/Listeners).
[2359 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[2362 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh
[2363 ms] userEnvProbe: loginInteractiveShell (default)
[2364 ms] userEnvProbe shell: /bin/bash
[2365 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js' >/tmp/vscode-remote-containers-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js
[2365 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[2455 ms] ssh not found
[2456 ms] 
[2456 ms] Exit code 1
[2456 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node /tmp/vscode-remote-containers-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js $*; }; f' || true
[2652 ms] 
[2652 ms] 
[2653 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2962 ms] Extension host agent is already running.
[2962 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.devport-dfd34e8260c270da74b5c2d86d61aee4b6d56977' 2>/dev/null
[3050 ms] 36263
[3050 ms] 
[3051 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-dfd34e8260c270da74b5c2d86d61aee4b6d56977'
[3179 ms] 6178b134-8365-44b2-9a28-bef8e90cacdb
[3180 ms] 
[3180 ms] Port forwarding for container port 36263 starts listening on local port.
[3183 ms] Port forwarding local port 36263 to container port 36263
[3184 ms] Start: Run in container: # Test for /root/.gitconfig and git
[3294 ms] git not found
[3295 ms] 
[3295 ms] Exit code 1
[3296 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node /tmp/vscode-remote-containers-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js $*; }; f' || true
[3398 ms] 
[3398 ms] 
[3829 ms] 
[3829 ms] Unable to use a TTY - input is not a terminal or the right kind of file
[3829 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js' >/tmp/vscode-remote-containers-server-19a7c9e1e853339b6a9843f4cfd6334603d4207c.js_1651758031937
[4024 ms] 
[4024 ms] 
[4426 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Merged:    '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[4436 ms] Port forwarding connection from 52200 > 36263 > 36263 in the container.
[4436 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[4851 ms] Port forwarding 52200 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[5830 ms] Port forwarding 52200 > 36263 > 36263 stderr: Connection established
[5845 ms] Port forwarding connection from 52209 > 36263 > 36263 in the container.
[5845 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[6236 ms] Port forwarding 52209 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[8236 ms] Port forwarding 52209 > 36263 > 36263 stderr: Connection established
[13236 ms] Port forwarding 52209 > 36263 > 36263 stderr: Remote close
[13248 ms] Port forwarding 52209 > 36263 > 36263 terminated with code 0 and signal null.
[13249 ms] Port forwarding 52209 > 36263 > 36263: Local close
[13251 ms] Port forwarding connection from 52215 > 36263 > 36263 in the container.
[13251 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[13666 ms] Port forwarding 52215 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[14638 ms] Port forwarding 52215 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[14644 ms] Port forwarding 52215 > 36263 > 36263 stderr: command terminated with exit code 1
[14647 ms] Port forwarding 52215 > 36263 > 36263 terminated with code 1 and signal null.
[14647 ms] Port forwarding 52215 > 36263 > 36263: Local close
[19654 ms] Port forwarding connection from 52222 > 36263 > 36263 in the container.
[19654 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[20042 ms] Port forwarding 52222 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[20877 ms] Port forwarding 52222 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[20884 ms] Port forwarding 52222 > 36263 > 36263 stderr: command terminated with exit code 1
[20887 ms] Port forwarding 52222 > 36263 > 36263 terminated with code 1 and signal null.
[20887 ms] Port forwarding 52222 > 36263 > 36263: Local close
[22652 ms] Port forwarding 52200 > 36263 > 36263 stderr: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:220:20)Remote close with error
[22654 ms] Port forwarding 52200 > 36263 > 36263 stderr: command terminated with exit code 1
[22657 ms] Port forwarding 52200 > 36263 > 36263 terminated with code 1 and signal null.
[22657 ms] Port forwarding 52200 > 36263 > 36263: Local close
[22679 ms] Start: Reconnection attempt 1
[22684 ms] Port forwarding connection from 52227 > 36263 > 36263 in the container.
[22684 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[23084 ms] Port forwarding 52227 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[23974 ms] Port forwarding 52227 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[23975 ms] Port forwarding 52227 > 36263 > 36263 stderr: Remote close with error
[24059 ms] Port forwarding 52227 > 36263 > 36263 stderr: command terminated with exit code 1
[24062 ms] Port forwarding 52227 > 36263 > 36263 terminated with code 1 and signal null.
[24062 ms] Port forwarding 52227 > 36263 > 36263: Local close
[25894 ms] Port forwarding connection from 52232 > 36263 > 36263 in the container.
[25894 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[26311 ms] Port forwarding 52232 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[27848 ms] Port forwarding 52232 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[27849 ms] Port forwarding 52232 > 36263 > 36263 stderr: Remote close with error
[27857 ms] Port forwarding 52232 > 36263 > 36263 stderr: command terminated with exit code 1
[27859 ms] Port forwarding 52232 > 36263 > 36263 terminated with code 1 and signal null.
[27859 ms] Port forwarding 52232 > 36263 > 36263: Local close
[29103 ms] Start: Reconnection attempt 2
[29106 ms] Port forwarding connection from 52237 > 36263 > 36263 in the container.
[29106 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[29540 ms] Port forwarding 52237 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[30484 ms] Port forwarding 52237 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[30485 ms] Port forwarding 52237 > 36263 > 36263 stderr: Remote close with error
[30493 ms] Port forwarding 52237 > 36263 > 36263 stderr: command terminated with exit code 1
[30496 ms] Port forwarding 52237 > 36263 > 36263 terminated with code 1 and signal null.
[30496 ms] Port forwarding 52237 > 36263 > 36263: Local close
[35500 ms] Start: Reconnection attempt 3
[35503 ms] Port forwarding connection from 52242 > 36263 > 36263 in the container.
[35504 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[35949 ms] Port forwarding 52242 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[36847 ms] Port forwarding 52242 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[36853 ms] Port forwarding 52242 > 36263 > 36263 stderr: command terminated with exit code 1
[36856 ms] Port forwarding 52242 > 36263 > 36263 terminated with code 1 and signal null.
[36857 ms] Port forwarding 52242 > 36263 > 36263: Local close
[37863 ms] Port forwarding connection from 52248 > 36263 > 36263 in the container.
[37863 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[38269 ms] Port forwarding 52248 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[39136 ms] Port forwarding 52248 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[39137 ms] Port forwarding 52248 > 36263 > 36263 stderr: Remote close with error
[39148 ms] Port forwarding 52248 > 36263 > 36263 stderr: command terminated with exit code 1
[39151 ms] Port forwarding 52248 > 36263 > 36263 terminated with code 1 and signal null.
[39152 ms] Port forwarding 52248 > 36263 > 36263: Local close
[46888 ms] Start: Reconnection attempt 4
[46890 ms] Port forwarding connection from 52259 > 36263 > 36263 in the container.
[46890 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[47318 ms] Port forwarding 52259 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[48533 ms] Port forwarding 52259 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[48533 ms] Port forwarding 52259 > 36263 > 36263 stderr: Remote close with error
[48541 ms] Port forwarding 52259 > 36263 > 36263 stderr: command terminated with exit code 1
[48545 ms] Port forwarding 52259 > 36263 > 36263 terminated with code 1 and signal null.
[48545 ms] Port forwarding 52259 > 36263 > 36263: Local close
[49155 ms] Port forwarding connection from 52268 > 36263 > 36263 in the container.
[49156 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[49673 ms] Port forwarding 52268 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[50725 ms] Port forwarding 52268 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[50725 ms] Port forwarding 52268 > 36263 > 36263 stderr: Remote close with error
[50737 ms] Port forwarding 52268 > 36263 > 36263 stderr: command terminated with exit code 1
[50740 ms] Port forwarding 52268 > 36263 > 36263 terminated with code 1 and signal null.
[50741 ms] Port forwarding 52268 > 36263 > 36263: Local close
[58549 ms] Start: Reconnection attempt 5
[58552 ms] Port forwarding connection from 52274 > 36263 > 36263 in the container.
[58553 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[58989 ms] Port forwarding 52274 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[59854 ms] Port forwarding 52274 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[59903 ms] Port forwarding 52274 > 36263 > 36263 stderr: command terminated with exit code 1
[59906 ms] Port forwarding 52274 > 36263 > 36263 terminated with code 1 and signal null.
[59906 ms] Port forwarding 52274 > 36263 > 36263: Local close
[60744 ms] Port forwarding connection from 52279 > 36263 > 36263 in the container.
[60744 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[61151 ms] Port forwarding 52279 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[62058 ms] Port forwarding 52279 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[62060 ms] Port forwarding 52279 > 36263 > 36263 stderr: Remote close with error
[62069 ms] Port forwarding 52279 > 36263 > 36263 stderr: command terminated with exit code 1
[62072 ms] Port forwarding 52279 > 36263 > 36263 terminated with code 1 and signal null.
[62072 ms] Port forwarding 52279 > 36263 > 36263: Local close
[69915 ms] Start: Reconnection attempt 6
[69918 ms] Port forwarding connection from 52288 > 36263 > 36263 in the container.
[69918 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[70337 ms] Port forwarding 52288 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[71205 ms] Port forwarding 52288 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[71222 ms] Port forwarding 52288 > 36263 > 36263 stderr: Remote close with error
[71237 ms] Port forwarding 52288 > 36263 > 36263 stderr: command terminated with exit code 1
[71240 ms] Port forwarding 52288 > 36263 > 36263 terminated with code 1 and signal null.
[71240 ms] Port forwarding 52288 > 36263 > 36263: Local close
[72077 ms] Port forwarding connection from 52295 > 36263 > 36263 in the container.
[72077 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[73521 ms] Port forwarding 52295 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[74547 ms] Port forwarding 52295 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[74555 ms] Port forwarding 52295 > 36263 > 36263 stderr: command terminated with exit code 1
[74558 ms] Port forwarding 52295 > 36263 > 36263 terminated with code 1 and signal null.
[74558 ms] Port forwarding 52295 > 36263 > 36263: Local close
[81259 ms] Start: Reconnection attempt 7
[81262 ms] Port forwarding connection from 52300 > 36263 > 36263 in the container.
[81262 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[81696 ms] Port forwarding 52300 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[83656 ms] Port forwarding 52300 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[83657 ms] Port forwarding 52300 > 36263 > 36263 stderr: Remote close with error
[83705 ms] Port forwarding 52300 > 36263 > 36263 stderr: command terminated with exit code 1
[83708 ms] Port forwarding 52300 > 36263 > 36263 terminated with code 1 and signal null.
[83708 ms] Port forwarding 52300 > 36263 > 36263: Local close
[84562 ms] Port forwarding connection from 52307 > 36263 > 36263 in the container.
[84562 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[84990 ms] Port forwarding 52307 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[86864 ms] Port forwarding 52307 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)Remote close with error
[86921 ms] Port forwarding 52307 > 36263 > 36263 stderr: command terminated with exit code 1
[86924 ms] Port forwarding 52307 > 36263 > 36263 terminated with code 1 and signal null.
[86925 ms] Port forwarding 52307 > 36263 > 36263: Local close
[93746 ms] Start: Reconnection attempt 8
[93748 ms] Port forwarding connection from 52316 > 36263 > 36263 in the container.
[93749 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '
[95164 ms] Port forwarding 52316 > 36263 > 36263 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[96123 ms] Port forwarding 52316 > 36263 > 36263 stderr: Error: connect ECONNREFUSED 127.0.0.1:36263
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[96125 ms] Port forwarding 52316 > 36263 > 36263 stderr: Remote close with error
[96136 ms] Port forwarding 52316 > 36263 > 36263 stderr: command terminated with exit code 1
[96139 ms] Port forwarding 52316 > 36263 > 36263 terminated with code 1 and signal null.
[96139 ms] Port forwarding 52316 > 36263 > 36263: Local close
[116929 ms] Port forwarding connection from 52326 > 36263 > 36263 in the container.
[116929 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='35339218-8b68-44b1-9a08-728f2ebf67d31651758027299' /root/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/node '-e' '

@chrmarti
Copy link
Contributor

chrmarti commented May 7, 2022

Could you retry with VS Code 1.67? That comes with a fix in the reconnection code.

@RaananHadar
Copy link
Author

Unfortunately I am getting the very same error with 1.67. The logs seem to indicate the same issue:

[25 ms] Remote-Containers 0.234.0 in VS Code 1.67.0 (57fd6d0195bb9b9d1b49f6da5db789060795de47).
[24 ms] Start: Resolving Remote
[30 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='f1c240d4-827c-4a4a-b65f-06d66692b4731651939230412' /bin/sh
[32 ms] Start: Run in container: echo $PATH
[1013 ms] /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[1014 ms] Unable to use a TTY - input is not a terminal or the right kind of file
[1014 ms] Start: Run in container: id -un
[1085 ms] root
[1085 ms] 
[1085 ms] Start: Run in container: uname -m
[1156 ms] x86_64
[1156 ms] 
[1157 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1267 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[1268 ms] 
[1269 ms] Start: Run in container: cat /etc/passwd
[1339 ms] Start: Run in container: test -d /root/.vscode-server
[1407 ms] 
[1408 ms] 
[1409 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[1476 ms] 
[1477 ms] 
[1477 ms] Exit code 1
[1477 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[1548 ms] 
[1548 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[1548 ms] Exit code 1
[1549 ms] Start: Run in container: test -d /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47
[1658 ms] 
[1659 ms] 
[1659 ms] Start: Launching Remote-Containers helper.
[1660 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-d9ff427267a8f1d63f73f736f1e421007442a940.sock) forwarded to local host (/private/tmp/com.apple.launchd.IoLyt9YOz3/Listeners).
[1661 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[1663 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh
[1664 ms] userEnvProbe: loginInteractiveShell (default)
[1664 ms] Start: Run in container: echo ~
[1665 ms] userEnvProbe shell: /bin/bash
[1666 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[1733 ms] ssh not found
[1734 ms] 
[1734 ms] Exit code 1
[1734 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node /tmp/vscode-remote-containers-d9ff427267a8f1d63f73f736f1e421007442a940.js $*; }; f' || true
[1803 ms] 
[1803 ms] 
[1804 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2060 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47' 2>/dev/null || (umask 377 && echo 'b83ccc43-4852-4130-a8fb-2d49b7318ba8' >'/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47-341f4584-10e5-4445-bcfd-b2b946ca0dce' && mv -n '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47-341f4584-10e5-4445-bcfd-b2b946ca0dce' '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47' && rm -f '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47-341f4584-10e5-4445-bcfd-b2b946ca0dce' && cat '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47')
[2129 ms] 0fdf887f-0315-4182-8e19-fc6e9b111006
[2129 ms] 
[2130 ms] Start: Starting VS Code Server
[2130 ms] Start: Preparing Extensions
[2131 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2269 ms] 
[2270 ms] 
[2270 ms] Exit code 1
[2271 ms] Extensions cache, install extensions: None
[2272 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2586 ms] 
[2586 ms] 
[2587 ms] Extensions cache, copy to remote: None
[2587 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c cd '/root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47' && SHELL='/bin/bash' VSCODE_AGENT_FOLDER='/root/.vscode-server' /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/bin/code-server '--log' 'debug' '--force-disable-user-env' '--server-data-dir' '/root/.vscode-server' '--use-host-proxy' '--telemetry-level' 'all' '--accept-server-license-terms' '--host' '127.0.0.1' '--port' '0' '--connection-token-file' '/root/.vscode-server/data/Machine/.connection-token-57fd6d0195bb9b9d1b49f6da5db789060795de47' '--extensions-download-dir' '/root/.vscode-server/extensionsCache' '--start-server' '--disable-websocket-compression'
[2662 ms] /root
[2663 ms] Unable to use a TTY - input is not a terminal or the right kind of file
[2663 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-d9ff427267a8f1d63f73f736f1e421007442a940.js' >/tmp/vscode-remote-containers-d9ff427267a8f1d63f73f736f1e421007442a940.js
[2732 ms] 
[2732 ms] 
[2732 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-d9ff427267a8f1d63f73f736f1e421007442a940.js' >/tmp/vscode-remote-containers-server-d9ff427267a8f1d63f73f736f1e421007442a940.js_1651939233804
[2894 ms] 
[2895 ms] 
[3215 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Merged:    '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[3540 ms] *
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[3545 ms] Server bound to 127.0.0.1:44119 (IPv4)
Extension host agent listening on 44119

[3546 ms] Start: Run in container: echo 44119 >'/root/.vscode-server/data/Machine/.devport-57fd6d0195bb9b9d1b49f6da5db789060795de47'
[3639 ms] 
[3640 ms] 
[3640 ms] Port forwarding for container port 44119 starts listening on local port.
[3643 ms] Port forwarding local port 44119 to container port 44119
[3648 ms] Start: Run in container: # Test for /root/.gitconfig and git
[3655 ms] Port forwarding connection from 50776 > 44119 > 44119 in the container.
[3655 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='f1c240d4-827c-4a4a-b65f-06d66692b4731651939230412' /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node '-e' '
[3751 ms] git not found
[3751 ms] 
[3752 ms] Exit code 1
[3752 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node /tmp/vscode-remote-containers-d9ff427267a8f1d63f73f736f1e421007442a940.js $*; }; f' || true
[3839 ms] 
[3840 ms] 
[3948 ms] Port forwarding 50776 > 44119 > 44119 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[4131 ms] [16:00:35] Extension host agent started.
[16139 ms] Extensions cache, remote removals: None
[33426 ms] Port forwarding 50776 > 44119 > 44119 stderr: Connection established
[33645 ms] Port forwarding connection from 50791 > 44119 > 44119 in the container.
[33646 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='f1c240d4-827c-4a4a-b65f-06d66692b4731651939230412' /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node '-e' '
[33732 ms] [16:01:04] ComputeTargetPlatform: linux-x64
[33927 ms] [16:01:05] [127.0.0.1][4f0639b0][ExtensionHostConnection] New connection established.
[33933 ms] [16:01:05] [127.0.0.1][4f0639b0][ExtensionHostConnection] <1662> Launched Extension Host Process.
[34012 ms] Port forwarding 50791 > 44119 > 44119 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[49039 ms] Port forwarding 50791 > 44119 > 44119 stderr: Connection established
[57622 ms] [16:01:28] [127.0.0.1][57e838c8][ManagementConnection] New connection established.
[75502 ms] Port forwarding 50791 > 44119 > 44119 stderr: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:220:20)Remote close with error
[75549 ms] Port forwarding 50791 > 44119 > 44119 stderr: command terminated with exit code 1
[75552 ms] Port forwarding 50791 > 44119 > 44119 terminated with code 1 and signal null.
[75553 ms] Port forwarding 50791 > 44119 > 44119: Local close
[75585 ms] Start: Reconnection attempt 1
[75588 ms] Port forwarding connection from 50810 > 44119 > 44119 in the container.
[75588 ms] Start: Run: kubectl exec -it foo --context bar --namespace default --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='f1c240d4-827c-4a4a-b65f-06d66692b4731651939230412' /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node '-e' '
[75953 ms] Port forwarding 50810 > 44119 > 44119 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[76229 ms] Extensions cache, remote removals: None
[76646 ms] Port forwarding 50810 > 44119 > 44119 stderr: Error: connect ECONNREFUSED 127.0.0.1:44119
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[76647 ms] Port forwarding 50810 > 44119 > 44119 stderr: Remote close with error
[76657 ms] Port forwarding 50810 > 44119 > 44119 stderr: command terminated with exit code 1
[76660 ms] Port forwarding 50810 > 44119 > 44119 terminated with code 1 and signal null.
[76660 ms] Port forwarding 50810 > 44119 > 44119: Local close

@chrmarti
Copy link
Contributor

chrmarti commented May 9, 2022

It looks like the VS Code server stops listening on the container's local port. Could you retry with 'trace' logging enabled in the user settings for Remote-Containers and post the log from that again?
image

@NotoriousPyro
Copy link

I also have this with podman on Fedora 34, though I don't see Unable to use a TTY - input is not a terminal or the right kind of file

This was working fine not too long ago, but I did a relatively recent upgrade of VS code, so it could have been that.

I tried 1.67 and it is the same.

[5254 ms] [14:58:47] ComputeTargetPlatform: linux-x64
[14:58:47] Scanned user extensions: 0
[5274 ms] [14:58:47] Scanned system extensions: 30
[5318 ms] Port forwarding 35618 > 37537 > 33923 stderr: Error: connect ECONNREFUSED ::1:33923
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[5319 ms] Port forwarding 35618 > 37537 > 33923 stderr: Remote close with error
[5366 ms] Stop (165 ms): Run in container: /root/.vscode-server/bin/57fd6d0195bb9b9d1b49f6da5db789060795de47/node -e 
[5367 ms] Port forwarding 35618 > 37537 > 33923 terminated with code 1 and signal null.
[5367 ms] Port forwarding 35618 > 37537 > 33923: Local close

Also seeing this, but nothing else that would suggest any problem:

[5251 ms] [14:58:47] getUnixShellEnvironment#stderr bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

@NotoriousPyro
Copy link

NotoriousPyro commented May 9, 2022

Removed VS Code 1.67 and installed 1.60 and it now works fine... I did nothing else and the only thing that changed was VS code version.

In VS Code 1.60 the log is like this:

[4540 ms] [15:15:49] [::1][273306eb][ManagementConnection] New connection established.
[4545 ms] Port forwarding connection from 39742 > 38601 > 38937 in the container.
[4549 ms] Start: Run in container: /root/.vscode-server/bin/e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff/node -e 
[4563 ms] [15:15:49] Started scanning system extensions
[4564 ms] [15:15:49] Started scanning user extensions
[4564 ms] [15:15:49] Started scanning system extensions
[4564 ms] [15:15:49] Started scanning user extensions
[15:15:49] Started scanning user extensions
[4578 ms] Port forwarding process for 39742 > 38601 > 38937 in the container:
[]
[4928 ms] [15:15:49] [::1][f0d4f729][ExtensionHostConnection] New connection established.
[4938 ms] [15:15:49] [::1][f0d4f729][ExtensionHostConnection] <183813> Launched Extension Host Process.
[6354 ms] Start: Run in container: cat /proc/183841/environ
[6356 ms] Stop (2 ms): Run in container: cat /proc/183841/environ

@NotoriousPyro
Copy link

So I decided to attack this a bit more today.

I decided to go through the list from version 1.67 and install each version up to 1.60 and find out where the break happens.

I was able to install all versions up to 1.63.1 which all worked fine.

I could not install 1.63.2, because it says:
image

As soon as I installed 1.64.0 it stops working and none of the subsequent versions are any different:
image

1.64.0.log - no longer works with my container...
1.63.1.log - last known working version I installed

Unfortunately, using an old version means my source control window is showing nothing, but this does in fact show something on later versions...:
image

@chrmarti
Copy link
Contributor

Recent versions of Remote-Containers require VS Code 1.64 or later. So it could be a change in VS Code or Remote-Containers causing this.

Could you try VS Code 1.64 or later with Remote-Containers 0.224.3? (This is before a larger refactoring.)

@RaananHadar
Copy link
Author

I apologize for the delay, here are he logs:

[2022-05-12T19:54:12.489Z] Remote-Containers 0.234.0 in VS Code 1.67.1 (da15b6fd3ef856477bf6f4fb29ba1b7af717770d).
[2022-05-12T19:54:12.489Z] Start: Resolving Remote
[2022-05-12T19:54:12.496Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /bin/sh
[2022-05-12T19:54:12.498Z] Start: Run in container: echo $PATH
[2022-05-12T19:54:13.452Z] /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[2022-05-12T19:54:13.453Z] Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:54:13.453Z] Stop (955 ms): Run in container: echo $PATH
[2022-05-12T19:54:13.453Z] Start: Run in container: id -un
[2022-05-12T19:54:13.522Z] root
[2022-05-12T19:54:13.522Z] 
[2022-05-12T19:54:13.522Z] Stop (69 ms): Run in container: id -un
[2022-05-12T19:54:13.522Z] Start: Run in container: uname -m
[2022-05-12T19:54:13.653Z] x86_64
[2022-05-12T19:54:13.654Z] 
[2022-05-12T19:54:13.654Z] Stop (132 ms): Run in container: uname -m
[2022-05-12T19:54:13.654Z] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2022-05-12T19:54:13.725Z] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[2022-05-12T19:54:13.726Z] 
[2022-05-12T19:54:13.726Z] Stop (72 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2022-05-12T19:54:13.726Z] Start: Run in container: cat /etc/passwd
[2022-05-12T19:54:13.809Z] Stop (83 ms): Run in container: cat /etc/passwd
[2022-05-12T19:54:13.810Z] Start: Run in container: test -d /root/.vscode-server
[2022-05-12T19:54:13.918Z] 
[2022-05-12T19:54:13.918Z] 
[2022-05-12T19:54:13.918Z] Stop (108 ms): Run in container: test -d /root/.vscode-server
[2022-05-12T19:54:13.919Z] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2022-05-12T19:54:13.987Z] 
[2022-05-12T19:54:13.988Z] 
[2022-05-12T19:54:13.988Z] Exit code 1
[2022-05-12T19:54:13.988Z] Stop (69 ms): Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2022-05-12T19:54:13.988Z] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[2022-05-12T19:54:14.060Z] 
[2022-05-12T19:54:14.061Z] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory
[2022-05-12T19:54:14.061Z] Exit code 1
[2022-05-12T19:54:14.061Z] Stop (73 ms): Run in container: cat /root/.vscode-server/data/Machine/settings.json
[2022-05-12T19:54:14.062Z] Start: Run in container: test -d /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d
[2022-05-12T19:54:14.131Z] 
[2022-05-12T19:54:14.131Z] 
[2022-05-12T19:54:14.131Z] Stop (69 ms): Run in container: test -d /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d
[2022-05-12T19:54:14.131Z] Start: Launching Remote-Containers helper.
[2022-05-12T19:54:14.132Z] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-5a166210f8c8e34e3fed68867d0f9411bdc13745.sock) forwarded to local host (/private/tmp/com.apple.launchd.uTHf86itzJ/Listeners).
[2022-05-12T19:54:14.133Z] Start: Run: gpgconf --list-dir agent-extra-socket
[2022-05-12T19:54:14.134Z] Stop (1 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-05-12T19:54:14.135Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz--namespace bar --container main -- /bin/sh
[2022-05-12T19:54:14.135Z] Stop (4 ms): Launching Remote-Containers helper.
[2022-05-12T19:54:14.136Z] userEnvProbe: loginInteractiveShell (default)
[2022-05-12T19:54:14.137Z] Start: Run in container: echo ~
[2022-05-12T19:54:14.137Z] userEnvProbe shell: /bin/bash
[2022-05-12T19:54:14.137Z] Stop (4 ms): Run: gpgconf --list-dir agent-extra-socket
[2022-05-12T19:54:14.138Z] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-05-12T19:54:14.271Z] ssh not found
[2022-05-12T19:54:14.271Z] 
[2022-05-12T19:54:14.271Z] Exit code 1
[2022-05-12T19:54:14.271Z] Stop (133 ms): Run in container: # Test for /root/.ssh/known_hosts and ssh
[2022-05-12T19:54:14.272Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js $*; }; f' || true
[2022-05-12T19:54:14.340Z] 
[2022-05-12T19:54:14.340Z] 
[2022-05-12T19:54:14.341Z] Stop (69 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js $*; }; f' || true
[2022-05-12T19:54:14.341Z] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2022-05-12T19:54:14.488Z] Stop (147 ms): Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2022-05-12T19:54:14.490Z] Running extension host agents:
[]
[2022-05-12T19:54:14.490Z] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' 2>/dev/null || (umask 377 && echo '2faa4235-003e-40d0-9d31-6f3b9ac3b80f' >'/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' && mv -n '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' && rm -f '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' && cat '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d')
[2022-05-12T19:54:14.595Z] 1c39241a-10d8-45d3-9d43-2e744678a882
[2022-05-12T19:54:14.595Z] 
[2022-05-12T19:54:14.596Z] Stop (106 ms): Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' 2>/dev/null || (umask 377 && echo '2faa4235-003e-40d0-9d31-6f3b9ac3b80f' >'/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' && mv -n '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' && rm -f '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d-4165e6e8-e304-4727-ab69-918910fece15' && cat '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d')
[2022-05-12T19:54:14.596Z] Start: Starting VS Code Server
[2022-05-12T19:54:14.596Z] Start: Preparing Extensions
[2022-05-12T19:54:14.597Z] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2022-05-12T19:54:14.664Z] 
[2022-05-12T19:54:14.665Z] 
[2022-05-12T19:54:14.665Z] Exit code 1
[2022-05-12T19:54:14.665Z] Stop (68 ms): Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2022-05-12T19:54:14.666Z] Extensions cache, install extensions: None
[2022-05-12T19:54:14.666Z] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2022-05-12T19:54:14.750Z] 
[2022-05-12T19:54:14.750Z] 
[2022-05-12T19:54:14.751Z] Stop (85 ms): Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2022-05-12T19:54:14.751Z] Extensions cache, copy to remote: None
[2022-05-12T19:54:14.752Z] Stop (156 ms): Preparing Extensions
[2022-05-12T19:54:14.752Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c cd '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d' && SHELL='/bin/bash' VSCODE_AGENT_FOLDER='/root/.vscode-server' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/bin/code-server '--log' 'trace' '--force-disable-user-env' '--server-data-dir' '/root/.vscode-server' '--use-host-proxy' '--telemetry-level' 'all' '--accept-server-license-terms' '--host' '127.0.0.1' '--port' '0' '--connection-token-file' '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' '--extensions-download-dir' '/root/.vscode-server/extensionsCache' '--start-server' '--disable-websocket-compression'
[2022-05-12T19:54:15.179Z] /root
[2022-05-12T19:54:15.179Z] Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:54:15.179Z] Stop (1042 ms): Run in container: echo ~
[2022-05-12T19:54:15.179Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js' >/tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js
[2022-05-12T19:54:15.249Z] 
[2022-05-12T19:54:15.249Z] 
[2022-05-12T19:54:15.249Z] Stop (70 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js' >/tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js
[2022-05-12T19:54:15.249Z] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-5a166210f8c8e34e3fed68867d0f9411bdc13745.js' >/tmp/vscode-remote-containers-server-5a166210f8c8e34e3fed68867d0f9411bdc13745.js_1652385255249
[2022-05-12T19:54:15.433Z] 
[2022-05-12T19:54:15.434Z] 
[2022-05-12T19:54:15.434Z] Stop (185 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-5a166210f8c8e34e3fed68867d0f9411bdc13745.js' >/tmp/vscode-remote-containers-server-5a166210f8c8e34e3fed68867d0f9411bdc13745.js_1652385255249
[2022-05-12T19:54:15.505Z] Start: Run in Container: /bin/bash -lic echo -n 6fd58c801e031f48e7c1bd6320a029e2; cat /proc/self/environ; echo -n 6fd58c801e031f48e7c1bd6320a029e2
[2022-05-12T19:54:15.707Z] Stop (202 ms): Run in Container: /bin/bash -lic echo -n 6fd58c801e031f48e7c1bd6320a029e2; cat /proc/self/environ; echo -n 6fd58c801e031f48e7c1bd6320a029e2
[2022-05-12T19:54:15.708Z] 6fd58c801e031f48e7c1bd6320a029e2KUBERNETES_SERVICE_PORT_HTTPS=443�KUBERNETES_SERVICE_PORT=443�HOSTNAME=foo-6c7c9c7698-tzqk6�REMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-5a166210f8c8e34e3fed68867d0f9411bdc13745.sock�PWD=/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d�HOME=/root�KUBERNETES_PORT_443_TCP=tcp://10.0.0.1:443�LS_COLORS=�REMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-5a166210f8c8e34e3fed68867d0f9411bdc13745.sock"]�SHLVL=1�KUBERNETES_PORT_443_TCP_PROTO=tcp�KUBERNETES_PORT_443_TCP_ADDR=10.0.0.1�KUBERNETES_SERVICE_HOST=10.0.0.1�KUBERNETES_PORT=tcp://10.0.0.1:443�KUBERNETES_PORT_443_TCP_PORT=443�PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin�_=/usr/bin/cat�6fd58c801e031f48e7c1bd6320a029e2
[2022-05-12T19:54:15.708Z] bash: cannot set terminal process group (1127): Inappropriate ioctl for device
bash: no job control in this shell

[2022-05-12T19:54:15.708Z] userEnvProbe parsed: {
  "KUBERNETES_SERVICE_PORT_HTTPS": "443",
  "KUBERNETES_SERVICE_PORT": "443",
  "HOSTNAME": "foo-6c7c9c7698-tzqk6",
  "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-5a166210f8c8e34e3fed68867d0f9411bdc13745.sock",
  "PWD": "/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d",
  "HOME": "/root",
  "KUBERNETES_PORT_443_TCP": "tcp://10.0.0.1:443",
  "LS_COLORS": "",
  "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-5a166210f8c8e34e3fed68867d0f9411bdc13745.sock\"]",
  "SHLVL": "1",
  "KUBERNETES_PORT_443_TCP_PROTO": "tcp",
  "KUBERNETES_PORT_443_TCP_ADDR": "10.0.0.1",
  "KUBERNETES_SERVICE_HOST": "10.0.0.1",
  "KUBERNETES_PORT": "tcp://10.0.0.1:443",
  "KUBERNETES_PORT_443_TCP_PORT": "443",
  "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  "_": "/usr/bin/cat"
}
[2022-05-12T19:54:15.709Z] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
Merged:    '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
[2022-05-12T19:54:15.765Z] *
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2022-05-12T19:54:15.769Z] Server bound to 127.0.0.1:44647 (IPv4)
Extension host agent listening on 44647

[2022-05-12T19:54:15.770Z] Stop (1174 ms): Starting VS Code Server
[2022-05-12T19:54:15.770Z] Start: Run in container: echo 44647 >'/root/.vscode-server/data/Machine/.devport-da15b6fd3ef856477bf6f4fb29ba1b7af717770d'
[2022-05-12T19:54:15.846Z] 
[2022-05-12T19:54:15.847Z] 
[2022-05-12T19:54:15.847Z] Stop (77 ms): Run in container: echo 44647 >'/root/.vscode-server/data/Machine/.devport-da15b6fd3ef856477bf6f4fb29ba1b7af717770d'
[2022-05-12T19:54:15.848Z] Port forwarding for container port 44647 starts listening on local port.
[2022-05-12T19:54:15.850Z] Port forwarding local port 44647 to container port 44647
[2022-05-12T19:54:15.854Z] Stop (3365 ms): Resolving Remote
[2022-05-12T19:54:15.855Z] Start: Run in container: # Test for /root/.gitconfig and git
[2022-05-12T19:54:15.861Z] Port forwarding connection from 53319 > 44647 > 44647 in the container.
[2022-05-12T19:54:15.863Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:54:15.882Z] Port forwarding process for 53319 > 44647 > 44647 in the container:
[
  {
    "pid": 578,
    "ppid": 437,
    "uid": 501,
    "gid": 20,
    "name": "Visual Studio Code",
    "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper",
    "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --user-data-dir=/Users/raanan/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,1248674258084430137,17665157610852788972,131072 --disable-features=PlzServiceWorker,SpareRendererForSitePerProcess --seatbelt-client=43"
  }
]
[2022-05-12T19:54:15.962Z] git not found
[2022-05-12T19:54:15.962Z] 
[2022-05-12T19:54:15.962Z] Exit code 1
[2022-05-12T19:54:15.962Z] Stop (107 ms): Run in container: # Test for /root/.gitconfig and git
[2022-05-12T19:54:15.963Z] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js $*; }; f' || true
[2022-05-12T19:54:16.045Z] 
[2022-05-12T19:54:16.046Z] 
[2022-05-12T19:54:16.046Z] Stop (83 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-5a166210f8c8e34e3fed68867d0f9411bdc13745.js $*; }; f' || true
[2022-05-12T19:54:16.146Z] Port forwarding 53319 > 44647 > 44647 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:54:16.188Z] [19:54:16] Remote configuration data at /root/.vscode-server
[2022-05-12T19:54:16.248Z] [19:54:16] process arguments: {
  _: [],
  host: '127.0.0.1',
  port: '0',
  'connection-token-file': '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d',
  'without-connection-token': false,
  'disable-websocket-compression': true,
  'print-startup-performance': false,
  'print-ip-address': false,
  'accept-server-license-terms': true,
  'server-data-dir': '/root/.vscode-server',
  'telemetry-level': 'all',
  'enable-smoke-test-driver': false,
  'disable-telemetry': false,
  'disable-workspace-trust': false,
  log: 'trace',
  'force-disable-user-env': true,
  'enable-sync': false,
  'extensions-download-dir': '/root/.vscode-server/extensionsCache',
  'list-extensions': false,
  'show-versions': false,
  force: false,
  'do-not-sync': false,
  'pre-release': false,
  'start-server': true,
  'enable-remote-auto-shutdown': false,
  'remote-auto-shutdown-without-delay': false,
  'use-host-proxy': true,
  'without-browser-env-var': false,
  help: false,
  version: false,
  'user-data-dir': '/root/.vscode-server/data',
  'builtin-extensions-dir': '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/extensions',
  'extensions-dir': '/root/.vscode-server/extensions',
  logsPath: '/root/.vscode-server/data/logs/20220512T195416'
}
[2022-05-12T19:54:16.267Z] [19:54:16] Started scanning system extensions
[19:54:16] Started scanning user extensions
[2022-05-12T19:54:16.270Z] [19:54:16] resolveShellEnv(): running (macOS/Linux)
[19:54:16] getUnixShellEnvironment#runAsNode undefined
[19:54:16] getUnixShellEnvironment#noAttach undefined
[2022-05-12T19:54:16.271Z] [19:54:16] getUnixShellEnvironment#env {
  KUBERNETES_SERVICE_PORT: '443',
  KUBERNETES_PORT: 'tcp://10.0.0.1:443',
  HOSTNAME: 'foo-6c7c9c7698-tzqk6',
  HOME: '/root',
  OLDPWD: '/',
  KUBERNETES_PORT_443_TCP_ADDR: '10.0.0.1',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  VSCODE_AGENT_FOLDER: '/root/.vscode-server',
  KUBERNETES_PORT_443_TCP_PORT: '443',
  KUBERNETES_PORT_443_TCP_PROTO: 'tcp',
  SHELL: '/bin/bash',
  KUBERNETES_SERVICE_PORT_HTTPS: '443',
  KUBERNETES_PORT_443_TCP: 'tcp://10.0.0.1:443',
  KUBERNETES_SERVICE_HOST: '10.0.0.1',
  PWD: '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d',
  VSCODE_HANDLES_SIGPIPE: 'true',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1'
}
[2022-05-12T19:54:16.284Z] [19:54:16] getUnixShellEnvironment#shell /bin/bash
[2022-05-12T19:54:16.285Z] [19:54:16] getUnixShellEnvironment#spawn ["-ilc"] '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node'  -p '"66ce7413346d" + JSON.stringify(process.env) + "66ce7413346d"'
[2022-05-12T19:54:16.354Z] [19:54:16] Extension host agent started.
[2022-05-12T19:54:16.450Z] [19:54:16] [File Watcher (node.js)] Request to start watching: /root/.vscode-server/data/Machine (excludes: <none>, includes: <all>),/root/.vscode-server/data/Machine/settings.json (excludes: <none>, includes: <all>),/root/.vscode-server/extensions (excludes: <none>, includes: <all>)
[2022-05-12T19:54:16.455Z] [19:54:16] Started scanning user extensions
[2022-05-12T19:54:16.466Z] [19:54:16] Extension VSIX downlads cache dir does not exist
[2022-05-12T19:54:25.251Z] Extensions cache, remote removals: None
[2022-05-12T19:54:25.251Z] Extensions cache, copy to local: None
[2022-05-12T19:54:33.641Z] [19:54:33] getUnixShellEnvironment#raw 66ce7413346d{"SHELL":"/bin/bash","KUBERNETES_SERVICE_PORT_HTTPS":"443","KUBERNETES_SERVICE_PORT":"443","HOSTNAME":"foo-6c7c9c7698-tzqk6","ELECTRON_RUN_AS_NODE":"1","PWD":"/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d","HOME":"/root","KUBERNETES_PORT_443_TCP":"tcp://10.0.0.1:443","LS_COLORS":"","VSCODE_AGENT_FOLDER":"/root/.vscode-server","VSCODE_HANDLES_SIGPIPE":"true","SHLVL":"0","KUBERNETES_PORT_443_TCP_PROTO":"tcp","KUBERNETES_PORT_443_TCP_ADDR":"10.0.0.1","KUBERNETES_SERVICE_HOST":"10.0.0.1","KUBERNETES_PORT":"tcp://10.0.0.1:443","KUBERNETES_PORT_443_TCP_PORT":"443","ELECTRON_NO_ATTACH_CONSOLE":"1","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","OLDPWD":"/","_":"/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node"}66ce7413346d

[19:54:33] getUnixShellEnvironment#stderr bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

[19:54:33] getUnixShellEnvironment#result {
  SHELL: '/bin/bash',
  KUBERNETES_SERVICE_PORT_HTTPS: '443',
  KUBERNETES_SERVICE_PORT: '443',
  HOSTNAME: 'foo-6c7c9c7698-tzqk6',
  PWD: '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d',
  HOME: '/root',
  KUBERNETES_PORT_443_TCP: 'tcp://10.0.0.1:443',
  LS_COLORS: '',
  VSCODE_AGENT_FOLDER: '/root/.vscode-server',
  VSCODE_HANDLES_SIGPIPE: 'true',
  SHLVL: '0',
  KUBERNETES_PORT_443_TCP_PROTO: 'tcp',
  KUBERNETES_PORT_443_TCP_ADDR: '10.0.0.1',
  KUBERNETES_SERVICE_HOST: '10.0.0.1',
  KUBERNETES_PORT: 'tcp://10.0.0.1:443',
  KUBERNETES_PORT_443_TCP_PORT: '443',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  OLDPWD: '/',
  _: '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node'
}
[2022-05-12T19:54:33.654Z] Port forwarding 53319 > 44647 > 44647 stderr: Connection established
[2022-05-12T19:54:33.752Z] [19:54:33] [File Watcher (node.js)] Started watching: '/root/.vscode-server/extensions'
[2022-05-12T19:54:33.772Z] [19:54:33] Scanned user extensions: 0
[19:54:33] Started scanning user extensions
[19:54:33] [File Watcher (node.js)] Started watching: '/root/.vscode-server/data/Machine'
[2022-05-12T19:54:33.847Z] [19:54:33] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/root/.vscode-server/data/Machine/settings.json'
[2022-05-12T19:54:33.866Z] Port forwarding connection from 53332 > 44647 > 44647 in the container.
[2022-05-12T19:54:33.867Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:54:33.888Z] Port forwarding process for 53332 > 44647 > 44647 in the container:
[
  {
    "pid": 578,
    "ppid": 437,
    "uid": 501,
    "gid": 20,
    "name": "Visual Studio Code",
    "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper",
    "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --user-data-dir=/Users/raanan/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,1248674258084430137,17665157610852788972,131072 --disable-features=PlzServiceWorker,SpareRendererForSitePerProcess --seatbelt-client=43"
  }
]
[2022-05-12T19:54:33.970Z] [19:54:34] Scanned user extensions: 0
[19:54:34] ComputeTargetPlatform: linux-x64
[19:54:34] Scanned user extensions: 0
[2022-05-12T19:54:34.049Z] [19:54:34] Scanned system extensions: 30
[2022-05-12T19:54:34.061Z] [19:54:34] [127.0.0.1][7d58a1cf][ManagementConnection] New connection established.
[2022-05-12T19:54:34.254Z] Port forwarding 53332 > 44647 > 44647 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:54:34.258Z] [19:54:34] Started scanning system extensions
[2022-05-12T19:54:34.259Z] [19:54:34] Started scanning user extensions
[2022-05-12T19:54:34.260Z] [19:54:34] Started scanning system extensions
[19:54:34] Started scanning user extensions
[19:54:34] ExtensionManagementService.refreshReportedCache
[2022-05-12T19:54:34.262Z] [19:54:34] RequestService#request (node) - begin https://az764295.vo.msecnd.net/extensions/marketplace.json
[19:54:34] resolveShellEnv(): skipped (--force-disable-user-env)
[19:54:34] Started scanning user extensions
[2022-05-12T19:54:35.261Z] Port forwarding 53332 > 44647 > 44647 stderr: Connection established
[2022-05-12T19:54:35.425Z] [19:54:35] [127.0.0.1][243857e5][ExtensionHostConnection] New connection established.
[2022-05-12T19:54:35.437Z] [19:54:35] [127.0.0.1][243857e5][ExtensionHostConnection] <1255> Launched Extension Host Process.
[2022-05-12T19:54:57.374Z] Start: Reconnection attempt 1
[2022-05-12T19:54:57.375Z] Stop (1 ms): Reconnection attempt 1
[2022-05-12T19:54:57.377Z] Port forwarding connection from 53340 > 44647 > 44647 in the container.
[2022-05-12T19:54:57.379Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz--namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:54:57.395Z] Port forwarding process for 53340 > 44647 > 44647 in the container:
[
  {
    "pid": 578,
    "ppid": 437,
    "uid": 501,
    "gid": 20,
    "name": "Visual Studio Code",
    "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper",
    "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --user-data-dir=/Users/raanan/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,1248674258084430137,17665157610852788972,131072 --disable-features=PlzServiceWorker,SpareRendererForSitePerProcess --seatbelt-client=43"
  }
]
[2022-05-12T19:54:59.594Z] Port forwarding 53340 > 44647 > 44647 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:55:22.055Z] Port forwarding 53319 > 44647 > 44647 stderr: Remote close
[2022-05-12T19:55:22.055Z] Port forwarding 53332 > 44647 > 44647 stderr: Remote close
[2022-05-12T19:55:22.113Z] Stop (67361 ms): Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c cd '/root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d' && SHELL='/bin/bash' VSCODE_AGENT_FOLDER='/root/.vscode-server' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/bin/code-server '--log' 'trace' '--force-disable-user-env' '--server-data-dir' '/root/.vscode-server' '--use-host-proxy' '--telemetry-level' 'all' '--accept-server-license-terms' '--host' '127.0.0.1' '--port' '0' '--connection-token-file' '/root/.vscode-server/data/Machine/.connection-token-da15b6fd3ef856477bf6f4fb29ba1b7af717770d' '--extensions-download-dir' '/root/.vscode-server/extensionsCache' '--start-server' '--disable-websocket-compression'
[2022-05-12T19:55:22.158Z] Stop (48291 ms): Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:55:22.158Z] Port forwarding 53332 > 44647 > 44647 terminated with code 0 and signal null.
[2022-05-12T19:55:22.159Z] Stop (66296 ms): Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:55:22.159Z] Port forwarding 53319 > 44647 > 44647 terminated with code 0 and signal null.
[2022-05-12T19:55:22.159Z] Port forwarding 53332 > 44647 > 44647: Local close
[2022-05-12T19:55:22.160Z] Port forwarding 53319 > 44647 > 44647: Local close
[2022-05-12T19:55:22.349Z] Port forwarding 53340 > 44647 > 44647 stderr: Error: connect ECONNREFUSED 127.0.0.1:44647
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[2022-05-12T19:55:22.350Z] Port forwarding 53340 > 44647 > 44647 stderr: Remote close with error
[2022-05-12T19:55:22.364Z] Port forwarding 53340 > 44647 > 44647 stderr: command terminated with exit code 1
[2022-05-12T19:55:22.367Z] Stop (24988 ms): Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:55:22.367Z] Port forwarding 53340 > 44647 > 44647 terminated with code 1 and signal null.
[2022-05-12T19:55:22.368Z] Port forwarding 53340 > 44647 > 44647: Local close
[2022-05-12T19:55:22.379Z] Port forwarding connection from 53391 > 44647 > 44647 in the container.
[2022-05-12T19:55:22.381Z] Start: Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:55:22.402Z] Port forwarding process for 53391 > 44647 > 44647 in the container:
[
  {
    "pid": 578,
    "ppid": 437,
    "uid": 501,
    "gid": 20,
    "name": "Visual Studio Code",
    "bin": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper",
    "cmd": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --user-data-dir=/Users/raanan/Library/Application Support/Code --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files --field-trial-handle=1718379636,1248674258084430137,17665157610852788972,131072 --disable-features=PlzServiceWorker,SpareRendererForSitePerProcess --seatbelt-client=43"
  }
]
[2022-05-12T19:55:22.680Z] Port forwarding 53391 > 44647 > 44647 stderr: Unable to use a TTY - input is not a terminal or the right kind of file
[2022-05-12T19:55:23.444Z] Port forwarding 53391 > 44647 > 44647 stderr: Error: connect ECONNREFUSED 127.0.0.1:44647
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[2022-05-12T19:55:23.445Z] Port forwarding 53391 > 44647 > 44647 stderr: Remote close with error
[2022-05-12T19:55:23.451Z] Port forwarding 53391 > 44647 > 44647 stderr: command terminated with exit code 1
[2022-05-12T19:55:23.453Z] Stop (1072 ms): Run: kubectl exec -it foo-6c7c9c7698-tzqk6 --context buzz --namespace bar --container main -- /bin/sh -c VSCODE_REMOTE_CONTAINERS_SESSION='c94165f6-fd02-4a0c-80c5-8f7713c026e91652385251824' /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node '-e' '
[2022-05-12T19:55:23.454Z] Port forwarding 53391 > 44647 > 44647 terminated with code 1 and signal null.
[2022-05-12T19:55:23.454Z] Port forwarding 53391 > 44647 > 44647: Local close
[2022-05-12T19:55:25.332Z] Extensions cache, remote removals: None
[2022-05-12T19:55:25.333Z] Extensions cache, copy to local: None

@chrmarti
Copy link
Contributor

What do you get for ps ax | cat inside the container at that point?

@RaananHadar
Copy link
Author

As I cannot open a terminal on the dev container as vscode cannot reconnect, I opened a terminal at that point on the original container once reaching that point and here is what I got:

root@foo-6c7c9c7698-2j24f:/# ps ax | cat
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 /bin/sh -ec sleep infinity
    8 ?        S      0:00 sleep infinity
   92 ?        Ss     0:00 /bin/sh
  103 ?        Sl     0:00 /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-server-d3e57f95127b6aba8c49d57e10cd644b63d048e6.js
  361 ?        Ss     0:00 /bin/sh
  373 ?        Sl     0:00 /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-server-d9406ac048c47f94936210e1ad07dff49bdfdbd8.js
  818 ?        Ss     0:00 /bin/sh
  829 ?        Sl     0:00 /root/.vscode-server/bin/da15b6fd3ef856477bf6f4fb29ba1b7af717770d/node /tmp/vscode-remote-containers-server-c085f989f4e6cb7fa603462c8f95eb9dec4c3fbe.js
  980 pts/0    Ss     0:00 bash
  988 pts/0    R+     0:00 ps ax
  989 pts/0    S+     0:00 cat

@chrmarti
Copy link
Contributor

@aeschli The server stopped with exit code 0 after about a minute. Any idea what the cause could be? (The log above #6685 (comment) includes the server log.)

@aeschli
Copy link
Contributor

aeschli commented May 20, 2022

@chrmarti Sorry, no idea.

@github-actions
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@RaananHadar
Copy link
Author

This issue has not been resolved, please reopen.

@butjo
Copy link

butjo commented Jun 6, 2022

Very similar issue here maybe this log can help:

[71 ms] Remote-Containers 0.234.0 in VS Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5).
[70 ms] Start: Resolving Remote
[89 ms] Setting up container for folder or workspace: /home/jojo/ws/ansible-common
[92 ms] Start: Check Docker is running
[93 ms] Start: Run: podman version --format {{.Server.APIVersion}}
[230 ms] Stop (137 ms): Run: podman version --format {{.Server.APIVersion}}
[232 ms] Server API version: 3.4.4
[232 ms] Stop (140 ms): Check Docker is running
[236 ms] Start: Run: podman volume ls -q
[456 ms] Stop (220 ms): Run: podman volume ls -q
[474 ms] Start: Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[663 ms] Stop (189 ms): Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[665 ms] Start: Run: podman inspect --type container 7d6bc216299f
[831 ms] Stop (166 ms): Run: podman inspect --type container 7d6bc216299f
[837 ms] Start: Run: /usr/share/code/code /home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jojo/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --docker-compose-path podman-compose --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /home/jojo/ws/ansible-common --workspace-mount-consistency cached --id-label vsch.local.folder=/home/jojo/ws/ansible-common --id-label vsch.quality=stable --log-level trace --log-format json --config /home/jojo/ws/ansible-common/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[1018 ms] remote-containers 0.234.0.
[1018 ms] Start: Resolving Remote
[1022 ms] Start: Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[1162 ms] Stop (140 ms): Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[1164 ms] Start: Run: podman inspect --type container 7d6bc216299f
[1330 ms] Stop (166 ms): Run: podman inspect --type container 7d6bc216299f
[1332 ms] Start: Starting container
[1332 ms] Start: Run: podman start 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[1489 ms] Stop (157 ms): Run: podman start 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[1489 ms] Stop (157 ms): Starting container
[1489 ms] Start: Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[1661 ms] Stop (172 ms): Run: podman ps -q -a --filter label=vsch.local.folder=/home/jojo/ws/ansible-common --filter label=vsch.quality=stable
[1661 ms] Start: Run: podman inspect --type container 7d6bc216299f
[1803 ms] Stop (142 ms): Run: podman inspect --type container 7d6bc216299f
[1804 ms] Start: Inspecting container
[1805 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2032 ms] Stop (227 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2032 ms] Stop (228 ms): Inspecting container
[2033 ms] Start: Run in container: /bin/sh
[2040 ms] Start: Run in container: uname -m
[2122 ms] x86_64
[2122 ms] 
[2122 ms] Stop (82 ms): Run in container: uname -m
[2122 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2124 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[2124 ms] 
[2124 ms] Stop (2 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2124 ms] Start: Run in container: cat /etc/passwd
[2125 ms] Stop (1 ms): Run in container: cat /etc/passwd
[2126 ms] Start: Run in container: test -f '/var/vscode-server/.patchEtcEnvironmentMarker'
[2127 ms] 
[2127 ms] 
[2127 ms] Stop (1 ms): Run in container: test -f '/var/vscode-server/.patchEtcEnvironmentMarker'
[2127 ms] Start: Run in container: test -f '/var/vscode-server/.patchEtcProfileMarker'
[2129 ms] 
[2129 ms] 
[2129 ms] Stop (2 ms): Run in container: test -f '/var/vscode-server/.patchEtcProfileMarker'
[2129 ms] Stop (1111 ms): Resolving Remote
[2144 ms] Stop (1307 ms): Run: /usr/share/code/code /home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jojo/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path podman --docker-compose-path podman-compose --container-data-folder .vscode-server/data/Machine --container-system-data-folder /var/vscode-server --workspace-folder /home/jojo/ws/ansible-common --workspace-mount-consistency cached --id-label vsch.local.folder=/home/jojo/ws/ansible-common --id-label vsch.quality=stable --log-level trace --log-format json --config /home/jojo/ws/ansible-common/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2145 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2309 ms] Stop (164 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2311 ms] Start: Run: /usr/share/code/code /home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/jojo/ws/ansible-common --log-level trace --log-format json --config /home/jojo/ws/ansible-common/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2618 ms] Stop (307 ms): Run: /usr/share/code/code /home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/spec-node/devContainersSpecCLI.js read-configuration --workspace-folder /home/jojo/ws/ansible-common --log-level trace --log-format json --config /home/jojo/ws/ansible-common/.devcontainer/devcontainer.json --mount-workspace-git-root true
[2619 ms] Start: Inspecting container
[2619 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2753 ms] Stop (134 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[2754 ms] Stop (135 ms): Inspecting container
[2755 ms] Start: Run in container: /bin/sh
[2759 ms] Start: Run in container: uname -m
[2841 ms] x86_64
[2841 ms] 
[2841 ms] Stop (82 ms): Run in container: uname -m
[2841 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2842 ms] NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
[2843 ms] 
[2843 ms] Stop (2 ms): Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2843 ms] Start: Run in container: cat /etc/passwd
[2844 ms] Stop (1 ms): Run in container: cat /etc/passwd
[2845 ms] Start: Setup shutdown monitor
[2845 ms] Forking shutdown monitor: /home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/shutdown/shutdownMonitorProcess /run/user/1000/vscode-remote-containers-f9d60e12ee66721a2ac660780ce6e255063cdb0b.sock singleContainer Trace /home/jojo/.config/Code/logs/20220606T164012/exthost1/ms-vscode-remote.remote-containers 1654529204480
[2851 ms] Stop (6 ms): Setup shutdown monitor
[2854 ms] Start: Run in container: test -d /root/.vscode-server
[2856 ms] 
[2856 ms] 
[2856 ms] Stop (2 ms): Run in container: test -d /root/.vscode-server
[2856 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2858 ms] 
[2858 ms] 
[2858 ms] Exit code 1
[2858 ms] Stop (2 ms): Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2859 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json
[2861 ms] {
        "files.associations": {
                "*.yaml": "ansible"
        }
}
[2861 ms] 
[2861 ms] Stop (2 ms): Run in container: cat /root/.vscode-server/data/Machine/settings.json
[2862 ms] Start: Run in container: test -d /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
[2863 ms] 
[2864 ms] 
[2864 ms] Stop (2 ms): Run in container: test -d /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
[2864 ms] Start: Run in container: test -d /vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
[2864 ms] 
[2865 ms] 
[2865 ms] Stop (1 ms): Run in container: test -d /vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
[2865 ms] Start: Run in container: touch '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5'
[2866 ms] Start: Launching Remote-Containers helper.
[2866 ms] ssh-agent: SSH_AUTH_SOCK in container (/tmp/vscode-ssh-auth-44ad17fbf0da2fee56ec7e5d47aa779939a712da.sock) forwarded to local host (/run/user/1000/keyring/ssh).
[2867 ms] Start: Run: gpgconf --list-dir agent-extra-socket
[2889 ms] 
[2889 ms] 
[2890 ms] Stop (25 ms): Run in container: touch '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5'
[2891 ms] Stop (24 ms): Run: gpgconf --list-dir agent-extra-socket
[2892 ms] /run/user/1000/gnupg/S.gpg-agent.extra
[2892 ms] 
[2904 ms] Start: Run in container: gpgconf --list-dir agent-socket
[2906 ms] /root/.gnupg/S.gpg-agent
[2906 ms] 
[2906 ms] Stop (2 ms): Run in container: gpgconf --list-dir agent-socket
[2906 ms] Start: Run in container: gpgconf --list-dir homedir
[2908 ms] /root/.gnupg
[2908 ms] 
[2908 ms] Stop (2 ms): Run in container: gpgconf --list-dir homedir
[2908 ms] Start: Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[2914 ms] 
[2915 ms] 
[2915 ms] Exit code 2
[2915 ms] Stop (7 ms): Run in container: ls '/root/.gnupg/private-keys-v1.d' 2>/dev/null
[2915 ms] Start: Run in container: mkdir -p -m 700 '/root/.gnupg'
[2916 ms] Start: Run in container: /bin/sh
[2917 ms] Stop (51 ms): Launching Remote-Containers helper.
[2921 ms] userEnvProbe: loginInteractiveShell (default)
[2921 ms] Start: Run in container: echo ~
[2922 ms] userEnvProbe shell: /bin/bash
[2922 ms] 
[2922 ms] 
[2923 ms] Stop (8 ms): Run in container: mkdir -p -m 700 '/root/.gnupg'
[2923 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js $*; }; f' || true
[2923 ms] Start: Run: gpgconf --list-dir homedir
[2942 ms] 
[2942 ms] 
[2943 ms] Stop (20 ms): Run in container: command -v git >/dev/null 2>&1 && git config --system --replace-all credential.helper '!f() { /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js $*; }; f' || true
[2943 ms] Start: Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2944 ms] Stop (21 ms): Run: gpgconf --list-dir homedir
[2944 ms] /home/jojo/.gnupg
[2944 ms] 
[2984 ms] Stop (41 ms): Run in container: for pid in `cd /proc && ls -d [0-9]*`; do { echo $pid ; readlink /proc/$pid/cwd ; readlink /proc/$pid/ns/mnt ; cat /proc/$pid/stat | tr "
[2985 ms] Start: Run in container: gpgconf --list-dir homedir
[2985 ms] Running extension host agents:
[]
[2987 ms] /root/.gnupg
[2987 ms] 
[2987 ms] Stop (2 ms): Run in container: gpgconf --list-dir homedir
[2987 ms] Start: Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5' 2>/dev/null || (umask 377 && echo 'a80d4686-8f82-4825-9fd0-0786f61fbb47' >'/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' && mv -n '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5' && rm -f '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' && cat '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5')
[2989 ms] 0a04efae-5671-4017-8fb3-51e775b1f724
[2989 ms] 
[2989 ms] Stop (2 ms): Run in container: cat '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5' 2>/dev/null || (umask 377 && echo 'a80d4686-8f82-4825-9fd0-0786f61fbb47' >'/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' && mv -n '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5' && rm -f '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5-be1b831c-5ce3-4480-9a62-7d927872f243' && cat '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5')
[2989 ms] Start: Starting VS Code Server
[2990 ms] Start: Preparing Extensions
[2990 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2992 ms] 
[2992 ms] 
[2992 ms] Exit code 1
[2992 ms] Stop (2 ms): Run in container: test ! -f '/root/.vscode-server/data/Machine/.installExtensionsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.installExtensionsMarker' ; } 2> /dev/null
[2992 ms] Start: Run in container: # Test for /root/.gnupg/pubring.kbx and gpg
[2994 ms] Extensions cache, install extensions: None
[2994 ms] /root/.gnupg/pubring.kbx exists
[2994 ms] 
[2994 ms] Exit code 1
[2995 ms] Stop (3 ms): Run in container: # Test for /root/.gnupg/pubring.kbx and gpg
[2995 ms] Start: Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2996 ms] ms-python.python-2022.6.3
ms-python.vscode-pylance-2022.6.0
ms-toolsai.jupyter-2022.4.1021342353
ms-toolsai.jupyter-keymap-1.0.0
ms-toolsai.jupyter-renderers-1.0.8
redhat.ansible-0.10.0
redhat.vscode-yaml-1.7.0
[2997 ms] 
[2998 ms] Stop (3 ms): Run in container: test -d /root/.vscode-server/extensionsCache && ls /root/.vscode-server/extensionsCache || true
[2998 ms] Start: Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[3000 ms] ms-python.python-2022.6.3
ms-python.vscode-pylance-2022.6.0
ms-toolsai.jupyter-2022.4.1021342353
ms-toolsai.jupyter-keymap-1.0.0
ms-toolsai.jupyter-renderers-1.0.8
redhat.ansible-0.10.0
redhat.vscode-yaml-1.7.0
[3000 ms] 
[3000 ms] Stop (2 ms): Run in container: test -d /vscode/vscode-server/extensionsCache && ls /vscode/vscode-server/extensionsCache || true
[3000 ms] Extensions cache, link in container: None
[3000 ms] Stop (10 ms): Preparing Extensions
[3001 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/bin/code-server --log trace --force-disable-user-env --server-data-dir /root/.vscode-server --use-host-proxy --telemetry-level all --accept-server-license-terms --host 127.0.0.1 --port 0 --connection-token-file /root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5 --extensions-download-dir /root/.vscode-server/extensionsCache --start-server --disable-websocket-compression
[3006 ms] Start: Run in container: # Test for /root/.gnupg/trustdb.gpg and gpg
[3007 ms] /root/.gnupg/trustdb.gpg exists
[3007 ms] 
[3007 ms] Exit code 1
[3009 ms] Stop (3 ms): Run in container: # Test for /root/.gnupg/trustdb.gpg and gpg
[3009 ms] Start: Run: gpg-connect-agent updatestartuptty /bye
[3016 ms] Stop (7 ms): Run: gpg-connect-agent updatestartuptty /bye
[3024 ms] Starting monitor process...
[3052 ms] Received message: [{"type":"configure","sequence":0,"options":{"cwd":"/home/jojo/ws/ansible-common","dockerCLI":"podman","env":{"ELECTRON_RUN_AS_NODE":"1","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","LC_TIME":"de_DE.UTF-8","USER":"jojo","XDG_SESSION_TYPE":"x11","SHLVL":"0","HOME":"/home/jojo","DESKTOP_SESSION":"ubuntu","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GTK_MODULES":"gail:atk-bridge","GNOME_SHELL_SESSION_MODE":"ubuntu","LC_MONETARY":"de_DE.UTF-8","MANAGERPID":"1958","SYSTEMD_EXEC_PID":"2374","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","GIO_LAUNCHED_DESKTOP_FILE_PID":"3045","LOGNAME":"jojo","JOURNAL_STREAM":"8:31935","XDG_SESSION_CLASS":"user","USERNAME":"jojo","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","WINDOWPATH":"2","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin","SESSION_MANAGER":"local/jojo-moosloch:@/tmp/.ICE-unix/2343,unix/jojo-moosloch:/tmp/.ICE-unix/2343","INVOCATION_ID":"feabd26258b74fa3af7dd0a945d50807","LC_ADDRESS":"de_DE.UTF-8","XDG_RUNTIME_DIR":"/run/user/1000","XDG_MENU_PREFIX":"gnome-","DISPLAY":":1","LANG":"en_US.UTF-8","LC_TELEPHONE":"de_DE.UTF-8","XDG_CURRENT_DESKTOP":"Unity","XAUTHORITY":"/run/user/1000/gdm/Xauthority","XDG_SESSION_DESKTOP":"ubuntu","XMODIFIERS":"@im=ibus","SSH_AGENT_LAUNCHER":"gnome-keyring","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","LC_NAME":"de_DE.UTF-8","SHELL":"/usr/bin/zsh","QT_ACCESSIBILITY":"1","GDMSESSION":"ubuntu","LC_MEASUREMENT":"de_DE.UTF-8","LC_IDENTIFICATION":"de_DE.UTF-8","GPG_AGENT_INFO":"/run/user/1000/gnupg/S.gpg-agent:0:1","GJS_DEBUG_OUTPUT":"stderr","QT_IM_MODULE":"ibus","PWD":"/home/jojo","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","LC_NUMERIC":"de_DE.UTF-8","LC_PAPER":"de_DE.UTF-8","CHROME_DESKTOP":"code-url-handler.desktop","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","VSCODE_CWD":"/home/jojo","GDK_BACKEND":"x11","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/home/jojo/.config/Code/CachedData/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5","VSCODE_IPC_HOOK":"/run/user/1000/vscode-039b0246-1.67.2-main.sock","VSCODE_PID":"3045","OLDPWD":"/home/jojo","ZSH":"/home/jojo/.oh-my-zsh","PAGER":"less","LESS":"-R","LSCOLORS":"Gxfxcxdxbxegedabagacad","LS_COLORS":"","_":"/usr/share/code/code","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","VSCODE_LOG_NATIVE":"false","VSCODE_IPC_HOOK_EXTHOST":"/run/user/1000/vscode-ipc-10084f29-565b-47e2-9d45-882bc11596ed.sock","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","SSH_ASKPASS":"/home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/scripts/ssh-askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/home/jojo/.vscode/extensions/ms-vscode-remote.remote-containers-0.234.0/dist/common/sshAskpass.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/ssh-askpass-c289bb66c9272f0280218360c412aee03bd8077c.sock","DOCKER_CONTEXT":"default"},"containerId":"7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe","user":"root","sessionId":"c33f256e-742c-4600-912e-da528447577a1654529203791","logLevel":1,"delay":10000}}]
[3068 ms] /root
[3068 ms] 
[3068 ms] Stop (147 ms): Run in container: echo ~
[3069 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js' >/tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js
[3072 ms] 
[3072 ms] 
[3073 ms] Stop (4 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js' >/tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js
[3073 ms] Start: Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js' >/tmp/vscode-remote-containers-server-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js_1654529207553
[3075 ms] 
[3075 ms] 
[3075 ms] Stop (2 ms): Run in container: cat <<'EOF-/tmp/vscode-remote-containers-server-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js' >/tmp/vscode-remote-containers-server-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js_1654529207553
[3079 ms] Start: Run in Container: /bin/bash -lic echo -n c8786ff806e3b9f694927c53a1f8c9ef; cat /proc/self/environ; echo -n c8786ff806e3b9f694927c53a1f8c9ef
[3159 ms] Stop (80 ms): Run in Container: /bin/bash -lic echo -n c8786ff806e3b9f694927c53a1f8c9ef; cat /proc/self/environ; echo -n c8786ff806e3b9f694927c53a1f8c9ef
[3159 ms] c8786ff806e3b9f694927c53a1f8c9efREMOTE_CONTAINERS_IPC=/tmp/vscode-remote-containers-ipc-44ad17fbf0da2fee56ec7e5d47aa779939a712da.sockPWD=/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5container=podmanHOME=/rootTERM=xtermREMOTE_CONTAINERS_SOCKETS=["/tmp/vscode-ssh-auth-44ad17fbf0da2fee56ec7e5d47aa779939a712da.sock","/root/.gnupg/S.gpg-agent"]SHLVL=1ANSIBLE_ROLES_PATH=~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/ansible-common/rolesREQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crtPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools_=/usr/bin/catc8786ff806e3b9f694927c53a1f8c9ef
[3159 ms] bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

[3159 ms] userEnvProbe parsed: {
  "REMOTE_CONTAINERS_IPC": "/tmp/vscode-remote-containers-ipc-44ad17fbf0da2fee56ec7e5d47aa779939a712da.sock",
  "PWD": "/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5",
  "container": "podman",
  "HOME": "/root",
  "TERM": "xterm",
  "REMOTE_CONTAINERS_SOCKETS": "[\"/tmp/vscode-ssh-auth-44ad17fbf0da2fee56ec7e5d47aa779939a712da.sock\",\"/root/.gnupg/S.gpg-agent\"]",
  "SHLVL": "1",
  "ANSIBLE_ROLES_PATH": "~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/ansible-common/roles",
  "REQUESTS_CA_BUNDLE": "/etc/ssl/certs/ca-certificates.crt",
  "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools",
  "_": "/usr/bin/cat"
}
[3159 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools'
Container: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools'
[3173 ms] *
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[3178 ms] Server bound to 127.0.0.1:44587 (IPv4)
Extension host agent listening on 44587

[3178 ms] Stop (189 ms): Starting VS Code Server
[3178 ms] Start: Run in container: echo 44587 >'/root/.vscode-server/data/Machine/.devport-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5'
[3179 ms] 
[3179 ms] 
[3179 ms] Stop (1 ms): Run in container: echo 44587 >'/root/.vscode-server/data/Machine/.devport-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5'
[3179 ms] Port forwarding for container port 44587 starts listening on local port.
[3180 ms] Port forwarding local port 43507 to container port 44587
[3183 ms] Stop (3113 ms): Resolving Remote
[3186 ms] Start: Run in container: # Test for /root/.gitconfig and git
[3191 ms] /root/.gitconfig exists
[3192 ms] 
[3192 ms] Exit code 1
[3192 ms] Stop (6 ms): Run in container: # Test for /root/.gitconfig and git
[3192 ms] Start: Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js $*; }; f' || true
[3195 ms] 
[3195 ms] 
[3196 ms] Stop (4 ms): Run in container: command -v git >/dev/null 2>&1 && git config --global --replace-all credential.helper '!f() { /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node /tmp/vscode-remote-containers-44ad17fbf0da2fee56ec7e5d47aa779939a712da.js $*; }; f' || true
[3203 ms] Port forwarding connection from 50836 > 43507 > 44587 in the container.
[3214 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[3233 ms] Port forwarding process for 50836 > 43507 > 44587 in the container:
[]
[3344 ms] [15:26:47] Remote configuration data at /root/.vscode-server
[3344 ms] Port forwarding 50836 > 43507 > 44587 stderr: Connection established
[3345 ms] [15:26:47] process arguments: {
  _: [],
  host: '127.0.0.1',
  port: '0',
  'connection-token-file': '/root/.vscode-server/data/Machine/.connection-token-c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5',
  'without-connection-token': false,
  'disable-websocket-compression': true,
  'print-startup-performance': false,
  'print-ip-address': false,
  'accept-server-license-terms': true,
  'server-data-dir': '/root/.vscode-server',
  'telemetry-level': 'all',
  'enable-smoke-test-driver': false,
  'disable-telemetry': false,
  'disable-workspace-trust': false,
  log: 'trace',
  'force-disable-user-env': true,
  'enable-sync': false,
  'extensions-download-dir': '/root/.vscode-server/extensionsCache',
  'list-extensions': false,
  'show-versions': false,
  force: false,
  'do-not-sync': false,
  'pre-release': false,
  'start-server': true,
  'enable-remote-auto-shutdown': false,
  'remote-auto-shutdown-without-delay': false,
  'use-host-proxy': true,
  'without-browser-env-var': false,
  help: false,
  version: false,
  'user-data-dir': '/root/.vscode-server/data',
  'builtin-extensions-dir': '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/extensions',
  'extensions-dir': '/root/.vscode-server/extensions',
  logsPath: '/root/.vscode-server/data/logs/20220606T152647'
}
[3355 ms] [15:26:47] Started scanning system extensions
[3355 ms] [15:26:47] Started scanning user extensions
[3358 ms] [15:26:47] resolveShellEnv(): running (macOS/Linux)
[3358 ms] [15:26:47] getUnixShellEnvironment#runAsNode undefined
[15:26:47] getUnixShellEnvironment#noAttach undefined
[3359 ms] [15:26:47] getUnixShellEnvironment#env {
  HOME: '/root',
  container: 'podman',
  ANSIBLE_ROLES_PATH: '~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/ansible-common/roles',
  TERM: 'xterm',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools',
  REQUESTS_CA_BUNDLE: '/etc/ssl/certs/ca-certificates.crt',
  VSCODE_AGENT_FOLDER: '/root/.vscode-server',
  SHELL: '/bin/bash',
  PWD: '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5',
  VSCODE_HANDLES_SIGPIPE: 'true',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1'
}
[3366 ms] [15:26:47] getUnixShellEnvironment#shell /bin/bash
[3367 ms] [15:26:47] getUnixShellEnvironment#spawn ["-ilc"] '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node'  -p '"50d196369d18" + JSON.stringify(process.env) + "50d196369d18"'
[3375 ms] [15:26:47] Extension host agent started.
[3380 ms] [15:26:47] [File Watcher (node.js)] Request to start watching: /root/.vscode-server/data/Machine (excludes: <none>, includes: <all>),/root/.vscode-server/data/Machine/settings.json (excludes: <none>, includes: <all>),/root/.vscode-server/extensions (excludes: <none>, includes: <all>)
[3384 ms] [15:26:47] Started scanning user extensions
[3459 ms] Port forwarding connection from 50838 > 43507 > 44587 in the container.
[3463 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[3470 ms] [15:26:47] getUnixShellEnvironment#raw 50d196369d18{"SHELL":"/bin/bash","ELECTRON_RUN_AS_NODE":"1","PWD":"/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5","container":"podman","HOME":"/root","VSCODE_AGENT_FOLDER":"/root/.vscode-server","VSCODE_HANDLES_SIGPIPE":"true","TERM":"xterm","SHLVL":"0","ANSIBLE_ROLES_PATH":"~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/ansible-common/roles","REQUESTS_CA_BUNDLE":"/etc/ssl/certs/ca-certificates.crt","ELECTRON_NO_ATTACH_CONSOLE":"1","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools","_":"/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node"}50d196369d18

[15:26:47] getUnixShellEnvironment#stderr bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

[15:26:47] getUnixShellEnvironment#result {
  SHELL: '/bin/bash',
  PWD: '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5',
  container: 'podman',
  HOME: '/root',
  VSCODE_AGENT_FOLDER: '/root/.vscode-server',
  VSCODE_HANDLES_SIGPIPE: 'true',
  TERM: 'xterm',
  SHLVL: '0',
  ANSIBLE_ROLES_PATH: '~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/ansible-common/roles',
  REQUESTS_CA_BUNDLE: '/etc/ssl/certs/ca-certificates.crt',
  PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools',
  _: '/vscode/vscode-server/bin/linux-x64/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node'
}
[3471 ms] Port forwarding process for 50838 > 43507 > 44587 in the container:
[]
[3484 ms] [15:26:47] [File Watcher (node.js)] Started watching: '/root/.vscode-server/extensions'
[3488 ms] [15:26:47] [File Watcher (node.js)] Started watching: '/root/.vscode-server/data/Machine'
[3496 ms] [15:26:47] [127.0.0.1][743ff1f6][ManagementConnection] New connection established.
[3500 ms] [15:26:47] [File Watcher (node.js)] Started watching: '/root/.vscode-server/data/Machine/settings.json'
[3520 ms] [15:26:47] Started scanning system extensions
[15:26:47] Started scanning user extensions
[15:26:47] Started scanning system extensions
[15:26:48] Started scanning user extensions
[3521 ms] [15:26:48] ExtensionManagementService.refreshReportedCache
[15:26:48] RequestService#request (node) - begin https://az764295.vo.msecnd.net/extensions/marketplace.json
[15:26:48] resolveShellEnv(): skipped (--force-disable-user-env)
[3521 ms] [15:26:48] Started scanning user extensions
[3611 ms] Port forwarding 50838 > 43507 > 44587 stderr: Connection established
[3804 ms] [15:26:48] [127.0.0.1][e041dba6][ExtensionHostConnection] New connection established.
[3827 ms] [15:26:48] [127.0.0.1][e041dba6][ExtensionHostConnection] <184> Launched Extension Host Process.
[8799 ms] Port forwarding 50836 > 43507 > 44587 stderr: Error: timed out waiting for file /home/jojo/.local/share/containers/storage/overlay-containers/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe/userdata/aa39b479f69dcab00b3a7bf985e82b1a8c05a82bee5216629d0e89e6dd1b29a6/exit/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe: internal libpod error
[8801 ms] Stop (5587 ms): Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[8803 ms] Port forwarding 50836 > 43507 > 44587 terminated with code 255 and signal null.
[8804 ms] Port forwarding 50836 > 43507 > 44587: Local close
[8812 ms] Start: Reconnection attempt 1
[8812 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[8963 ms] Stop (151 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[8963 ms] Stop (151 ms): Reconnection attempt 1
[8968 ms] Port forwarding connection from 50840 > 43507 > 44587 in the container.
[8973 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[8979 ms] Port forwarding process for 50840 > 43507 > 44587 in the container:
[]
[9099 ms] Port forwarding 50840 > 43507 > 44587 stderr: Connection established
[9115 ms] [15:26:53] [127.0.0.1][743ff1f6][ManagementConnection] The client has reconnected.
[13007 ms] Extensions cache, copy to shared cache: None
[14141 ms] Port forwarding 50840 > 43507 > 44587 stderr: Error: timed out waiting for file /home/jojo/.local/share/containers/storage/overlay-containers/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe/userdata/33bfa766167228cbb384846f4f7de1d5acd8fcd1b3e98f1a9358049b4488166a/exit/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe: internal libpod error
[14146 ms] Stop (5173 ms): Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[14147 ms] Port forwarding 50840 > 43507 > 44587 terminated with code 255 and signal null.
[14148 ms] Port forwarding 50840 > 43507 > 44587: Local close
[14155 ms] Start: Reconnection attempt 2
[14156 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[14313 ms] Stop (157 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[14315 ms] Stop (160 ms): Reconnection attempt 2
[14321 ms] Port forwarding connection from 50842 > 43507 > 44587 in the container.
[14332 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[14346 ms] Port forwarding process for 50842 > 43507 > 44587 in the container:
[]
[14448 ms] Port forwarding 50842 > 43507 > 44587 stderr: Connection established
[14459 ms] [15:26:58] [127.0.0.1][743ff1f6][ManagementConnection] The client has reconnected.
[19474 ms] Port forwarding 50842 > 43507 > 44587 stderr: Error: timed out waiting for file /home/jojo/.local/share/containers/storage/overlay-containers/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe/userdata/ad4d63a46ca28815820456fac8a9d1e9f297fbe81ac52908a88a11a12812d709/exit/7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe: internal libpod error
[19477 ms] Stop (5145 ms): Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[19477 ms] Port forwarding 50842 > 43507 > 44587 terminated with code 255 and signal null.
[19478 ms] Port forwarding 50842 > 43507 > 44587: Local close
[19483 ms] Start: Reconnection attempt 3
[19483 ms] Start: Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[19622 ms] Stop (139 ms): Run: podman inspect --type container 7d6bc216299f591a8d40a18ca69e138672cbb53dd53d1a48cb02aebc8c9a2abe
[19623 ms] Stop (140 ms): Reconnection attempt 3
[19628 ms] Port forwarding connection from 50844 > 43507 > 44587 in the container.
[19635 ms] Start: Run in container: /root/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node -e 
[19640 ms] Port forwarding process for 50844 > 43507 > 44587 in the container:

This log was recorded on an ubuntu 22:04 host. I tested the same container on an ubuntu 20:04 host with the same version of vscode(1.67.2) and remote-containers(0.234.0) and everything just ran fine. What differs is the podman installation: 3.4.2 kubic packages on ubuntu 20.04 and 3.4.4 from official repos on ubuntu 22.04.
So maybe this is some host specific config. Podman runs rootless on both hosts. Please reopen

@chrmarti
Copy link
Contributor

chrmarti commented Jun 7, 2022

@RaananHadar Are you seeing this with Podman?

@chrmarti chrmarti reopened this Jun 7, 2022
@github-actions
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@butjo
Copy link

butjo commented Jun 15, 2022

Seeing the same error on another ubuntu 22:04 host with vscode 1.68.0 and remote-containers 0.238.2 and podman 3.4.4. Using docker instead of podman fixes the problem. Unfortunately i have currently no time to dig deeper into this. In the long term i would prefer to use podman

@RaananHadar
Copy link
Author

Sorry for my lack of availability. Had some personal matters. I saw this problem with docker and not podman. I can try to replicate this on podman if that's of interest.

@chrmarti
Copy link
Contributor

Could you attach your devcontainer.json and Dockerfile (and Docker Compose file if you use that)?

@chrmarti chrmarti reopened this Jun 17, 2022
@butjo
Copy link

butjo commented Jun 17, 2022

I use the following:

{
	"name": "Existing Dockerfile",
	"context": "..",
	"dockerFile": "../Dockerfile",
	"postCreateCommand": "git config --global --add safe.directory /workspaces/serialtool",
	"customizations": {
		"vscode": {
			"extensions": [
				"ms-vscode.cpptools-themes",
				"twxs.cmake",
				"ms-vscode.cmake-tools",
				"jeff-hykin.better-cpp-syntax",
				"ms-vscode.cpptools",
				"matepek.vscode-catch2-test-adapter",
				"jbenden.c-cpp-flylint"
			]
		}
	},
	"mounts": [
		"source=/etc/ssl/certs,target=/etc/ssl/certs,type=bind,readonly",
		"source=${localWorkspaceFolder}/.home,target=/root,type=bind"
	]
}
# syntax=docker/dockerfile:1.2

FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install \
    git \
    wget \
    unzip \
    ca-certificates \
    nano \
    tar \
    gcc-12 \
    g++-12 \
    googletest \
    google-mock \
    libboost-all-dev \
    cmake \
    cppcheck \
    flawfinder \
    clang-format \
    clang-tidy \
    curl \
    gdb \
    libssl-dev

ENV CC=/usr/bin/gcc-12
ENV CXX=/usr/bin/g++-12
WORKDIR /
RUN mkdir -p /tools && \
    cd tools && \
    git clone https://github.com/SergiusTheBest/plog.git && \
    cd plog && \
    git checkout 1.1.8 && \
    mkdir -p build && \
    cmake . -DPLOG_BUILD_SAMPLES:booloean=false && \
    cmake --build . && \
    cmake --install . 

Pretty standard nothing special

@mhoad
Copy link

mhoad commented Jun 17, 2022

Also reporting a similar issue here on a fresh Ubuntu 22:04 machine and default sudo apt install podman installation.

When trying to run a rootless devcontainer with the following devcontainer.json settings

{
	"name": "Node.js & TypeScript",
	"build": {
		"dockerfile": "Dockerfile",
		"args": { 
			"VARIANT": "18-buster"
		}
	},
	"customizations": {
		"vscode": {
			"extensions": [
				"dbaeumer.vscode-eslint"
			]
		}
	},
	"remoteUser": "node",
	"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
	"workspaceFolder": "/workspace",

	"runArgs": ["--userns=keep-id"],
	"containerUser": "node"
}

I get a crash loop that produces the following failure in the logs:

[27974 ms] Start: Reconnection attempt 4
[27974 ms] Start: Run: podman inspect --type container 1ceab2f80e91bd2598662176d3ead3e968fc1ab8ea70fb84df9d75aedd987102
[28167 ms] Port forwarding connection from 36344 > 35307 > 35307 in the container.
[28167 ms] Start: Run in container: /home/node/.vscode-server/bin/30d9c6cd9483b2cc586687151bcbcd635f373630/node -e 
[28353 ms] Port forwarding 36344 > 35307 > 35307 stderr: Connection established
[28368 ms] [10:34:51] [127.0.0.1][42c49301][ManagementConnection] The client has reconnected.
[33399 ms] Port forwarding 36344 > 35307 > 35307 stderr: Error: timed out waiting for file /home/user/.local/share/containers/storage/overlay-containers/1ceab2f80e91bd2598662176d3ead3e968fc1ab8ea70fb84df9d75aedd987102/userdata/ce7150922540d0bb38fc33241979057d8ecc203b57329e10810612993d6f7101/exit/1ceab2f80e91bd2598662176d3ead3e968fc1ab8ea70fb84df9d75aedd987102: internal libpod error
[33403 ms] Port forwarding 36344 > 35307 > 35307 terminated with code 255 and signal null.
[33404 ms] Port forwarding 36344 > 35307 > 35307: Local close

@RaananHadar
Copy link
Author

RaananHadar commented Jun 20, 2022

As some time has passed since opening the issue, I tried testing this with podman and removing docker desktop but i've also updated everything to the latest versions of vscode and the remote containers extension and even kubectl (which might had a timeout with port forwarding). So i'm actually happy to note that now everything seems to work fine! I will test this again with the latest versions of vscode, remote containers and docker desktop instead of podman just in case and once I update on this further I think we can move forward on closing this if we see that this is applicable to all users.

@RaananHadar
Copy link
Author

After checking this further, things seem to be working now even with Docker and not just podman (Please note that i've made special care that podman or docker are not installed at the same time on my system while testing this and the prior test). I've updated both vscode to version 1.68.1, remote containers to version 0.238.2, kubectl and docker desktop to the latest version. I am fine with closing this issue unless other users believe it should stay open for any reason i've missed.

@mhoad
Copy link

mhoad commented Jun 20, 2022

It continues to not work for me. However, I’ve noticed that it doesn’t seem to happen consistently, sometimes it will just go through the loop I described a number of times before working but even once it has established the connection properly it will intermittently need to reconnect which can take up to 20 seconds each time.

Using the latest version of podman, VSCode and the remote containers plug-in on an otherwise fresh Ubuntu 22.04 install so something is still not right here.

@butjo
Copy link

butjo commented Jul 9, 2022

Short update: error still exists on ubuntu22:04, vscode 1.69.0, remote containers 0.241.3, podman 3.4.4

@jeremyn
Copy link

jeremyn commented Aug 30, 2022

I've also been getting the problem @mhoad described in #6685 (comment), using VS Code on an Ubuntu 22.04 host with podman.

I want to point out that there seem to be multiple problems described in this issue and the one that I'm getting is this one, mentioned by @mhoad:

[33399 ms] Port forwarding 36344 > 35307 > 35307 stderr: Error: timed out waiting for file /home/user/.local/share/containers/storage/overlay-containers/1ceab2f80e91bd2598662176d3ead3e968fc1ab8ea70fb84df9d75aedd987102/userdata/ce7150922540d0bb38fc33241979057d8ecc203b57329e10810612993d6f7101/exit/1ceab2f80e91bd2598662176d3ead3e968fc1ab8ea70fb84df9d75aedd987102: internal libpod error

That is, a time out trying to read a storage overlay file resulting in an internal libpod error. Other errors in this issue which are not the same are the Unable to use a TTY error @RaananHadar first mentioned, then later a Remote close error @NotoriousPyro mentioned. The first mention of the overlay internal libpod error is from @butjo at #6685 (comment).

It's very irritating: it's a gamble when I start VS Code and a container whether it will just cycle through reconnection attempts forever, or try a bunch of times and then work, or work right away. If it tries forever I shut down VS Code and try again until it works.

@chrmarti Should we create another issue to get proper attention on the internal libpod error error I, @butjo and @mhoad are getting? Particularly since @RaananHadar 's TTY problem is gone.

@NotoriousPyro
Copy link

NotoriousPyro commented Sep 6, 2022

This is still an issue.

I upgraded to Fedora 36 and part of the process is to update all installed packages, which included code.

After that, code was broken again.

So, to fix it I installed remote containers 0.209.6 and then closed VS code, then I ran:

sudo yum -y remove code
sudo yum -y install code-1.63.1-1639448925.el7.x86_64

code-1.63.0-1638855621.el7.x86_64 also works fine...

And VOILA 🧙 like magic, it is back working again.

FWIW, the container's config is this:

{
  "workspaceMount": "/home/craig.crawford/mycodefolder",
  "workspaceFolder": "/home/craig.crawford/mycodefolder",
  "remoteUser": "${localEnv:USER}",
  "settings": {
    "terminal.integrated.shell.linux": "/usr/sbin/capsh",
    "terminal.integrated.shellArgs.linux": [
      "--caps=",
      "--",
      "-c",
      "exec \"$@\"",
      "/bin/sh",
      "${localEnv:SHELL}",
      "-l"
    ]
  },
  "remoteEnv": {
    "COLORTERM": "${localEnv:COLORTERM}",
    "DBUS_SESSION_BUS_ADDRESS": "${localEnv:DBUS_SESSION_BUS_ADDRESS}",
    "DESKTOP_SESSION": "${localEnv:DESKTOP_SESSION}",
    "DISPLAY": "${localEnv:DISPLAY}",
    "LANG": "${localEnv:LANG}",
    "SHELL": "${localEnv:SHELL}",
    "SSH_AUTH_SOCK": "${localEnv:SSH_AUTH_SOCK}",
    "TERM": "${localEnv:TERM}",
    "VTE_VERSION": "${localEnv:VTE_VERSION}",
    "XDG_CURRENT_DESKTOP": "${localEnv:XDG_CURRENT_DESKTOP}",
    "XDG_DATA_DIRS": "${localEnv:XDG_DATA_DIRS}",
    "XDG_MENU_PREFIX": "${localEnv:XDG_MENU_PREFIX}",
    "XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}",
    "XDG_SESSION_DESKTOP": "${localEnv:XDG_SESSION_DESKTOP}",
    "XDG_SESSION_TYPE": "${localEnv:XDG_SESSION_TYPE}"
  },
  "extensions": [
    "ms-python.python",
    "ms-python.vscode-pylance",
    "golang.go"
  ]
}

@NotoriousPyro
Copy link

That is, a time out trying to read a storage overlay file resulting in an internal libpod error. Other errors in this issue which are not the same are the Unable to use a TTY error @RaananHadar first mentioned, then later a Remote close error @NotoriousPyro mentioned. The first mention of the overlay internal libpod error is from @butjo at #6685 (comment).

If you install VS Code 1.63.1 and remote containers 0.209.6 does it start working? If so, this would indicate the issue is probably related but the error may be slightly different.

@jeremyn
Copy link

jeremyn commented Sep 7, 2022

@NotoriousPyro That's a good idea but I wouldn't stick with v1.63.1, it would just be for testing. So I'll wait for feedback from the VS Code team before doing anything like that. I hope they can make progress without needing me to test old versions.

@chrmarti
Copy link
Contributor

chrmarti commented Sep 9, 2022

@chrmarti Should we create another issue to get proper attention on the internal libpod error error I, @butjo and @mhoad are getting? Particularly since @RaananHadar 's TTY problem is gone.

@jeremyn Yes please!

@jeremyn
Copy link

jeremyn commented Sep 9, 2022

@chrmarti I've created #7175 for the internal libpod error/reconnection problem.

@liweijian
Copy link

Same error when tried to run https://github.com/darklang/dark

[21871 ms] Port forwarding 64523 > 45815 > 45815 stderr: Remote close
[21901 ms] Port forwarding 64523 > 45815 > 45815 terminated with code 0 and signal null.
[22067 ms] Port forwarding 64524 > 45815 > 45815 stderr: Remote close
[22095 ms] Port forwarding 64524 > 45815 > 45815 terminated with code 0 and signal null.
[23161 ms] Port forwarding 64525 > 45815 > 45815 stderr: Remote close
[23184 ms] Port forwarding 64525 > 45815 > 45815 terminated with code 0 and signal null.

@IMS94
Copy link

IMS94 commented Nov 27, 2022

I'm getting a similar error when using https://github.com/frappe/frappe_docker dev container. Dev containers used to work for this project before.

[4064 ms] Port forwarding connection from 49362 > 42391 > 42391 in the container.
[4064 ms] Start: Run in container: /home/frappe/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e 
[4174 ms] Container server terminated (code: 137, signal: null).
[4289 ms] Port forwarding 49362 > 42391 > 42391 stderr: Error: connect ECONNREFUSED 127.0.0.1:42391
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
[4290 ms] Port forwarding 49362 > 42391 > 42391 stderr: Remote close with error
[4299 ms] Port forwarding 49362 > 42391 > 42391: Local close
[4300 ms] Port forwarding 49362 > 42391 > 42391 terminated by extension (closed) with code 1 and signal null.
[4309 ms] Port forwarding connection from 49374 > 42391 > 42391 in the container.
[4310 ms] Start: Run in container: /home/frappe/.vscode-server/bin/6261075646f055b99068d3688932416f2346dd3b/node -e 
[4438 ms] Port forwarding 49374 > 42391 > 42391 stderr: Error: connect ECONNREFUSED 127.0.0.1:42391
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
[4439 ms] Port forwarding 49374 > 42391 > 42391 stderr: Remote close with error
[4444 ms] Port forwarding 49374 > 42391 > 42391 terminated with code 1 and signal null.
[4444 ms] Port forwarding 49374 > 42391 > 42391: Local close

VS Code version info:

Version: 1.73.1
Commit: 6261075646f055b99068d3688932416f2346dd3b
Date: 2022-11-09T03:54:53.913Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-53-generic snap
Sandboxed: No

@chrmarti
Copy link
Contributor

chrmarti commented Dec 2, 2022

Closing since the original issues when attaching to a container in k8s is resolved (#6685 (comment)).

The libpod issue is tracked as #7175.

If you are seeing other problems, please open a new issue, so we can investigate separately. Thanks.

@chrmarti chrmarti closed this as completed Dec 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

9 participants