-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
StopWorkspace is called prior to regular workspace transitioning to running state #12282
Comments
This happens because there is no way to signal to ws-daemon to stop InitWorkspace process. |
I saw the same error. |
@sagor999 how often is this happening? What is the impact to users if we don't fix? For the meantime, I am going to assume infrequent, but add to the webapp inbox and mention Gero. This way, they can inspect the logs more leisurely using their flow. If this happening often and negatively impacting users, let us know? I'll leave in our inbox for now to wait till I hear back. |
@geropl adding this to the webapp inbox. Can we ask for webapp help in determining potential steps to reproduce? |
For prebuilds, this happens regularly now. Whenever a new commit is pushed, we cancel prior prebuilds on said branch. This should be reproduceable in a preview env with a script to push to a repo that is set up as project before. Especially in cases with a lot of traffic (main branches + long builds) this happens nearly every time. For some teams this means that a lot of their prebuilds fail with weird error. |
Removing from scheduled groundwork for now, not sure how often this is happening. |
Hey @geropl , can you help set our expectations on when this may be able to join other Scheduled webapp work? 🙏 As an FYI, we're blocked in #11852 (comment) till the corresponding logging is added. |
Hey @kylos101 , sorry for not being clear here. We'll have it at the top of the queue on Monday. 👍 |
👋 @geropl , it looks like this is not currently scheduled, is that intentional? I ask because of this comment. For background, we are blocked on two things:
|
@kylos101 Sorry for the back-and-forth. I was under the impression that you asked that logging why StopWorkspace is called (#12283) is what you asked here, so I scheduled that. Coming back to the original question:
So far we don't give any guarantee that we don't call StopWorkspace in any given state workspace state. And people do it regularly from the dashboard, if their workspaces take too long to start, or for a variety of other reasons. Given our long history here: Does it make sense to sync this afternoon to make sure we're on the same page? |
WebApp involvement should be done now because |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
StopWorkspace is called on workspace that has not finished initializing yet, causing ws-daemon to fail content init 10 min later.
Not sure why it fails 10 min after StopWorkspace was called, most probably some sort of timeout triggers somewhere.
Workspace logs:
https://cloudlogging.app.goo.gl/1qNcUN3hcr8GmPE16
Webapp logs:
https://cloudlogging.app.goo.gl/T344gi8ZHzDLLJNZ9
@geropl why does webapp is calling StopWorkspace prior to workspace starting up? I thought it was only implemented for prebuilds, but this happens on regular workspaces as well.
For workspace team:
we need to be able to handle this gracefully. This would be related to #11453 but that one specifically is looking to address prebuild cancellation, not regular workspaces. It is possible that work done in #11453 might address this issue as well, but most probably it will need additional work.
Steps to reproduce
not sure. need input from webapp team
Workspace affected
No response
Expected behavior
No response
Example repository
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: