vscode: Source control stuck at "Scanning workspace for git repositories" when connecting to remote maching using Remote SSH

Type: Bug

When connected to remote linux machine(Ubuntu) via Remote SSH, none of the extensions are loading. On some investigation, it turns out that there is some issue with git plugin on remote machine(vscode-server). Because when using VSCode locally on remote machine, al works fine.

There is one workaround to overcome this issue. I searched for builtin git extension in exensions section(@builtin git), disabled it and reloaded window(>Developer: Reload Window). This time, all other extensions loaded except git. After this, I enabled the builtin git extension and it started working. It works only in current window. Stops working again when window is reloaded.

Another observatoin is that after “Reload Window” is done for n number of times, it starts working(no specific value for n). Even this way, works only in current connection. Stops working if reloaded once again.

VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:23:45.584Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No Remote OS version: Linux x64 5.15.0-1029-azure

System Info
Item Value
CPUs 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz (8 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.71GB (1.12GB free)
Process Argv –crash-reporter-id 09300a96-753b-461f-a161-961afbc08118
Screen Reader no
VM 0%
Item Value
Remote SSH: 10.95.222.242
OS Linux x64 5.15.0-1029-azure
CPUs Intel® Xeon® Platinum 8370C CPU @ 2.80GHz (8 x 2800)
Memory (System) 31.35GB (24.78GB free)
VM 0%
Extensions (9)
Extension Author (truncated) Version
better-cpp-syntax jef 1.17.2
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.275.0
remote-ssh ms- 0.96.0
remote-ssh-edit ms- 0.84.0
vscode-remote-extensionpack ms- 0.23.0
remote-explorer ms- 0.2.0
gitlens eam 13.2.0
copilot Git 1.71.8269

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1:30587005
282f8724:30602487
pyind779cf:30657577
f6dab269:30613381
pythonsymbol12:30657548
a9j8j154:30646983
vscsbc:30628655

Logs from remote machine(vscode-server) when issue is seen:

.vscode-server/data/logs/20230204T141650
├── exthost1
│   └── exthost.log
├── ptyhost.log
└── remoteagent.log
exthost1/exthost.log
2023-02-04 14:19:10.601 [info] Extension host with pid 4016869 started
2023-02-04 14:19:10.606 [error] Error: EEXIST: file already exists, open '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock'
2023-02-04 14:19:10.642 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-02-04 14:19:10.669 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': The pid 3995591 appears to be gone.
2023-02-04 14:19:10.670 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Deleting a stale lock.
2023-02-04 14:19:10.827 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Lock acquired.
ptyhost.log
2023-02-04 14:17:05.556 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:05.935 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:06.183 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:06.425 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
remoteagent.log
2023-02-04 14:16:51.156 [info] 

2023-02-04 14:16:51.243 [info] Extension host agent started. 2023-02-04 14:16:54.945 [info] [127.0.0.1][12135c79][ManagementConnection] New connection established. 2023-02-04 14:16:55.935 [info] [127.0.0.1][7387ce4d][ExtensionHostConnection] New connection established. 2023-02-04 14:16:55.960 [info] [127.0.0.1][7387ce4d][ExtensionHostConnection] <4016869> Launched Extension Host Process. 2023-02-04 14:21:51.243 [info] New EH opened, aborting shutdown

Logs from remote machine(vscode-server) when extensions loaded fine(after 5-6 vscode window reloads):

.vscode-server/data/logs/20230204T141650
├── exthost1
│   └── exthost.log
├── exthost2
│   └── exthost.log
├── exthost7
│   ├── exthost.log
│   ├── output_logging_20230204T172950
│   │   ├── 1-GitHub Copilot.log
│   │   └── 2-GitLens.log
│   └── vscode.git
│       └── Git.log
├── ptyhost.log
└── remoteagent.log
exthost1/exthost.log
2023-02-04 14:19:10.601 [info] Extension host with pid 4016869 started
2023-02-04 14:19:10.606 [error] Error: EEXIST: file already exists, open '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock'
2023-02-04 14:19:10.642 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-02-04 14:19:10.669 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': The pid 3995591 appears to be gone.
2023-02-04 14:19:10.670 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Deleting a stale lock.
2023-02-04 14:19:10.827 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Lock acquired.
2023-02-04 14:28:09.808 [info] Extension host terminating: renderer disconnected for too long (2)
2023-02-04 14:28:09.810 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Marking the lockfile as scheduled to be released in 6000 ms.
2023-02-04 14:28:09.811 [info] Extension host with pid 4016869 exiting with code 0
exthost2/exthost.log
2023-02-04 14:25:24.391 [info] Extension host with pid 4051067 started
2023-02-04 14:25:24.391 [error] Error: EEXIST: file already exists, open '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock'
2023-02-04 14:25:24.418 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-02-04 14:25:24.429 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': The lock does not look stale, elapsed: 479 ms, giving up.
2023-02-04 14:25:24.539 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91-1/vscode.lock': Lock acquired.
2023-02-04 16:03:13.962 [error] Error: read ECONNRESET
        at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
2023-02-04 17:32:16.624 [info] Extension host terminating: renderer disconnected for too long (2)
2023-02-04 17:32:16.624 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91-1/vscode.lock': Marking the lockfile as scheduled to be released in 6000 ms.
2023-02-04 17:32:16.626 [info] Extension host with pid 4051067 exiting with code 0
exthost7/exthost.log
2023-02-04 17:29:50.235 [info] Extension host with pid 897596 started
2023-02-04 17:29:50.286 [info] Lock '/home/snisarulhaq/.vscode-server/data/User/workspaceStorage/f18831007d08651df4ae77f77373bc91/vscode.lock': Lock acquired.
2023-02-04 17:29:50.511 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-02-04 17:29:50.512 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2023-02-04 17:29:50.902 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2023-02-04 17:29:50.902 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2023-02-04 17:29:51.390 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2023-02-04 17:29:51.391 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2023-02-04 17:29:51.391 [info] ExtensionService#_doActivateExtension eamodio.gitlens, startup: false, activationEvent: 'onStartupFinished'
2023-02-04 17:29:51.392 [info] ExtensionService#_doActivateExtension GitHub.copilot, startup: false, activationEvent: 'onStartupFinished'
2023-02-04 17:29:51.392 [info] Eager extensions activated
ptyhost.log
2023-02-04 14:17:05.556 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:05.935 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:06.183 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 14:17:06.425 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 14:23:13.335 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 14:23:13.662 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 14:23:13.930 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 14:23:14.197 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:27:38.535 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 17:27:38.792 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 17:27:39.039 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:27:39.321 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:23.863 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:24.120 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:24.363 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:24.615 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:54.733 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:54.996 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:55.257 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:28:55.506 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:17.333 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:17.575 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:17.831 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:18.102 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:47.232 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata:true' -O - http://169.254.169.254/metadata/instance?api-version=2019-03-11\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata:true' http://169.254.169.254/metadata/instance?api-version=2019-03-11\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:47.470 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/latest/meta-data/instance-id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/latest/meta-data/instance-id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:47.733 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q  -O - http://169.254.169.254/metadata/v1/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s  http://169.254.169.254/metadata/v1/id\n\tfi\nfi\nexit 0"]
2023-02-04 17:29:47.967 [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ["-c","wget --version > /dev/null\nif [ $? -eq 0 ]\nthen\n\twget --connect-timeout=7 --tries=1 --dns-timeout=7 -q --header='Metadata-Flavor:Google' -O - http://metadata.google.internal/computeMetadata/v1/instance/id\nelse\n\tcurl --version > /dev/null\n\tif [ $? -eq 0 ]\n\tthen\n\t\tcurl --connect-timeout 7 -s --header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id\n\tfi\nfi\nexit 0"]
remoteagent.log
2023-02-04 14:16:51.156 [info] 

2023-02-04 14:16:51.243 [info] Extension host agent started. 2023-02-04 14:16:54.945 [info] [127.0.0.1][12135c79][ManagementConnection] New connection established. 2023-02-04 14:16:55.935 [info] [127.0.0.1][7387ce4d][ExtensionHostConnection] New connection established. 2023-02-04 14:16:55.960 [info] [127.0.0.1][7387ce4d][ExtensionHostConnection] <4016869> Launched Extension Host Process. 2023-02-04 14:21:51.243 [info] New EH opened, aborting shutdown 2023-02-04 14:23:01.137 [info] [127.0.0.1][12135c79][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. 2023-02-04 14:23:09.762 [info] [127.0.0.1][a330da7b][ManagementConnection] New connection established. 2023-02-04 14:23:10.388 [info] [127.0.0.1][5ccc66dc][ExtensionHostConnection] New connection established. 2023-02-04 14:23:10.419 [info] [127.0.0.1][5ccc66dc][ExtensionHostConnection] <4051067> Launched Extension Host Process. 2023-02-04 14:28:09.884 [info] [127.0.0.1][7387ce4d][ExtensionHostConnection] <4016869> Extension Host Process exited with code: 0, signal: null. 2023-02-04 17:27:16.404 [info] [127.0.0.1][a330da7b][ManagementConnection] The client has reconnected. 2023-02-04 17:27:17.766 [error] CodeExpectedError: Could not find pty on pty host at S.L (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:27:6839) at S.updateIcon (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:27:2680) at Object.call (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:17:5043) at r.s (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:15:5412) at r.q (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:15:4915) at /home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:15:4326 at invoke (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:11:145) at E.deliver (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:11:2033) at c.fire (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:11:1671) at process.F (/home/snisarulhaq/.vscode-server/bin/e2816fe719a4026ffa1ee0189dc89bdfdbafb164/out/vs/platform/terminal/node/ptyHostMain.js:9:20881) at process.emit (node:events:526:28) at emit (node:internal/child_process:938:14) at processTicksAndRejections (node:internal/process/task_queues:84:21) . . . 2023-02-04 17:27:27.867 [info] [127.0.0.1][a330da7b][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. 2023-02-04 17:27:35.642 [info] [127.0.0.1][96529ae2][ManagementConnection] New connection established. 2023-02-04 17:27:36.186 [info] [127.0.0.1][b7483bc3][ExtensionHostConnection] New connection established. 2023-02-04 17:27:36.229 [info] [127.0.0.1][b7483bc3][ExtensionHostConnection] <885201> Launched Extension Host Process. 2023-02-04 17:28:08.088 [info] [127.0.0.1][96529ae2][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. 2023-02-04 17:28:16.234 [info] [127.0.0.1][7249894e][ManagementConnection] New connection established. 2023-02-04 17:28:16.788 [info] [127.0.0.1][92e4c06b][ExtensionHostConnection] New connection established. 2023-02-04 17:28:16.803 [info] [127.0.0.1][92e4c06b][ExtensionHostConnection] <888968> Launched Extension Host Process. . . . 2023-02-04 17:28:44.665 [info] [127.0.0.1][7249894e][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. 2023-02-04 17:28:52.168 [info] [127.0.0.1][29c31e55][ManagementConnection] New connection established. 2023-02-04 17:28:52.709 [info] [127.0.0.1][b5247d07][ExtensionHostConnection] New connection established. 2023-02-04 17:28:52.739 [info] [127.0.0.1][b5247d07][ExtensionHostConnection] <892386> Launched Extension Host Process. 2023-02-04 17:29:14.682 [info] [127.0.0.1][ec04747e][ManagementConnection] New connection established. 2023-02-04 17:29:15.186 [info] [127.0.0.1][be4d23c3][ExtensionHostConnection] New connection established. 2023-02-04 17:29:15.210 [info] [127.0.0.1][be4d23c3][ExtensionHostConnection] <894643> Launched Extension Host Process. . . .

2023-02-04 17:29:37.227 [info] [127.0.0.1][ec04747e][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed. 2023-02-04 17:29:44.668 [info] [127.0.0.1][654fc6ee][ManagementConnection] New connection established. 2023-02-04 17:29:45.224 [info] [127.0.0.1][a40d2b0e][ExtensionHostConnection] New connection established. 2023-02-04 17:29:45.239 [info] [127.0.0.1][a40d2b0e][ExtensionHostConnection] <897596> Launched Extension Host Process. 2023-02-04 17:32:16.701 [info] [127.0.0.1][5ccc66dc][ExtensionHostConnection] <4051067> Extension Host Process exited with code: 0, signal: null.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@clown-helang @raysuelzer Please open separate issues.

@nisarul and I spoke offline and we could trace the problem down to their $HOME folder on the remote machine being a remote volume. That would end up causing severe performance problems for the vscode server, where it wasn’t able to start up properly because the filesystem was super slow. The vscode server gets installed by default in the $HOME folder when using SSH. The solution for @nisarul was to use remote.SSH.serverInstallPath and to point to a location which was a local disk for that particular machine.

I do see git extension enabled. image But I do not see any logs. Infact I don’t see logs for any other installed extension. image