ITISFoundation / osparc-simcore

🐼 osparc-simcore simulation framework
https://osparc.io
MIT License
43 stars 27 forks source link

Projects are open but not tracked in Redis #6000

Open GitHK opened 3 months ago

GitHK commented 3 months ago

How does this appear to users?

This presents itself as services being closed by the garbage collector. Usually the sidecars starts and as soon as it's reported healthy it's shut down (or shortly after). Service will close as expected and report as "idle" in the interface.

What is actually happening?

At the time of the investigation the user had a project open and a study running. I was able to verify this in Portainer.

We can see the "alive" has a TTL of almost 900s, which means that the frontend is connected. Screenshot 2024-06-25 at 15 56 32

Here we notice the actual issue. There is no project_id listed in the resources below. This will cause the garbage collector to correctly close the service.

Screenshot 2024-06-25 at 15 55 07

Feedback from the user

Q: What happened?

A: It happened I think twice that it was in a state where I didn't know if it is still alive (eg I closed my laptop in "MEETING_ROOM" and walked over to my office -> ?, or the study closed because I let it sit idle for too long) I then closed the browser tab and opended a new tab with "DEPLYMENT_ADDRESS". I did not have to log in again. created a new study in the new tab. Browser is Chrome on MacOS

sanderegg commented 2 months ago

Happened today to @newton1985 on both osparc.io/sim4life.io