Introduction

備忘録。

コンソールログを見ると、ひたすらサーバー側の vscode-server を更新しようとしているようだったが、どうも同時に同じ環境に複数の Visual Studio Code から接続しようとしたため、更新処理がハングアップした模様。
下記のようなログがひたすら繰り返される。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[18:43:32.286] Server installation process already in progress - waiting and retrying
[18:43:32.319] >
[18:43:33.298] Using SSH config file "C:\Users\XXXXXX\.ssh\vscode\ssh.config"
[18:43:33.299] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 52031 -F "C:\Users\XXXXXX\.ssh\vscode\ssh.config" "MacMini_192.168.1.2" bash
[18:43:33.301] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[18:43:33.748] "install" terminal command done
[18:43:33.749] Install terminal quit with output:
[18:43:34.319] > 59e396e328cd: running
> ]0;C:\WINDOWS\System32\cmd.exe
[18:43:34.320] Got some output, clearing connection timeout
[18:43:34.394] > Acquiring lock on /Users/xxxxxxxxxx/.vscode-server/bin/019f4d1419fbc8219a181fab7892ebccf7ee29a2/vscode-remote-lock.xxxxxxxxxx.019f4d1419fbc8219a181fab7892ebccf7ee29a2
> \ln "/Users/xxxxxxxxxx/.vscode-server/bin/019f4d1419fbc8219a181fab7892ebccf7ee29a2/vscode-remote-lock.xxxxxxxxxx.019f4d1419fbc8219a181fab7892ebccf7ee29a2.target" "/Users/xxxxxxxxxx/.vscode-server/bin/019f4d1419fbc8219a181fab7892ebccf7ee29a2/vscode-remote-lock.xxxxxxxxxx.019f4d1419fbc8219a181fab7892ebccf7ee29a2"
> Installation already in progress...
> If you continue to see this message, you can try toggling the remote.SSH.useFlock setting
> 59e396e328cd: start
> exitCode==24==
> listeningOn====
> osReleaseId==Darwin==
> arch==arm64==
> vscodeArch==arm64==
> bitness==64==
> tmpDir==/tmp==
> platform==macOS==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 59e396e328cd: end
> ln: /Users/xxxxxxxxxx/.vscode-server/bin/019f4d1419fbc8219a181fab7892ebccf7ee29a2/vscode-remote-lock.xxxxxxxxxx.019f4d1419fbc8219a181fab7892ebccf7ee29a2: File exists
[18:43:34.395] Received install output:
exitCode==24==
listeningOn====
osReleaseId==Darwin==
arch==arm64==
vscodeArch==arm64==
bitness==64==
tmpDir==/tmp==
platform==macOS==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====

How to resolve?

  1. サーバーを再起動
  2. rm -Rf .vscode-server

これで解決。本当に一瞬で解決した。