VSCodium / vscodium

binary releases of VS Code without MS branding/telemetry/licensing
https://vscodium.com
MIT License
24.27k stars 1.02k forks source link

An error occurred when an open-remote-ssh extension was used to connect to a riscv linux device #1934

Closed wzzc-dev closed 1 week ago

wzzc-dev commented 1 week ago

Describe the bug An error occurred when an open-remote-ssh extension was used to connect to a riscv linux device, Connecting to x86 linux is normal

Please confirm that this problem is VSCodium-specific

Please confirm that the issue/resolution isn't already documented

To Reproduce Steps to reproduce the behavior:

  1. install open-remote-ssh-0.0.45.vsix manual
  2. open riscv64 ssh remote machine

Expected behavior

Screenshots windows11 image

riscv

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here. remote-ssh.log

wzzc-dev commented 1 week ago

I see another issue but it doesn't help my question, https://github.com/VSCodium/vscodium/issues/1911

I would like some help on how to debug reh

kxxt commented 1 week ago

Please upload the full contents of the output from the plugin. The screenshot only contains an ssh identity issue.

wzzc-dev commented 1 week ago

Please upload the full contents of the output from the plugin. The screenshot only contains an ssh identity issue.

this Plug-in output remote-ssh.log

daiyam commented 1 week ago

@wang-zhichuang From the logs, I can see that it's connecting successfully but then it tries to reconnect. Can you send us the logs on the server? /home/test/.vscodium-server/.7d98c6de73fb939f1eb4b8a500c569b858b2d297.log

@kxxt It would be good if you can create a PR to add RiscV to the plugin (https://github.com/jeanp413/open-remote-ssh/blob/8191939de706952fa035f80a6fce0e85f85495f6/src/serverSetup.ts#L280)

kxxt commented 1 week ago

@kxxt It would be good if you can create a PR to add RiscV to the plugin (https://github.com/jeanp413/open-remote-ssh/blob/8191939de706952fa035f80a6fce0e85f85495f6/src/serverSetup.ts#L280)

Actually I already opened a PR two months ago, but it appears that the maintainer of that plugin isn't active. https://github.com/jeanp413/open-remote-ssh/pull/147

wzzc-dev commented 1 week ago

@wang-zhichuang From the logs, I can see that it's connecting successfully but then it tries to reconnect.从日志中,我可以看到它连接成功,但随后它尝试重新连接。 Can you send us the logs on the server? /home/test/.vscodium-server/.7d98c6de73fb939f1eb4b8a500c569b858b2d297.log你能把服务器上的日志发给我们吗? /home/test/.vscodium-server/.7d98c6de73fb939f1eb4b8a500c569b858b2d297.log

@kxxt It would be good if you can create a PR to add RiscV to the plugin (https://github.com/jeanp413/open-remote-ssh/blob/8191939de706952fa035f80a6fce0e85f85495f6/src/serverSetup.ts#L280)如果您可以创建一个 PR 将 RiscV 添加到插件中,那就太好了 ( https://github.com/jeanp413/open-remote-ssh/blob/8191939de706952fa035f80a6fce0e85f85495f6/src/serverSetup.ts#L280

image

It's just a simple log, is there a way to open more logs?

kxxt commented 1 week ago

It's just a simple log, is there a way to open more logs?

Could you also check if it works after killing all the vscodium-sever processes and removing ~/.vscodium-server on your server. And if it still fails, could you check coredumpctl(and journalctl) to see if the server process crashed?

kxxt commented 1 week ago

Please upload the full contents of the output from the plugin. The screenshot only contains an ssh identity issue.

this Plug-in output remote-ssh.log

I don't see any errors that we can help with. But it just looks like you have a bad openssh setup and it failed to resolve remote authority for 5 attempts.

[Info  - 05:42:27.2] Resolving ssh remote authority 'ssh-remote+192.168.109.184' (attemp #5)
wzzc-dev commented 1 week ago

journalctl

Thank you for your help. I found the problem using the following method

Thanks again