Pycharm remote deployment failed after update 2525.1 "could not get host jstack"
Dear Jetbrains Support Team,
when trying to connect to remote project with Pycharm today I got the message that there is a new gateway version available, thus prompted Pycharm to install it.
However now connecting always fails in the “starting remote IDE backend” step, with the following log:
==== DIAGNOSTIC ERRORS ====
Could not get host jstack:
Details:
An error occurred while executing command: 'get-jstack --ide-path=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211 --project-path=/home/broth/oct-in-context-learning'
Exit code: 1
https://stackoverflow.com/questions/73723272/how-to-install-get-jstack-on-ubuntu
For further Information, full log at the end of the post.
In case it is relevant I got a soft warning from the server I am working on the other day, telling my my home directory used up too much space. However I since resolved that.
Researching the issue i found this post:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/25075457125266-PyCharm-remote-development-not-starting
However as far as I understand I already updated to the latest remote version. I do not understand
In case it helps, I also updated the logs archive file, you can find it under the following
Upload id: 2025_04_07_muxGidaSYpj1KmQxtkuTna (file: deploy-logs-20250407-231304.zip)
Thank you in advance,
Any support is gladly appreciated!
--------------------------------------------------------
Edit:
further investigation on my end revealed that the command ‘get-jstack' could not be executed on the server, due to jstack not being installed. Then on
https://stackoverflow.com/questions/73723272/how-to-install-get-jstack-on-ubuntu
I found people encountering a similar issue in regards to pycharm remote development.
The suggested solution of deleting the enire ~/.cache/Jetbrains directory and setting up an entire remote IDE backend from scratch also solved the issue for me.
I leave this here in hope it helps, as people seem to run into this issue from time to time when updating the remote IDE.
Not wanting to shift the blame from me [could have resolved this myself earlier!] I still suggest that people fixing this will have an easier time, if the error message [at the top of this post] displayed gave a hint, like
“is jstack installed on the remote server?”
in addition to “error code 1”
--------------------------------------------------------
Full log message:
--------------------------------------------------------
2025-04-07 23:27:34,769 INFO uname -sm
stdout:
Linux x86_64
2025-04-07 23:27:34,924 INFO echo $SHELL
stdout:
/bin/bash
2025-04-07 23:27:35,087 INFO uname -sm
stdout:
Linux x86_64
2025-04-07 23:27:35,243 INFO echo $SHELL
stdout:
/bin/bash
2025-04-07 23:27:35,413 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ echo\ \$HOME
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth
2025-04-07 23:27:35,577 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ echo\ \$XDG_CACHE_HOME
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
2025-04-07 23:27:35,732 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ test\ -f\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
2025-04-07 23:27:35,891 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ test\ -x\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
2025-04-07 23:27:36,056 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=cache
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.cache/JetBrains
2025-04-07 23:27:36,215 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=config
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.config/JetBrains
2025-04-07 23:27:36,373 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ exists\ --path\\\=/home/broth/.cache/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
true
2025-04-07 23:27:36,533 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ exists\ --path\\\=/home/broth/.config/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
true
2025-04-07 23:27:36,691 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ lock-support
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
2025-04-07 23:27:36,850 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ available-memory
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
131758744
2025-04-07 23:27:37,013 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ cpu-count
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
128
2025-04-07 23:27:37,169 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ port-forwarding-test
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
35333
2025-04-07 23:27:37,372 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ readlink\ --path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/oct-in-context-learning
2025-04-07 23:27:37,527 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=cache
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.cache/JetBrains
2025-04-07 23:27:37,682 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=config
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.config/JetBrains
2025-04-07 23:27:37,839 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ exists\ --path\\\=/home/broth/.cache/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
true
2025-04-07 23:27:37,996 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ exists\ --path\\\=/home/broth/.config/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
true
2025-04-07 23:27:38,155 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=cache
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.cache/JetBrains
2025-04-07 23:27:38,317 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-path\ --path\\\=config
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.config/JetBrains
2025-04-07 23:27:38,475 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ available-space\ --path\\\=/home/broth/.cache/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
366019084288
2025-04-07 23:27:38,632 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ available-space\ --path\\\=/home/broth/.config/JetBrains
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
366019084288
2025-04-07 23:27:38,790 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ host-status\ --ide-path\\\=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
{"type":"single","data":"{\"appPid\":17260,\"appVersion\":\"PY-251.23774.211\",\"runtimeVersion\":\"21.0.6b895.105\",\"unattendedMode\":false,\"backendUnresponsive\":false,\"modalDialogIsOpened\":false,\"idePath\":\"/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211\",\"ideIdentityString\":\"/home/broth/.config/JetBrains/PyCharm2025.1\"}\n"}
2025-04-07 23:27:40,865 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ backend-status-alive\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
false
2025-04-07 23:27:41,024 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ product-code\ --ide-path\\\=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
PY
2025-04-07 23:27:41,181 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-logs-dir\ --product-code\\\=PY\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.cache/JetBrains/RemoteDev-PY/_home_broth_oct-in-context-learning/log
2025-04-07 23:27:41,339 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ host-launch\ --ide-path\\\=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211\ --project-path\\\=/home/broth/oct-in-context-learning\ --stdout-file\\\=/home/broth/.cache/JetBrains/RemoteDev-PY/_home_broth_oct-in-context-learning/log/stdout.log\ --stderr-file\\\=/home/broth/.cache/JetBrains/RemoteDev-PY/_home_broth_oct-in-context-learning/log/stderr.log
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
2025-04-07 23:27:44,501 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ backend-host-alive\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
false
2025-04-07 23:27:44,661 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ host-status\ --ide-path\\\=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
{"type":"single","data":"{\"appPid\":17600,\"appVersion\":\"PY-251.23774.211\",\"runtimeVersion\":\"21.0.6b895.105\",\"unattendedMode\":false,\"backendUnresponsive\":false,\"modalDialogIsOpened\":false,\"idePath\":\"/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211\",\"ideIdentityString\":\"/home/broth/.config/JetBrains/PyCharm2025.1\"}\n"}
2025-04-07 23:27:47,531 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ backend-host-alive\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
false
[command is repeated 1 more times]
2025-04-07 23:27:47,853 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ product-code\ --ide-path\\\=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
PY
2025-04-07 23:27:48,013 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ /home/broth/.cache/JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_1ced880116f2fbd015285510ff20f35fe1c4ea20c62ee72832ca50b81db48778\ get-logs-dir\ --product-code\\\=PY\ --project-path\\\=/home/broth/oct-in-context-learning
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
/home/broth/.cache/JetBrains/RemoteDev-PY/_home_broth_oct-in-context-learning/log
2025-04-07 23:27:48,220 INFO /bin/bash -lc echo\ REMOTE_EXEC_OUTPUT_MARKER_\ \&\&\ cat\ /home/broth/.cache/JetBrains/RemoteDev-PY/_home_broth_oct-in-context-learning/log/stderr.log
stdout:
REMOTE_EXEC_OUTPUT_MARKER_
==== FAILURES ====
The following exception failed the deployment
com.jetbrains.gateway.ssh.deploy.DeployException: Host process terminated unexpectedly with unknown error. See logs for more details
at com.jetbrains.gateway.ssh.DeployFlowUtil$fullDeployCycleImpl$2.invokeSuspend(DeployFlowUtil.kt:311)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: com.jetbrains.gateway.ssh.deploy.DeployException: Host process terminated unexpectedly with unknown error. See logs for more details
at com.jetbrains.gateway.ssh.DeployFlowUtil$fullDeployCycleImpl$2.invokeSuspend(DeployFlowUtil.kt:306)
... 8 more
Caused by: com.jetbrains.gateway.ssh.deploy.DeployException: Host process terminated unexpectedly with unknown error. See logs for more details
at com.jetbrains.gateway.ssh.DeployFlowUtil$fullDeployCycleImpl$2.invokeSuspend(DeployFlowUtil.kt:301)
... 8 more
Caused by: com.jetbrains.gateway.ssh.deploy.DeployException: Host process terminated unexpectedly with unknown error. See logs for more details
at com.jetbrains.gateway.ssh.deploy.methods.HostRunMethods.openProject(HostRunMethods.kt:234)
at com.jetbrains.gateway.ssh.deploy.methods.HostRunMethods.access$openProject(HostRunMethods.kt:29)
at com.jetbrains.gateway.ssh.deploy.methods.HostRunMethods$openProject$1.invokeSuspend(HostRunMethods.kt)
... 8 more
==== ENVIRONMENT ====
INSTALLED PRODUCTS
PyCharm 251.23774.211
AVAILABLE MEMORY
125.65GB
==== DIAGNOSTIC ERRORS ====
Could not get host jstack:
Details:
An error occurred while executing command: 'get-jstack --ide-path=/home/broth/.cache/JetBrains/RemoteDev/dist/97e04b93ae07a_pycharm-professional-251.23774.211 --project-path=/home/broth/oct-in-context-learning'
Exit code: 1
帖子评论已关闭。
Hi @Benjamin-phil Roth, this issue requires thorough investigation, please create an issue on YouTrack , attach all relevant information for quicker resolution (including logs from remote server -
~/.cache/JetBrains/<product><versions>/log/).