Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode tries to reinstall SSH server on host if client falls asleep #6414

Closed
richiksc opened this issue Mar 4, 2022 · 8 comments
Closed
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@richiksc
Copy link

richiksc commented Mar 4, 2022

  • VSCode Version: 1.65.0
  • Local OS Version: macOS 12.1 Monterey
  • Remote OS Version: Ubuntu 20.04.4 LTS
  • Remote Extension/Connection Type: SSH
  • Logs:

Steps to Reproduce:

  1. Open VSCode and connect to SSH remote server with this config:
"remote.SSH.useLocalServer": false,
"remote.SSH.remotePlatform": {
    "[hostname]": "linux"
}
  1. Put computer to sleep (let screen timeout or close lid or press power button
  2. Reopen computer and resume VSCode
  3. "Lost connection to host" - Reload window does not work
  4. Close remote and try to reconnect to remote from remote explorer
  5. VSCode tries to reinstall remote server on host but fails due to files existing and locks - enters infinite loop of terminal crashing and attemptint to reinstall.

Ideal behavior:
VSCode should just reconnect to the currently running host server instance if the client computer falls asleep and resumes.

Workaround:
Use Remote-SSH: Kill VSCode Server On Host after closing remote and before reconnecting.

Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Mar 4, 2022
@tanhakabir tanhakabir self-assigned this Mar 4, 2022
@tanhakabir
Copy link

Could you share with me some Remote SSH logs of when it tries to reinstall the server?

@tanhakabir tanhakabir added the info-needed Issue requires more information from poster label Mar 16, 2022
@richiksc
Copy link
Author

I can provide logs when I return to my university and use remote lab machines. How do I retrieve logs from Remote SSH?

@tanhakabir
Copy link

@richiksc
Copy link
Author

@tanhakabir Here's a log file from replicating the issue: https://gist.github.com/richiksc/57394d8c860661ab6ec3d2bc02ef7dc0

@tanhakabir
Copy link

What happens if you try setting remote.SSH.useFlock to true?

@github-actions
Copy link

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@richiksc
Copy link
Author

@tanhakabir the issue still occurs with "remote.SSH.useFlock": true

@eleanorjboyd
Copy link
Member

Hello, from my understanding this is a duplicate of the issue #5755. I am closing this issue in preference of that one but if I am not understanding correctly and this is different, please re-open and let me know. Thanks!

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants