Hi folks
I am struggling with a running remote-dev-server which is restarting (first shuts down on a Application.exit()) and then is not bound to it’s initial project any more.
One can see this when calling remote-dev-server status $PROJECT
. It returns the status as json.
Initially, when remote-dev-server is started, status is sane:
{
"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"
]
}
]
}
After the restart, the project is missing:
{
"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"
}
The problem can’t be reproduced at 100% but it happens quite frequently. Mostly after a period of idle.
I’d higly appreciate any hints that would help me pin point the cause and how to fix this.
ps. I filed this to the eclipse-che issue tracker, where I also have complete logs, if that helps:
opened 09:10AM - 09 Jul 25 UTC
kind/bug
severity/P1
area/ux
area/gateway
team/C
### 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)
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:
```shell
2025-07-08 10:55:48,779 [ 3] INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
```
2. Connecting via Jetbrains Gateway works fine (remote IDE is bound to a project): https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1625
```json
{
"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"
]
}
]
}
```
3. Remote IDE is being shut down (assumption: the remote IDE shuts down itself after a period of IDLE)
```shell
2025-07-08 14:29:28,769 [12819993] INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
```
4. Remote IDE is automatically restarted: https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1871
```shell
2025-07-08 14:57:28,536 [ 6] INFO - #c.i.p.i.b.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
```
5. Connecting fails, the IDE is not bound to a project: https://gist.github.com/adietish/c3b7df70a126aa80d418312a92beb088#file-idea-log-L1980-L1989
```json
{
"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