VSCode SSH 到远程 - 节点:未找到

发布于 2025-01-20 12:01:34 字数 1865 浏览 0 评论 0 原文

从 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

美羊羊 2025-01-27 12:01:34

丹尼尔解决了自己的问题:

我能够解决以下提到将ARM_64BIT更改为0。希望可以帮助任何人可能会遇到的人。


但是答案仍然留下一些猜测。因此,如果我为我确定的详细信息:

  1. 在Raspberry上的文件/boot/config.txt上添加新的条目 arm_64bit = 0
  2. 使用 sudo rm -r .vscode*删除现有的VSCODE文件

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.

野稚 2025-01-27 12:01:34

您可以尝试在服务器上安装此软件包!

sudo apt-get install libstdc++6:amd64

或如果libstdc ++。so.6库位于位置/usr/lib/i386-linux-gnu/libstdc++so.sso.6,您可以添加以下行,在您的主目录中

export LD_LIBRARY_PATH=/usr/lib/i386-linux gnu:$LD_LIBRARY_PATH

要编辑.bashrc文件,您可以在终端中运行以下命令:

nano ~/.bashrc

然后,要应用更改,您可以运行以下命令:

source ~/.bashrc

然后,,

我在以下步骤中解决了它。

**

  1. 访问远程服务器。
  2. 删除或重命名/home/ {username }/.vscode-server/bin。
  3. 更新远程sshextensión(v0.101.2023032915)
  4. 重新加载视觉工作室代码尝试ssh-remote

**

You could try installing this package on the server!

sudo apt-get install libstdc++6:amd64

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

export LD_LIBRARY_PATH=/usr/lib/i386-linux gnu:$LD_LIBRARY_PATH

To edit the .bashrc file, you can run the following command in the terminal:

nano ~/.bashrc

Then, to apply the changes, you can run the following command:

source ~/.bashrc

Then,

I resolved it in the following steps.

**

  1. Access remote server.
  2. Remove or rename /home/{username}/.vscode-server/bin.
  3. Update Remote-SSH Extensión (v0.101.2023032915 )
  4. Reload Visual Studio Code Try SSH-Remote

**

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文