Skip to content

Jetbrains Gateway cannot connect after 3.5h IDLE period #23485

@adietish

Description

@adietish

Describe the bug

If you IDLE your remote ide for a lengthy period (3.5h in my case) you cannot connect to it any more.

Che version

7.105@latest

Steps to reproduce

Steps:
2. ASSERT: have a freshly started workspace
3. ASSERT: wait for a long period (3.5h in my case) - you can connect as much as you want, just dont use the IDE that you get.
4. EXEC: try to connect to it using "Connect with a link"

Result:
You cannot connect, gateway reports a problem in the connection provider. The workspace pod is still running.

Expected behavior

You should be able to connect to the remote ide regardless of how long it was IDLE

Runtime

OpenShift

Screenshots

No response

Installation method

other (please specify in additional context)

Environment

macOS

Eclipse Che Logs

Logs of the remote IDE on tools container in the workspace pod, are at /home/user/.cache/JetBrains/IntelliJIdea2024.3/log/idea.log. I pasted them to a gist at https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log

The following are excerpt of it in order to explain what happens:

  1. remote IDE is started:
2025-07-08 10:55:48,779 [      3]   INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
  1. Connecting via Jetbrains Gateway works fine (remote IDE is bound to a project): https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1625
{
  "appPid": 56,
  "appVersion": "IU-243.23654.153",
  "runtimeVersion": "21.0.5b631.30",
  "unattendedMode": true,
  "backendUnresponsive": false,
  "modalDialogIsOpened": true,
  "idePath": "/idea-server",
  "ideIdentityString": "/home/user/.config/JetBrains/IntelliJIdea2024.3",
  "joinLink": "tcp://127.0.0.1:5990#jt=8a5064db-8a65-41dc-a034-847f161fe9e1&p=IU&fp=30357BE4901A7442E5DCD005BD494A87FE2B4BF29E240874E22F6F5EB62E63A7&cb=243.23654.153&newUi=true&jb=21.0.5b631.30",
  "httpLink": "https://code-with-me.jetbrains.com/remoteDev#idePath=%2Fidea-server&projectPath=%2Fprojects%2Fquarkus-quickstarts&host=workspace83aeff33a7df4318-f65bfbc56-xqh76&port=22&user=user&type=ssh&deploy=false&newUi=true",
  "gatewayLink": "jetbrains-gateway://connect#idePath=%2Fidea-server&projectPath=%2Fprojects%2Fquarkus-quickstarts&host=workspace83aeff33a7df4318-f65bfbc56-xqh76&port=22&user=user&type=ssh&deploy=false&newUi=true",
  "projects": [
    {
      "projectName": "quarkus-quickstarts",
      "projectPath": "/projects/quarkus-quickstarts",
      "dateLastOpened": 1751984968209,
      "joinLink": "tcp://127.0.0.1:5990#jt=8a5064db-8a65-41dc-a034-847f161fe9e1&p=IU&fp=30357BE4901A7442E5DCD005BD494A87FE2B4BF29E240874E22F6F5EB62E63A7&cb=243.23654.153&newUi=true&jb=21.0.5b631.30",
      "httpLink": "https://code-with-me.jetbrains.com/remoteDev#idePath=%2Fidea-server&projectPath=%2Fprojects%2Fquarkus-quickstarts&host=workspace83aeff33a7df4318-f65bfbc56-xqh76&port=22&user=user&type=ssh&deploy=false&newUi=true",
      "gatewayLink": "jetbrains-gateway://connect#idePath=%2Fidea-server&projectPath=%2Fprojects%2Fquarkus-quickstarts&host=workspace83aeff33a7df4318-f65bfbc56-xqh76&port=22&user=user&type=ssh&deploy=false&newUi=true",
      "controllerConnected": false,
      "secondsSinceLastControllerActivity": 12803,
      "backgroundTasksRunning": false,
      "users": [
        "user"
      ]
    }
  ]
}
  1. Remote IDE is being shut down (assumption: the remote IDE shuts down itself after a period of IDLE)
2025-07-08 14:29:28,769 [12819993]   INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
  1. Remote IDE is automatically restarted: https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1871
2025-07-08 14:57:28,536 [      6]   INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
  1. Connecting fails, the IDE is not bound to a project: https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1980-L1989
{
  "appPid": 1670,
  "appVersion": "IU-243.23654.153",
  "runtimeVersion": "21.0.5b631.30",
  "unattendedMode": false,
  "backendUnresponsive": false,
  "modalDialogIsOpened": false,
  "idePath": "/idea-server",
  "ideIdentityString": "/home/user/.config/JetBrains/IntelliJIdea2024.3"
}

Additional context

I reproduced this using Red Hat sandbox

Metadata

Metadata

Assignees

Labels

area/gatewayarea/uxIssues related to User Experience Designkind/bugOutline of a bug - must adhere to the bug report template.severity/P1Has a major impact to usage or development of the system.team/CThis team is responsible for the the IDEs and Extensions

Type

No type

Projects

Status

Analyzing

Status

📅 Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions