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

[dashboard] Sometimes, the "Stopped / Timed Out" screen shows "Starting / Opening IDE ..." instead #3811

Closed
jankeromnes opened this issue Apr 7, 2021 · 4 comments · Fixed by #3862

Comments

@jankeromnes
Copy link
Contributor

jankeromnes commented Apr 7, 2021

Bug description

Sometimes, the "Stopped / Timed Out" screen shows "Starting / Opening IDE ..." instead.

Screenshot 2021-04-07 at 14 23 21 Screenshot 2021-04-07 at 14 26 32

Steps to reproduce

  • Open a workspace to do some work in it
  • Close laptop & go for lunch
  • Come back to the timed out workspace -- it says "Starting" and "Opening IDE ..."

Expected behavior

It should show "Stopped" or "Timed Out"

Example repository

No response

@jankeromnes
Copy link
Contributor Author

Sometimes it works as expected, e.g. if my browser & laptop remain open while it times out:

Screenshot 2021-04-08 at 09 55 49

Maybe it's a matter of the Start page not receiving updates while the browser/laptop is asleep, and then not updating itself properly when woken up after the workspace timed out.

@AlexTugarev
Copy link
Member

Maybe it's a matter of the Start page not receiving updates while the browser/laptop is asleep, and then not updating itself properly when woken up after the workspace timed out.

That's a known behavior, @jankeromnes. That also may happen on connection loss. That's where we used to add the notifyDidOpenConnection listener to fetch latest details on the instance. I think that's missing. In old code we used to have a ensureWorkspaceInfo.

BTW, that would also explain why I don't see the "workspace stopped" but the "workspace stopping" from time to time.

@jankeromnes
Copy link
Contributor Author

Will add back the missing listener for that case.

BTW, that would also explain why I don't see the "workspace stopped" but the "workspace stopping" from time to time.

What do you mean? I do see "Stopped" when I:

  • Start a workspace
  • Open https://gitpod.io/workspaces in new tab, and click on "Stop" next to the workspace
  • Head back to original workspace tab

There I see "Stopping" (as expected) and after a while "Stopped" (as expected).

@jankeromnes jankeromnes self-assigned this Apr 8, 2021
@jankeromnes jankeromnes mentioned this issue Apr 8, 2021
24 tasks
@AlexTugarev
Copy link
Member

@jankeromnes, on #3811 (comment)

Try this

  • hit "Stop" and immediately disable network connection on your notebook
  • reconnect the network after a while and check the state

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

Successfully merging a pull request may close this issue.

2 participants