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

Unable to connect with expired IDE #144

Closed
ericpaulsen opened this issue Jan 19, 2023 · 8 comments · Fixed by coder/modules#228
Closed

Unable to connect with expired IDE #144

ericpaulsen opened this issue Jan 19, 2023 · 8 comments · Fixed by coder/modules#228
Assignees

Comments

@ericpaulsen
Copy link
Member

when i first try to connect to a workspace using the gateway plugin, I'm returned this error:

Could not get host jstack: 

Details:
An error occurred while executing command: 'get-jstack --ide-path=/home/coder/.cache/JetBrains/RemoteDev/dist/36e40bdbd952a_ideaIU-2022.2.4 --project-path=/home/coder'
Exit code: 1

upon clicking Retry, the connection is successfully established.

@fioan89
Copy link
Collaborator

fioan89 commented Jan 19, 2023

This sounds awfully similar to #128 which I could have not reproduce it. @ericpaulsen @bpmct from what templates were your workspaces created from?

@bpmct bpmct closed this as completed Mar 1, 2023
@bpmct bpmct reopened this Mar 15, 2023
@bpmct
Copy link
Member

bpmct commented Mar 15, 2023

Eric is still running into this

@bpmct bpmct added the p1-high label Mar 15, 2023
@code-asher
Copy link
Member

code-asher commented May 24, 2023

If I recall correctly the logs were saying "This IDE build has expired. Please download a new build from JetBrains official site". I am not exactly sure what the perfect solution here is but at the very least being presented with the option to download the new build would be nice.

The problem is that it seems this error appears in the logs, but is never thrown in the code, so we never see it. That means we either have to check the log output which seems janky, or check for expired builds before connecting to them.

Or, it could be that there is some other property on the host status we are meant to check.

@code-asher code-asher changed the title error returned upon initial attempted connection: could not get host jstack Unable to connect with expired IDE May 24, 2023
@code-asher code-asher self-assigned this Aug 29, 2024
@Kira-Pilot Kira-Pilot removed the p1-high label Sep 4, 2024
@matifali matifali removed the bug label Oct 15, 2024
@matifali
Copy link
Member

JetBrains Gateway expires the IDE backends, at least for EAP versions, after a specific duration, and that causes this error.
related discussions: https://intellij-support.jetbrains.com/hc/en-us/community/posts/10898451233682-Remote-development-SSH-connection

@matifali matifali self-assigned this Feb 12, 2025
@matifali
Copy link
Member

matifali commented Feb 12, 2025

We have added a flag latest=true since version v1.0.28 of the JetBrains Gateway module that always downloads the latest IDE backend.

@code-asher
Copy link
Member

We may still want to do something here, because I think it only downloads the latest if you launch from the dashboard again right? If you launch from the recent connections window of Gateway for example it will use the currently installed version. It does ask if you want to update, but if you decline or have updates disabled then it will fail without any obvious error.

But, this might be something better to raise upstream with JetBrains anyway.

@matifali
Copy link
Member

We have started working on the ToolBox integration and going forward I don't think gateway will receive much support.

I will bring this up with gateway team if it comes from any users.

@code-asher
Copy link
Member

Yup that is fair. Hopefully Toolbox handles expired IDEs more gracefully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants