-
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
[prebuild] Not starting workspace once the prebuild is done #8195
Comments
@geropl can you clarify how to to repro this? What do you have to do, to see a prebuild log (I assume in the dashboard) when you are expecting to start a workspace? |
@jldec This happened to me a couple of times last days (1 week) now on the gitpod-io/gitpod repo. I started a workspace, and was show the "Prebuild in progress" view with logs flowing in. I left the tab as this usually takes a couples of minutes. |
Could it be that we don't properly handle websocket reconnections? (They are quite likely on long-running pages that you might leave open in the background.) This is just a random guess, but I believe we might need something like a For example, this is how the gitpod/components/dashboard/src/start/StartWorkspace.tsx Lines 684 to 698 in bfa4c16
The const toDispose = service.registerClient({
notifyDidOpenConnection: () => watchHeadlessWorkspace(),
onHeadlessWorkspaceLogs(event: HeadlessLogEvent): void {
logsEmitter.emit('logs', event.text);
},
}); but the I'm not entirely sure, but is it possible that the "new" |
Exactly my suspicion, yes. Will try to fix. 🙃 Update: After looking through the code and checking blame I think it's sth else. The expectation was that the outer code (e.g., StartWorkspace) switches screens, but that seems to have gone missing. Now looking into re-using PrebuildLogs. |
I was just hitting the same issue. I forgot to take a screenshot, but I verified that the |
This did not see much work due to installer, and I'm on sick leave, so moving back to "scheduled". |
Hi! Sorry to chime in - this is a major blocker for us at Factorial, and probably the first source of frustration to transition to Gitpod. It gives people a sense of "unstability". In big repos with lots of activity, having to start over again makes people nervous 🙃. People end up understanding that they need to refresh at the end of the process, but that's far from ideal (especially given that from that moment on, everything works flawlessly). That said, I love the product and I think you're doing an amazing job. Take care @geropl, and sorry to bother you while on sick leave! |
@AlexTugarev Was just able to reprodue this on staging. 👍 |
@geropl, I think I could reproduce it myself. |
Reopening this after realizing that the PR only solves it for one user – the webhook installer. For other users, no instance updates will be sent, thus the process breaks. |
Instead, user is left handing with prebuild log, reading "exit" at the end. Reload starts the workspace properly.
Screenshot:
Idea: Might be triggered by us fixing the status updates recently.
/cc @jldec not the issue I had in mind during our meeting, but annoying nonetheless
The text was updated successfully, but these errors were encountered: