从 VSCode (Mac) 到远程主机 (Raspberry Pi) 的 SSH 不久前停止工作。
我在网上搜索了解决方案,但无论我做什么,我都无法解决问题。
我尝试了 rm -rf ~/.vscode-server ,然后再次连接 - 它不起作用。
另外,我尝试设置 "remote.SSH.useLocalServer": false
这也没有帮助。
我尝试过的另一件事是在 VSCode 中安装旧版本的 SSH 扩展 - 它没有帮助。
不确定是否相关,但我在 Mac 上安装了 Fig (https://fig.io/)。
这是来自 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==
检查日志时我看到“node: not found”,因此我检查了目录并确认该文件确实存在于该目录中。
有人可以协助解决此问题的故障排除步骤吗?
先谢谢了。
编辑:我能够解决以下问题 https://github .com/microsoft/vscode-remote-release/issues/6388#issuecomment-1050923254 其中提到要更改arm_64bit
为 0。
希望对遇到这种情况的人有所帮助。
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.
发布评论
评论(2)
丹尼尔解决了自己的问题:
但是答案仍然留下一些猜测。因此,如果我为我确定的详细信息:
arm_64bit = 0
。sudo rm -r .vscode*
删除现有的VSCODE文件。
Daniel solved his own question:
However the answer still leaves some guesswork. So here the details which fixed if for me:
arm_64bit=0
to the file /boot/config.txt on the Raspberry.sudo rm -r .vscode*
The next reconnection from VSCode was successful.
您可以尝试在服务器上安装此软件包!
或如果libstdc ++。so.6库位于位置/usr/lib/i386-linux-gnu/libstdc++so.sso.6,您可以添加以下行,在您的主目录中
要编辑.bashrc文件,您可以在终端中运行以下命令:
然后,要应用更改,您可以运行以下命令:
然后,,
我在以下步骤中解决了它。
**
**
You could try installing this package on the server!
or adding the path of the library If the libstdc++.so.6 library is in the location /usr/lib/i386-linux-gnu/libstdc++.so.6, you can add the following line to the end of the .bashrc file in your home directory
To edit the .bashrc file, you can run the following command in the terminal:
Then, to apply the changes, you can run the following command:
Then,
I resolved it in the following steps.
**
**