# Error failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

**URL:** <https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042>\
**Category:** Questions / Help\
**Created:** [May 6, 2022, 12:02am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042 "2022-05-06T00:02:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![charklewis](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/charklewis/32/2858_2.png) [@charklewis](https://community.fly.io/u/charklewis)\
**Post date:** [May 6, 2022, 12:02am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/1 "2022-05-06T00:02:01Z")

</div>

I am having my build failing today with the below. I am not too sure why this is the case. Is there any suggested troubleshooting I can do?

```auto
==> Pushing image to fly
100
The push refers to repository [registry.fly.io/vetrx-app-development]
101
d438812530b1: Preparing
102
e03b72389f0b: Preparing
103
...
112
e4fc34115d04: Waiting
113
0baa13659589: Waiting
114
74f7cf53c3a5: Waiting
115
8573f1735336: Waiting
116
afbcd854ab4c: Waiting
117
9c1b6dd6c1e6: Waiting
118
Error failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

```

---

<div class="post-metadata">

**Author:** ![michael](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/michael/32/16_2.png) [@michael](https://community.fly.io/u/michael)\
**Post date:** [May 6, 2022, 12:07am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/2 "2022-05-06T00:07:39Z")

</div>

This is on our end. We were performing emergency maintenance on the registry and the deployment took longer than expected. It should be done now, let us know if you see any more issues.

---

<div class="post-metadata">

**Author:** ![charklewis](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/charklewis/32/2858_2.png) [@charklewis](https://community.fly.io/u/charklewis)\
**Post date:** [May 6, 2022, 12:09am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/3 "2022-05-06T00:09:55Z")

</div>

Seems to working on now, thanks!

---

<div class="post-metadata">

**Author:** ![frafra](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/frafra/32/3545_2.png) [@frafra](https://community.fly.io/u/frafra)\
**Post date:** [May 16, 2022, 10:46pm UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/4 "2022-05-16T22:46:08Z")

</div>

I can confirm this happens from time to time. Running `flyctl deploy` again fixes that.

---

<div class="post-metadata">

**Author:** ![oldsloth](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/oldsloth/32/3753_2.png) [@oldsloth](https://community.fly.io/u/oldsloth)\
**Post date:** [May 27, 2022, 1:42am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/5 "2022-05-27T01:42:03Z")

</div>

I’m experiencing this issue after uninstalling and reinstalling the CLI:

```auto
❯ fly deploy
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-rough-sun-5961 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 4.1s (0/1)                                                                                
[+] Building 1.6s (11/11) FINISHED                                                                     
 => [internal] load remote build context 0.0s
 => copy /context / 0.4s
 => [internal] load metadata for docker.io/library/python:3.7 0.1s
 => [1/7] FROM docker.io/library/python:3.7@sha256:11c044f967935362ef8291811ed01b0708a40668c43c8 0.0s
 => CACHED [2/7] RUN apt-get update && apt-get install -y python3-pip python3-venv p 0.0s
 => CACHED [3/7] RUN mkdir -p /app 0.0s
 => CACHED [4/7] WORKDIR /app 0.0s
 => CACHED [5/7] COPY requirements.txt . 0.0s
 => CACHED [6/7] RUN pip install -r requirements.txt 0.0s
 => [7/7] COPY . . 0.4s
 => exporting to image 0.4s
 => => exporting layers 0.4s
 => => writing image sha256:ba4c850eb788d3bf272efc515c2f67f01e66a90267e5be3290e3a1c5dd7ec6d6 0.0s
 => => naming to registry.fly.io/justrecipe:deployment-1653615561 0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/justrecipe]
f66f68f9ff4f: Preparing 
22c7b3c7d04d: Preparing 
056d54c04b13: Preparing 
5f70bf18a086: Preparing 
7752ae6b5fd7: Preparing 
00800d747256: Waiting 
2e0764ceda8b: Waiting 
3f5d38b4936d: Waiting 
7be8268e2fb0: Waiting 
b889a93a79dd: Waiting 
9d4550089a93: Waiting 
a7934564e6b9: Waiting 
1b7cceb6a07c: Waiting 
b274e8788e0c: Waiting 
78658088978a: Waiting 
Error failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

```

---

<div class="post-metadata">

**Author:** ![lyquocnam](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lyquocnam/32/15958_2.png) [@lyquocnam](https://community.fly.io/u/lyquocnam)\
**Post date:** [May 27, 2022, 5:49am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/6 "2022-05-27T05:49:05Z")

</div>

this happen again now

---

<div class="post-metadata">

**Author:** ![jcrapuchettes](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jcrapuchettes/32/3194_2.png) [@jcrapuchettes](https://community.fly.io/u/jcrapuchettes)\
**Post date:** [May 27, 2022, 5:52am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/7 "2022-05-27T05:52:25Z")

</div>

We are running into the same issue now.

---

<div class="post-metadata">

**Author:** ![GabeMeister](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/gabemeister/32/3766_2.png) [@GabeMeister](https://community.fly.io/u/GabeMeister)\
**Post date:** [May 27, 2022, 5:52am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/8 "2022-05-27T05:52:45Z")

</div>

We are noticing this as well!

---

<div class="post-metadata">

**Author:** ![dima-savr](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/dima-savr/32/3767_2.png) [@dima-savr](https://community.fly.io/u/dima-savr)\
**Post date:** [May 27, 2022, 5:57am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/9 "2022-05-27T05:57:06Z")

</div>

same for me

---

<div class="post-metadata">

**Author:** ![mwills](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mwills/32/40482_2.png) [@mwills](https://community.fly.io/u/mwills)\
**Post date:** [May 27, 2022, 8:07am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/10 "2022-05-27T08:07:26Z")

</div>

Ah not just me.

[edit] ah it just worked!

[edit 2] mostly… pulling an image fails occasionally at the moment.

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [May 27, 2022, 10:01am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/12 "2022-05-27T10:01:45Z")

</div>

Sorry for the trouble. This is related to an ongoing incident with AWS DNS resolution. We thought it was fixed, but it’s come back.

> **[Intermittent API unavailability](https://status.flyio.net/incidents/rzdz93r7r1wt)**
>
> Fly.io's Status Page - Intermittent API unavailability.

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [May 27, 2022, 10:36am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/13 "2022-05-27T10:36:30Z")

</div>

We’ve applied a fix for this and are monitoring closely.

---

<div class="post-metadata">

**Author:** ![mwills](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mwills/32/40482_2.png) [@mwills](https://community.fly.io/u/mwills)\
**Post date:** [May 27, 2022, 4:24pm UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/14 "2022-05-27T16:24:20Z")

</div>

Thanks much @jsierles!

---

<div class="post-metadata">

**Author:** ![frafra](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/frafra/32/3545_2.png) [@frafra](https://community.fly.io/u/frafra)\
**Post date:** [June 3, 2022, 10:06pm UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/15 "2022-06-03T22:06:17Z")

</div>

It still happens from time to time.

---

<div class="post-metadata">

**Author:** ![michaelfrieze](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/michaelfrieze/32/3831_2.png) [@michaelfrieze](https://community.fly.io/u/michaelfrieze)\
**Post date:** [June 4, 2022, 3:33am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/16 "2022-06-04T03:33:45Z")

</div>

It’s still happening for me as well sometimes.

---

<div class="post-metadata">

**Author:** ![cake4](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@cake4](https://community.fly.io/u/cake4)\
**Post date:** [June 30, 2022, 2:43pm UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/17 "2022-06-30T14:43:33Z")

</div>

I get this error consistently when trying to deploy via Github Actions using [superfly/flyctl-actions](https://github.com/superfly/flyctl-actions). From my local machine, the build and deployment (–remote-only) works just fine, even when using the same API token. Any ideas?

---

<div class="post-metadata">

**Author:** ![ngloom](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/ngloom/32/4315_2.png) [@ngloom](https://community.fly.io/u/ngloom)\
**Post date:** [July 10, 2022, 2:23am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/18 "2022-07-10T02:23:32Z")

</div>

never success here 😭

---

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [July 12, 2022, 5:33am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/19 "2022-07-12T05:33:22Z")

</div>

For those seeing this issue - which regions are you located in?

---

<div class="post-metadata">

**Author:** ![kris1](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@kris1](https://community.fly.io/u/kris1)\
**Post date:** [September 3, 2022, 11:42pm UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/20 "2022-09-03T23:42:57Z")

</div>

@jsierles - experiencing this issue just now in the SYD region!

---

<div class="post-metadata">

**Author:** ![Yaeger](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/yaeger/32/44383_2.png) [@Yaeger](https://community.fly.io/u/Yaeger)\
**Post date:** [September 26, 2022, 9:55am UTC](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042/21 "2022-09-26T09:55:57Z")

</div>

We are getting this error right now:

```auto
Error failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

```

Region was `ams`, it’s working now again.

[Next page](https://community.fly.io/t/error-failed-to-fetch-an-image-or-build-from-source-error-rendering-push-status-stream-unauthorized-not-allowed/5042.md?page=2)
