You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar
[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Description:
The VS Code Server leaves a zombie process () and possibly contributes to lingering ssh-agent processes on the server. The parent node process isn’t reaping its child, and multiple ssh-agent instances persist with parent PID 1, suggesting cleanup issues.
Steps to Reproduce:
Run VS Code Server on Ubuntu via SSH on a cluster.
Use ps aux to check processes after activity (e.g., editing, closing).
Observe child processes and persistent ssh-agent instances.
Actual Behavior:
Parent processes reap children, and SSH sessions clean up, avoiding and orphaned entries.
Environment:
OS: Linux eu-login-01 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
SSH: OpenSSH_8.9p1 Ubuntu-3ubuntu0.11, OpenSSL 3.0.2 15 Mar 2022
VS Code Server: Stable-138f619c86f1199955d53b4166bef66ef252935c
Setup: Cluster environment, launched via SSH
this is an old problem never solved see these tickets:
[Remote-SSH Bug]: Remote Terminal Processes Are Not Killed on Exiting VS Code (#9639)
Opened: March 5, 2024
Link: #9639
Relevance: Processes started in the remote terminal persist after closing VS Code, similar to your zombie node. Mentions pkill -9 node disrupting the server, hinting at cleanup failures. Still open, lacking dev response—could overlap with your issue.
Three Remote Processes Remain Running After Disconnecting (#6894)
Opened: July 4, 2022
Link: #6894
Relevance: Reports code-server, node, and ptyHost lingering after SSH disconnect, akin to your node and ssh-agent buildup. Unresolved, marked “info-needed”—suggests a pattern of poor process cleanup.
Sometimes the 'vscode-server' Process Doesn't Close on Remote End (#1086)
Opened: ~2019 (exact date vague), Closed: Not explicitly resolved
Link: #1086
Relevance: Describes a zombie vscode-server process after closing VS Code, blocking reconnection until manually killed—mirrors your node. Closed without a clear fix, suggesting it’s a recurring issue.
Visual Studio Code Remote Development Does Not Cleanup All Processes on Remote (#396)
Opened: May 20, 2019, Closed: ~2019
Link: #396
Relevance: Notes multiple extension processes lingering on the remote host, taking memory. Closed, possibly fixed in later releases, but your older server version (Stable-138f619c...) might predate the fix.
VsCode Over SSH Can Leave Zombie Processes on Remote Host (#7660)
Opened: December 7, 2022, Closed: Unknown resolution
Link: #7660
Relevance: Explicitly calls out zombie VS Code processes after ungraceful SSH termination (e.g., laptop shutdown), matching your cluster scenario. Suggests proactive cleanup on restart—closed, but fix status is unclear.
Expected Behavior
all spawned processes are cleaned up if the ssh session drops.
Actual Behavior
lingering processes
Steps To Reproduce
run ps on server after many vs code shh sessions drops.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this bug?
Required Troubleshooting Steps
remote.SSH.useLocalServer
setting[Optional] Diagnose with Copilot
I did not ask the @remote-ssh participant for help
In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?
I did not try step 2 of the troubleshooting steps
Remote-SSH Log
Description:
The VS Code Server leaves a zombie process () and possibly contributes to lingering ssh-agent processes on the server. The parent node process isn’t reaping its child, and multiple ssh-agent instances persist with parent PID 1, suggesting cleanup issues.
Steps to Reproduce:
Run VS Code Server on Ubuntu via SSH on a cluster.
Use ps aux to check processes after activity (e.g., editing, closing).
Observe child processes and persistent ssh-agent instances.
Actual Behavior:
Full ps output:
Parent node (PID 2221113) doesn’t reap child (PID 2221201), leaving a zombie. Multiple ssh-agent processes linger.
Expected Behavior:
Parent processes reap children, and SSH sessions clean up, avoiding and orphaned entries.
Environment:
OS: Linux eu-login-01 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
SSH: OpenSSH_8.9p1 Ubuntu-3ubuntu0.11, OpenSSL 3.0.2 15 Mar 2022
VS Code Server: Stable-138f619c86f1199955d53b4166bef66ef252935c
Setup: Cluster environment, launched via SSH
this is an old problem never solved see these tickets:
[Remote-SSH Bug]: Remote Terminal Processes Are Not Killed on Exiting VS Code (#9639)
Opened: March 5, 2024
Link: #9639
Relevance: Processes started in the remote terminal persist after closing VS Code, similar to your zombie node. Mentions pkill -9 node disrupting the server, hinting at cleanup failures. Still open, lacking dev response—could overlap with your issue.
Three Remote Processes Remain Running After Disconnecting (#6894)
Opened: July 4, 2022
Link: #6894
Relevance: Reports code-server, node, and ptyHost lingering after SSH disconnect, akin to your node and ssh-agent buildup. Unresolved, marked “info-needed”—suggests a pattern of poor process cleanup.
Sometimes the 'vscode-server' Process Doesn't Close on Remote End (#1086)
Opened: ~2019 (exact date vague), Closed: Not explicitly resolved
Link: #1086
Relevance: Describes a zombie vscode-server process after closing VS Code, blocking reconnection until manually killed—mirrors your node. Closed without a clear fix, suggesting it’s a recurring issue.
Visual Studio Code Remote Development Does Not Cleanup All Processes on Remote (#396)
Opened: May 20, 2019, Closed: ~2019
Link: #396
Relevance: Notes multiple extension processes lingering on the remote host, taking memory. Closed, possibly fixed in later releases, but your older server version (Stable-138f619c...) might predate the fix.
VsCode Over SSH Can Leave Zombie Processes on Remote Host (#7660)
Opened: December 7, 2022, Closed: Unknown resolution
Link: #7660
Relevance: Explicitly calls out zombie VS Code processes after ungraceful SSH termination (e.g., laptop shutdown), matching your cluster scenario. Suggests proactive cleanup on restart—closed, but fix status is unclear.
Expected Behavior
all spawned processes are cleaned up if the ssh session drops.
Actual Behavior
lingering processes
Steps To Reproduce
run ps on server after many vs code shh sessions drops.
Anything else?
No response
The text was updated successfully, but these errors were encountered: