Good morning!
From the time I installed Truenas in Sept, I’ve used 24.04.2, 24.04.2.1, 24.10-BETA.1, 24.10-$C.2 24.10.0, 24.10.0.2 (Then rolled back due to NVIDIA issue) and now I’m on 24.10.1. On every version but 24.10.1 I’ve been able to connect to the NAS via VSCode’s remote connection to manage my docker compose yaml file. However, now that I’m on 24.10.1 I’m getting connection errors. There was a bug report HERE, but it was closed in 8 minutes as not being a TrueNAS bug/issue…
Is anyone else experiencing this same thing? When I roll back to 24.10.0 and reboot, I can connect via VSCode without issue. Toggling between 24.10.0 and 24.10.1 recreates the issue 100% of the time.
I checked the release notes for 24.10.1 and didn’t see any mention of this issue under the Known Issues either.
Below is the sanitized output of the errors in VSCode when trying to connect to the NAS on 24.10.1
[10:13:26.555] Log Level: 2
[10:13:26.566] SSH Resolver called for "ssh-remote+10.10.50.5", attempt 1
[10:13:26.567] remote.SSH.useLocalServer = false
[10:13:26.567] remote.SSH.useExecServer = true
[10:13:26.568] remote.SSH.showLoginTerminal = false
[10:13:26.568] remote.SSH.remotePlatform = {"10.10.90.9":"linux","10.10.1.69":"linux","10.10.90.82":"linux","10.10.130.122":"linux","10.10.90.10":"linux","10.10.90.8":"linux","10.10.50.5":"linux"}
[10:13:26.568] remote.SSH.path =
[10:13:26.568] remote.SSH.configFile =
[10:13:26.568] remote.SSH.useFlock = true
[10:13:26.568] remote.SSH.lockfilesInTmp = false
[10:13:26.568] remote.SSH.localServerDownload = auto
[10:13:26.568] remote.SSH.remoteServerListenOnSocket = false
[10:13:26.568] remote.SSH.defaultExtensions = []
[10:13:26.568] remote.SSH.loglevel = 2
[10:13:26.568] remote.SSH.enableDynamicForwarding = true
[10:13:26.568] remote.SSH.enableRemoteCommand = false
[10:13:26.568] remote.SSH.serverPickPortsFromRange = {}
[10:13:26.568] remote.SSH.serverInstallPath = {}
[10:13:26.568] remote.SSH.permitPtyAllocation = false
[10:13:26.568] remote.SSH.preferredLocalPortRange = undefined
[10:13:26.568] remote.SSH.useCurlAndWgetConfigurationFiles = false
[10:13:26.568] remote.SSH.experimental.chat = true
[10:13:26.568] remote.SSH.experimental.enhancedSessionLogs = true
[10:13:26.572] VS Code version: 1.96.2
[10:13:26.572] Remote-SSH version: remote-ssh@0.116.1
[10:13:26.572] win32 x64
[10:13:26.574] SSH Resolver called for host: 10.10.50.5
[10:13:26.574] Setting up SSH remote "10.10.50.5"
[10:13:26.578] Using commit id "fabdb6a30b49f79a7aba0f2ad9df9b399473380f" and quality "stable" for server
[10:13:26.580] Script variables:
{
"ExitCode.0": "OK",
"ExitCode.64": "LinuxPrereqs",
"ExitCode.65": "ProxyAuthenticationRequired",
"ExitCode.128": "UnparsableOutput",
"ExitCode.129": "EmptyOutput",
"ExitCode.131": "UnhandledResolverExitCode",
"ExitCode.132": "OfflineError",
"ExitCode.133": "SshInstall",
"ExitCode.134": "FindLocalPort",
"ExitCode.135": "Timeout",
"ExitCode.136": "ExhaustedRetries",
"ExitCode.137": "PermissionDenied",
"ExitCode.138": "MitmPortForwardingDisabled",
"ExitCode.139": "Canceled",
"ExitCode.140": "BadLocalDownloadRequest",
"ExitCode.141": "LocalDownloadFailed",
"ExitCode.142": "LocalLockTimeout",
"ExitCode.143": "NoBash",
"ExitCode.144": "InvalidHostName",
"ExitCode.145": "BadInstallScriptResult",
"ExitCode.146": "ShellRequestFailedOnChannel",
"ExitCode.147": "InvalidPortRange",
"ExitCode.148": "SendDisconnectBrokenPipe",
"ExitCode.149": "LocalServerCrashed",
"ExitCode.150": "NoFreePortInRange",
"ExitCode.151": "InvalidCustomServerPath",
"ExitCode.192": "AlreadyInProgress",
"ExitCode.193": "ServerDownloadFailed",
"ExitCode.194": "NoDownloaderAvailable",
"ExitCode.195": "NoDownloaderAvailableForStatusCheck",
"ExitCode.196": "UnsupportedArch",
"ExitCode.197": "StatusCheckFailed",
"ExitCode.198": "NeedInsidersArch",
"ExitCode.199": "ServerTransferFailed",
"ExitCode.200": "ServerFailedToStart",
"ExitCode.201": "NeedInsidersWindows",
"ExitCode.202": "CreateInstallDirFailed",
"ExitCode.203": "UnsupportedPlatform",
"ExitCode.204": "ServerTerminatedCVE20201416",
"ExitCode.205": "UnpackFailed",
"ExitCode.206": "ChangeDirFailed",
"ExitCode.1023": "UnclassifiedError",
"ExitCode.OK": "0",
"ExitCode.LinuxPrereqs": "64",
"ExitCode.ProxyAuthenticationRequired": "65",
"ExitCode.UnparsableOutput": "128",
"ExitCode.EmptyOutput": "129",
"ExitCode.UnhandledResolverExitCode": "131",
"ExitCode.OfflineError": "132",
"ExitCode.SshInstall": "133",
"ExitCode.FindLocalPort": "134",
"ExitCode.Timeout": "135",
"ExitCode.ExhaustedRetries": "136",
"ExitCode.PermissionDenied": "137",
"ExitCode.MitmPortForwardingDisabled": "138",
"ExitCode.Canceled": "139",
"ExitCode.BadLocalDownloadRequest": "140",
"ExitCode.LocalDownloadFailed": "141",
"ExitCode.LocalLockTimeout": "142",
"ExitCode.NoBash": "143",
"ExitCode.InvalidHostName": "144",
"ExitCode.BadInstallScriptResult": "145",
"ExitCode.ShellRequestFailedOnChannel": "146",
"ExitCode.InvalidPortRange": "147",
"ExitCode.SendDisconnectBrokenPipe": "148",
"ExitCode.LocalServerCrashed": "149",
"ExitCode.NoFreePortInRange": "150",
"ExitCode.InvalidCustomServerPath": "151",
"ExitCode.AlreadyInProgress": "192",
"ExitCode.ServerDownloadFailed": "193",
"ExitCode.NoDownloaderAvailable": "194",
"ExitCode.NoDownloaderAvailableForStatusCheck": "195",
"ExitCode.UnsupportedArch": "196",
"ExitCode.StatusCheckFailed": "197",
"ExitCode.NeedInsidersArch": "198",
"ExitCode.ServerTransferFailed": "199",
"ExitCode.ServerFailedToStart": "200",
"ExitCode.NeedInsidersWindows": "201",
"ExitCode.CreateInstallDirFailed": "202",
"ExitCode.UnsupportedPlatform": "203",
"ExitCode.ServerTerminatedCVE20201416": "204",
"ExitCode.UnpackFailed": "205",
"ExitCode.ChangeDirFailed": "206",
"ExitCode.UnclassifiedError": "1023",
"InstallUnpackCode.Success": "success",
"InstallUnpackCode.Error": "error",
"InstallUnpackCode.MissingFiles": "missingFiles",
"uuid": "d1d8e26c294d",
"startMarker": "d1d8e26c294d: running",
"commitId": "fabdb6a30b49f79a7aba0f2ad9df9b399473380f",
"quality": "stable",
"token": "1a1aaaaa-1111-1a11-11a1-11a1aa1aa1a1",
"vscodeAgentFolder": "$HOME/.vscode-server",
"allowClientDownload": "1",
"forceClientDownload": "0",
"cliNameInArchive": "code",
"ignoreWgetConfigFlag": " --no-config ",
"ignoreCurlConfigFlag": " --disable ",
"wgetTriesSegment": "--tries=1",
"listenArgs": "--on-host=127.0.0.1 --on-port",
"getDownloadServerStartTrigger": "d1d8e26c294d:trigger_server_download",
"getDownloadServerEndTrigger": "d1d8e26c294d:trigger_server_download_end",
"getProgressDownloading": "d1d8e26c294d%%1%%",
"getProgressInstalling": "d1d8e26c294d%%2%%",
"printVars": "echo \"SSH_AUTH_SOCK==$SSH_AUTH_SOCK==\"\necho \"DISPLAY==$DISPLAY==\""
}
[10:13:26.581] Install and start server if needed
[10:13:26.583] Checking ssh with "C:\Program Files\Eclipse Adoptium\jre-11.0.25.9-hotspot\bin\ssh.exe -V"
[10:13:26.584] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jre-11.0.25.9-hotspot\bin\ssh.exe ENOENT
[10:13:26.584] Checking ssh with "C:\Program Files\Eclipse Adoptium\jre-21.0.5.11-hotspot\bin\ssh.exe -V"
[10:13:26.584] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jre-21.0.5.11-hotspot\bin\ssh.exe ENOENT
[10:13:26.585] Checking ssh with "C:\Program Files\Eclipse Adoptium\jre-17.0.13.11-hotspot\bin\ssh.exe -V"
[10:13:26.585] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jre-17.0.13.11-hotspot\bin\ssh.exe ENOENT
[10:13:26.585] Checking ssh with "C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe -V"
[10:13:26.585] Got error from ssh: spawn C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[10:13:26.586] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe -V"
[10:13:26.586] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe ENOENT
[10:13:26.586] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V"
[10:13:26.586] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[10:13:26.586] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[10:13:26.587] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[10:13:26.587] Checking ssh with "C:\Windows\ssh.exe -V"
[10:13:26.587] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[10:13:26.587] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[10:13:26.588] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[10:13:26.588] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:13:26.588] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:13:26.588] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[10:13:26.620] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[10:13:26.622] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 49415 "10.10.50.5" sh
[10:13:26.623] Generated SSH command: 'type "C:\Users\USER\AppData\Local\Temp\vscode-linux-multi-line-command-10.10.50.5-161700930.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 49415 "10.10.50.5" sh'
[10:13:26.623] Using connect timeout of 17 seconds
[10:13:26.624] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[10:13:26.808] >
[10:13:26.808] Got some output, clearing connection timeout
[10:13:27.933] > d1d8e26c294d: running
> Script executing under PID: 25447
[10:13:27.948] > Found existing installation at /home/admin/.vscode-server...
> Starting VS Code CLI...
> printenv:
> MAIL=/var/mail/admin
> USER=admin
> SSH_CLIENT=10.10.1.81 49416 22
> SHLVL=0
> HOME=/home/admin
> OLDPWD=/home/admin
> LOGNAME=admin
> _=/usr/bin/sh
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
> SHELL=/usr/bin/zsh
> LC_ALL=C.UTF-8
> PWD=/home/admin
> SSH_CONNECTION=10.10.1.81 49416 10.10.50.5 22
> Removing old logfile at /home/admin/.vscode-server/.cli.fabdb6a30b49f79a7aba0f2ad9df9b399473380f.log
> Spawned remote CLI: 25467
> Exec server process not found
> sh: 410: kill: No such processsh: 393: /home/admin/.vscode-server/code-fabdb6a30b49f79a7aba0f2ad9df9b399473380f: Permission denied
> d1d8e26c294d: start
> listeningOn====
> osReleaseId==debian==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/tmp==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> serverStartTime==5==
> execServerToken==1a1aaaaa-1111-1a11-11a1-11a1aa1aa1a1==
> platformDownloadPath==cli-alpine-x64==
> SSH_AUTH_SOCK====
> DISPLAY====
> d1d8e26c294d: end
[10:13:27.948] Received install output:
listeningOn====
osReleaseId==debian==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/tmp==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
serverStartTime==5==
execServerToken==1a1aaaaa-1111-1a11-11a1-11a1aa1aa1a1==
platformDownloadPath==cli-alpine-x64==
SSH_AUTH_SOCK====
DISPLAY====
[10:13:27.949] Failed to parse remote port from server output
[10:13:27.950] Resolver error: Error:
at v.Create (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:696499)
at t.handleInstallOutput (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:694580)
at t.tryInstall (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:812473)
at async c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:771431
at async t.withShowDetailsEvent (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:774668)
at async x (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:768087)
at async t.resolve (c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:772083)
at async c:\Users\USER\.vscode\extensions\ms-vscode-remote.remote-ssh-0.116.1\out\extension.js:2:1055245
[10:13:27.952] ------
[10:13:27.952] No hints found in the recent session.
[10:13:28.025] >