pycharm stuck at logging after ssh timeout

hi,

i have a remote interpreter where deployment is done. things work fine.

when there is no activity on pycharm 'long enough', it loses the connection to the host.

this is fine since the host must have a timeout to stop the connection.

the issue is when i go back to work on pycharm it can no longer connect, and it get stuck at logging and i have to restart the editor.

this is not helpful.

i expect that pycharm will easily restart the connection.

nothing is working once the connection is lost: deployment, ssh, interpreter.

 

any idea how to fix this?

i have seen this issue for a very long time. it is too much.

 

often, i have to wait very long time before pycharm restarts the connection.

 

thanks

output of 'file transfer':

[15/09/2021 23:35] Automatic upload failed. Could not resolve file "sftp://remote-host". (Timeout expired)

why it cant resolve the host?

info:

PyCharm 2021.2.1 (Professional Edition)
Build #PY-212.5080.64, built on August 25, 2021
For educational use only.
Runtime version: 11.0.11+9-b1504.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 4.17.4-041704-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 1958M
Cores: 12
Non-Bundled Plugins: intellij-clock (2.0.0), atom-one (1.3.1), ClearCachePlugin (1.1)
Current Desktop: ubuntu-communitheme:ubuntu:GNOME

 

3
4 comments

any news on this?

it is really annoying

thanks

2

I also have this problem with a VPN connection. When the SSH connection dies (e.g. if I put my laptop to sleep), it will never work again and I have to restart PyCharm.

0

The issue with putting computer to sleep: https://youtrack.jetbrains.com/issue/WI-50381

I suggest submitting a new issue with the logs requested in the ticket

Regarding lost connection after a period of inactivity - https://youtrack.jetbrains.com/issue/WI-53759

Please check your keep alive message settings as mentioned in the comments.

0

hi,

i already set the keep alive message to 60 sec. this issue happens while it is checked.

i am still having this issue. i have to restart pycharm.

sometimes, i have to wait long time before pycharm reconnects again (without restarting).

instead of waiting, i restart.

thanks

0

Please sign in to leave a comment.