# Keep getting failed builds after canceling one midstream. Wireguard errors?

**URL:** <https://community.fly.io/t/keep-getting-failed-builds-after-canceling-one-midstream-wireguard-errors/28394>\
**Category:** General\
**Tags:** builders\
**Created:** [July 31, 2026, 10:39pm UTC](https://community.fly.io/t/keep-getting-failed-builds-after-canceling-one-midstream-wireguard-errors/28394 "2026-07-31T22:39:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wowcool](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/wowcool/32/49318_2.png) [@wowcool](https://community.fly.io/u/wowcool)\
**Post date:** [July 31, 2026, 10:39pm UTC](https://community.fly.io/t/keep-getting-failed-builds-after-canceling-one-midstream-wireguard-errors/28394/1 "2026-07-31T22:39:43Z")

</div>

Problem: Every deploy attempt fails when the Depot builder tries to push the image to the Fly internal registry. The error is always:

`unexpected status from HEAD request to`

`http://_api.internal:5000/v2/[app_name]/blobs/sha256:<hash>?ns=registry.fly.io`

`401 Unauthorized`

When it started: After a `flyctl deploy` was cancelled mid-push (Ctrl-C / workflow killed). No deploys have succeeded since.

What we have confirmed:

- No pending/in-progress releases exist in `flyctl releases`
- The external registry endpoint (`registry.fly.io`) accepts authentication and returns 200 on the same blob HEAD requests, so credentials are valid
- `--recreate-builder` forces a brand new Depot builder machine and still gets the same 401
- `--no-cache` generates completely new layer SHAs never seen before and still gets the same 401
- A new API token makes no difference
- The 401 is consistently on the internal WireGuard proxy (`_api.internal:5000`), not on the external registry

Workaround in place: `--wg=false` bypasses the internal proxy and routes over HTTPS, which works. But the underlying WireGuard proxy issue remains. But I dont want to forgo wireguard if I can avoid it. Is this a [fly.io](http://fly.io) cache issue, or other issue [fly.io](http://fly.io) @flyio-support needs to help me with?

If so, Question for Fly Team: Is the internal registry proxy for this app in a corrupted state from the cancelled push? Will it self-heal and if so how long does that take? Or does it need to be manually reset on your side? Thanks!!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [August 11, 2026, 11:20am UTC](https://community.fly.io/t/keep-getting-failed-builds-after-canceling-one-midstream-wireguard-errors/28394/3 "2026-08-11T11:20:27Z")

</div>

Closed on August 11, 2026, 11:20am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
