-
Notifications
You must be signed in to change notification settings - Fork 896
buildtime shows wrong value #15413
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
Comments
This seems very peculiar, thanks for reporting. Could you also provide more information from the expanded timeline, what's taking up the most time? Also, Is there any chance this workspace was updated? I believe updates still only issue a new |
@MrPeacockNLB could you please share with us, here or in private, the JSON response for the /timings endpoint? You can find it in the network tab in the development console. |
I think I can share a sample which shows nicely what is going on here: "agent_script_timings": [
{
"started_at": "2024-11-05T07:29:20.941125Z",
"ended_at": "2024-11-05T07:29:22.644473Z",
"exit_code": 0,
"stage": "start",
"status": "ok",
"display_name": "XXX"
},
{
"started_at": "2024-11-06T18:39:47.12748Z",
"ended_at": "2024-11-06T18:39:48.806912Z",
"exit_code": 0,
"stage": "start",
"status": "ok",
"display_name": "XXX"
}, It seems each coder script for each restart (in my case just two) gets send back as a response to the frontend. If you substract the timestamps then makes it sense to display 35h |
to clarify what Uptime mean. As soon the agent startup script runs we write a timestamp file. In the metadata we show now-starttime. For my understanding Uptime should be provisioningtime + buildtime + runtime. So in any case buildtime must be lower than Uptime. |
I'e restarted again and now it shows the time between the last start/restart and is much lower. |
@MrPeacockNLB, you helped us a lot. I think I know what the issue is now—thank you! |
@MrPeacockNLB I see the issue, but I can't reproduce that 🤔 does it happen with any workspace you create and restart? |
hmn... I've also problems in reproduce this failure. I tend to close this issue and open a new one if this occurrs again. |
Let's leave it open for now but let me summarize the issue for posterity. Issue: Cause: Workaround: |
@MrPeacockNLB I'm closing it for now. |
Uh oh!
There was an error while loading. Please reload this page.
description
I just restarted my Workspace and wonder about the buildtime.
As one could see the uptime is 13 minutes, but buildtime shows something else. Maybe the buildtime start does not get reset on restarting?
The text was updated successfully, but these errors were encountered: