SSH remote debug error "Broken transport; encountered EOF"

Hi JetBrains Team,

I am using a GPU cloud environment and connecting via SSH for my work. Previously, I was able to run AI model training and debugging without any issues through the run configuration settings.

However, after a popup related to memory heap appeared and I clicked on it, something automatically ran and the IDE restarted. Since then, I have been able to run my configurations, but debugging no longer works.

When attempting to debug, the message "uploading PyCharm helpers" appears, followed by "Broken transport; encountered EOF" in the debug console, with no other logs.

Checking the SSHD log on the remote server, I found the following entries:

debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 3255
debug2: parse_server_config_depth: config /etc/ssh/sshd_config len 3255
debug2: /etc/ssh/sshd_config line 12: new include /etc/ssh/sshd_config.d/*.conf
debug2: /etc/ssh/sshd_config line 12: no match for /etc/ssh/sshd_config.d/*.conf
debug1: sshd version OpenSSH_8.9, OpenSSL 3.0.2 15 Mar 2022
debug1: Unable to load host key: /etc/ssh/ssh_host_rsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.

Despite SSH connections and running configurations working fine, debugging fails with the same settings. I have tried deleting the .pycharm_helpers folder on the remote, invalidating caches, deleting and re-adding the SSH connection, and reinstalling the cloud session, but the issue persists.

Could you please assist in resolving this?

Thank you.

0
3 comments

Hello, 

Please try the following: 

  1. Remove deployment(Settings | Build, Execution, Deployment | Deployment) and SSH configuration(Settings | Tools | SSH Configurations) related to the remote interpreter. 
  2. Remove the SSH interpreter from the PyCharm. 
  3. Close PyCharm.
  4. Remove the caches directory.
  5. Remove the .idea folder from the project root.
  6. Start PyCharm, re-add the interpreter, and check if the problem persists. 

If the problem remains unsolved, please collect IDE logs with Help | Collect Logs and Diagnostic Data, upload the archive here, and tell us the upload ID so we can have a look.

0

I followed all your instructions, but it still doesn't work. The Run configuration works fine, but when I click the Debug button, it shows "uploading pycharm helpers..." and then fails with "Broken transport; encountered EOF" without leaving any logs in the debug console.

As you requested, I have attached the log archive.

 

Upload ID is

2024_07_26_KQmeH8eUV5xpoiphKZ99D8 (auto-uploaded)

 

 

Link is here

https://intellij-support.jetbrains.com/hc/en-us/requests/6634973

0

do you find any solution?

0

Please sign in to leave a comment.