Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode SSH to remote - node: not found

SSH from VSCode (Mac) to a remote host (Raspberry Pi) stopped working a while ago. I have searched the web for solutions, but whatever I did - I was unable to solve the issue.

I tried rm -rf ~/.vscode-server and then connect again - It did not work. Also, I tried setting "remote.SSH.useLocalServer": false which also did not help. Another thing I've tried is to install an older version of the SSH extension in VSCode - it did not help.

Not sure if related, but I have Fig (https://fig.io/) installed on my Mac.

Here's the log from VSCode:

 > Server did not start successfully. Full server log at /home/pi/.vscode-server/.8dfae7a5cd50421d10cd99cb873990460525a898.log >>>
> /home/pi/.vscode-server/bin/8dfae7a5cd50421d10cd99cb873990460525a898/bin/code-server: 12: /home/pi/.vscode-server/bin/8dfae7a5cd50421d10cd99cb873990460525a898/bin/code-server: /home/pi/.vscode-server/bin/8dfae7a5cd50421d10cd99cb873990460525a898/node: not found
> <<< End of server log
> 911ac96db1fc: start
> exitCode==32==
> listeningOn====
> osReleaseId==raspbian==
> arch==aarch64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult==success==
> didLocalDownload==0==
> downloadTime==5371==
> installTime==3172==
> extInstallTime====
> serverStartTime==7728==
> 911ac96db1fc: end
[09:55:56.941] Received install output: 
exitCode==32==
listeningOn====
osReleaseId==raspbian==
arch==aarch64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult==success==
didLocalDownload==0==
downloadTime==5371==
installTime==3172==
extInstallTime====
serverStartTime==7728==

Checking the log I see "node: not found", so I checked the directory and confirmed that indeed the file exists there.

Can someone please assist with troubleshooting steps for this? Thanks ahead.

EDIT: I was able to solve that following https://github.com/microsoft/vscode-remote-release/issues/6388#issuecomment-1050923254 which mentioned to change the arm_64bit to 0. Hope that helps whoever might encounter this.

like image 352
daniel ofir Avatar asked Oct 24 '25 02:10

daniel ofir


1 Answers

Daniel solved his own question:

I was able to solve that following https://github.com/microsoft/vscode-remote-release/issues/6388#issuecomment-1050923254 which mentioned to change the arm_64bit to 0. Hope that helps whoever might encounter this.

However the answer still leaves some guesswork. So here the details which fixed if for me:

  1. Add the new entry arm_64bit=0 to the file /boot/config.txt on the Raspberry.
  2. Remove the existing vscode files using sudo rm -r .vscode*

The next reconnection from VSCode was successful.

like image 108
user3810206 Avatar answered Oct 27 '25 05:10

user3810206



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!