-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Error: headless task failed, on imagebuild #9875
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
Another issue is that there is no build output other than error text. I had a build run that was successful but had no output. |
+1, same for me (with a private project of mine that had a Dockerfile update) 🤔 |
Same problem here. |
Very surprised that there aren't more people complaining about it. While it's all about viewing the outputs/logs, it gets hard not knowing exactly where the problem is during a build with a "lot" of changes. |
Hello everyone, Idk who still is facing this issue, but I could see detailed information about my error by:
I hope it helps someone. |
Scheduled this, as the user experience feels really broken 😕 . @felipealencar Thank you for sharing the workaround! This is indeed what's happening: The |
Yep, thanks for the workaround! I realized it too by simply building the problematic Dockerfile on another gitpod. Thanks to the team for taking this issue into account too! 🙏 |
Maybe this error is related? Error: no log stream for this image build (internal) |
@jankeromnes @meysholdt looks like a certificate issue with the new application clusters:
|
In case the above error message is from production, then the request There was a change in certs indeed (https://github.com/gitpod-io/ops/pull/2228), but I'm not sure it's related. CC @easyCZ . |
If needed, even for a test, we can revert https://github.com/gitpod-io/ops/pull/2228 to eliminate it as the source. |
Working on the assumption that it's the workspace URL that's wrong and not the certificates, these are set here: gitpod/install/installer/pkg/components/ws-manager/configmap.go Lines 140 to 141 in faa6b30
so if the hardcoded But if the URL is wrong, why do we see an error about certs rather than have the request time out? |
This is how we used to construct these URLs in the helm chart: gitpod/chart/templates/ws-manager-configmap.yaml Lines 74 to 75 in 2f988c9
so it does look as though we need to set them via the installer in a similar way... |
Really struggling without this! @andrew-farries your pull request looks good! |
Re-opening this as #10127 had to be reverted because it broke preview environments (see internal discussion). The installer (which we also use to deploy to preview environments) defaults to setting:
Which breaks when used as part of the URL template strings in a preview env installation (we don't have a cert for that domain, and I'm not sure image build logs would be available there anyway). Maybe @geropl can provide some context about why we need that default when he is back. |
Can you add a little color on how best to debug? Historically, I have used a three step process.
docker build -f .gitpod.Dockerfile -t gitpod-dockerfile-test .
docker run --rm -it gitpod-dockerfile-test /bin/bash
Lately, I get through steps 2 and 3 with no obvious issues. Then, run into the "Error: headless task failed" message. Is there a step I can/should be doing and am missing OR is there something happening here that isn't easily smoked out? Thanks, |
Bug description
I was trying to open this repo https://gitpod.io/#https://github.com/axonasif/wrover-experimental/tree/wokwi-test after adding a custom dockerfile

Steps to reproduce
Open https://github.com/axonasif/wrover-experimental/tree/wokwi-test on Gitpod.
Workspace affected
axonasif-wroverexperime-u9ik2sre8pl
Expected behavior
No response
Example repository
https://github.com/axonasif/wrover-experimental/tree/wokwi-test
Anything else?
A similar report on Discord today: https://discord.com/channels/816244985187008514/972590280446476308/973228246407733288
The text was updated successfully, but these errors were encountered: