# flyctl deploy: You hit a Fly API error with request ID...

**URL:** <https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464>\
**Category:** General\
**Created:** [September 27, 2022, 4:54am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464 "2022-09-27T04:54:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuxuryMode](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LuxuryMode](https://community.fly.io/u/LuxuryMode)\
**Post date:** [September 27, 2022, 4:54am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/1 "2022-09-27T04:54:28Z")

</div>

Just signed up for fly and went through the sample Python/Flask app. Tested the app locally and all seemed good. Then ran the following commands:

```auto
> flyctl auth login
> flyctl launch
> flyctl deploy

```

After the image was built, pushed to fly and a release created, I got a not-so-helpful error message “Error You hit a Fly API error with request ID:…”

```auto
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/my-rando-app]
83d85471d9f8: Pushed
0f651b8f92a6: Pushed
f6b3eafdc09a: Pushed
1bc0789c8944: Pushed
185181dd43f0: Pushed
96ed7248d21f: Pushed
c23057e83cef: Pushed
0ce631bf90b9: Pushed
4937035502fd: Pushed
c892a6f3f753: Pushed
17b998bb08c1: Pushed
4a641e21953d: Pushed
deployment-01GDYMBBFXKNQJMB6BK96K5PCD: digest: sha256:93aaebde6d4b5e8663bed43f85c4859655f9e891a05ada73e80e05403a12a9af size: 2831
--> Pushing image done
image: registry.fly.io/my-rando-app:deployment-01GDYMBBFXKNQJMB6BK96K5PCD
image size: 328 MB
==> Creating release
Error You hit a Fly API error with request ID: 01GDYMDKY8XJ8A2R4KXSHEP2F2-lga

```

Any ideas on how to resolve? Thanks!

---

<div class="post-metadata">

**Author:** ![jakemiles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jakemiles/32/5903_2.png) [@jakemiles](https://community.fly.io/u/jakemiles)\
**Post date:** [September 27, 2022, 5:30am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/2 "2022-09-27T05:30:26Z")

</div>

Same problem here a few minutes ago. I put together a custom dockerfile, but it exposes port 8080, I can run the docker image and hit the server it runs from a browser on the host machine. `fly launch` worked, but `fly deploy` reports the same error as above, with a different request ID.

---

<div class="post-metadata">

**Author:** ![Arkelis](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/arkelis/32/5910_2.png) [@Arkelis](https://community.fly.io/u/Arkelis)\
**Post date:** [September 27, 2022, 7:16am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/3 "2022-09-27T07:16:23Z")

</div>

Same with hello fly from the getting started section from docs

---

<div class="post-metadata">

**Author:** ![flyyyy](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@flyyyy](https://community.fly.io/u/flyyyy)\
**Post date:** [September 27, 2022, 7:35am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/4 "2022-09-27T07:35:06Z")

</div>

same here, Error You hit a Fly API error with request ID  
this is the toml file looks like

app = “appname”  
kill\_signal = “SIGINT”  
kill\_timeout = 5  
processes =

i think its with [fly.io](http://fly.io) server issue

---

<div class="post-metadata">

**Author:** ![azim](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@azim](https://community.fly.io/u/azim)\
**Post date:** [September 27, 2022, 7:55am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/5 "2022-09-27T07:55:24Z")

</div>

Same here. Getting the same exact error since few hours ago

---

<div class="post-metadata">

**Author:** ![Mikepicker](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mikepicker/32/5913_2.png) [@Mikepicker](https://community.fly.io/u/Mikepicker)\
**Post date:** [September 27, 2022, 8:52am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/6 "2022-09-27T08:52:47Z")

</div>

Same situation. I even tried switching regions with no success.

---

<div class="post-metadata">

**Author:** ![Mahalo-Wong](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mahalo-wong/32/6091_2.png) [@Mahalo-Wong](https://community.fly.io/u/Mahalo-Wong)\
**Post date:** [September 27, 2022, 9:15am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/7 "2022-09-27T09:15:22Z")

</div>

Same issue. Can’t success with **flyio/hellofly:latest** or other Docker Hub pre-built images.

---

<div class="post-metadata">

**Author:** ![Nayan\_Patel](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/nayan_patel/32/5915_2.png) [@Nayan\_Patel](https://community.fly.io/u/Nayan_Patel)\
**Post date:** [September 27, 2022, 9:37am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/8 "2022-09-27T09:37:10Z")

</div>

Same issue here,

==\> Creating release  
Error You hit a Fly API error with request ID: 01GDZ4STEWA05WD7SA56NV4CN0-cdg

Edit: Resolved by doing `flyctl launch`

---

<div class="post-metadata">

**Author:** ![azim](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@azim](https://community.fly.io/u/azim)\
**Post date:** [September 27, 2022, 9:59am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/9 "2022-09-27T09:59:15Z")

</div>

Recreate everything and run `flyctl launch` works

---

<div class="post-metadata">

**Author:** ![jakemiles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jakemiles/32/5903_2.png) [@jakemiles](https://community.fly.io/u/jakemiles)\
**Post date:** [September 27, 2022, 1:55pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/10 "2022-09-27T13:55:57Z")

</div>

FYI the issue seems resolved - I just ran `fly deploy` and it deployed without error. Didn’t need to rerun `fly launch`.

---

<div class="post-metadata">

**Author:** ![LuxuryMode](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@LuxuryMode](https://community.fly.io/u/LuxuryMode)\
**Post date:** [September 27, 2022, 1:57pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/11 "2022-09-27T13:57:45Z")

</div>

I reran fly launch and it seemed to get further, then crapped out with a separate python error:

```auto
2022-09-27T13:46:30.000 [info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/importlib/ __init__.py", line 126, in import_module
2022-09-27T13:46:30.000 [info] return _bootstrap._gcd_import(name[level:], package, level)
2022-09-27T13:46:30.000 [info] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-09-27T13:46:30.000 [info] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-09-27T13:46:30.000 [info] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
2022-09-27T13:46:30.000 [info] ModuleNotFoundError: No module named 'server'
2022-09-27T13:46:30.000 [info] [2022-09-27 13:46:30 +0000] [532] [INFO] Worker exiting (pid: 532)
2022-09-27T13:46:30.000 [info] [2022-09-27 13:46:30 +0000] [515] [INFO] Shutting down: Master
2022-09-27T13:46:30.000 [info] [2022-09-27 13:46:30 +0000] [515] [INFO] Reason: Worker failed to boot.
2022-09-27T13:46:31.000 [info] Starting clean up.
***v0 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v1

Troubleshooting guide at https://fly.io/docs/getting-started/troubleshooting/
Error abort

```

Not sure why, I’m simply deploying the cloned fly Python sample app.

Then tried `flyctl deploy` and got:

```auto
2022-09-27T13:59:41Z [info][2022-09-27 13:59:41 +0000] [532] [INFO] Worker exiting (pid: 532)
2022-09-27T13:59:41Z [info][2022-09-27 13:59:41 +0000] [515] [INFO] Shutting down: Master
2022-09-27T13:59:41Z [info][2022-09-27 13:59:41 +0000] [515] [INFO] Reason: Worker failed to boot.

```

---

<div class="post-metadata">

**Author:** ![MikuSan](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@MikuSan](https://community.fly.io/u/MikuSan)\
**Post date:** [September 29, 2022, 6:04pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/12 "2022-09-29T18:04:13Z")

</div>

Hi! I had a same problem after re-creating my app builder.  
I removed my app then tried `flyctl launch` but it doesn’t solve my problem.  
Also I tried repeating `flyctl deploy` , the error message remains.

 ![スクリーンショット 2022-09-29 195324](https://global.discourse-cdn.com/fly1/original/3X/0/1/01c2b3d895ac892ace9b3eae976cd6465a0e2d20.jpeg)

---

<div class="post-metadata">

**Author:** ![fideloper-fly](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/fideloper-fly/32/3834_2.png) [@fideloper-fly](https://community.fly.io/u/fideloper-fly)\
**Post date:** [September 29, 2022, 6:25pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/13 "2022-09-29T18:25:50Z")

</div>

Hi!

We’re working through an incident at the moment: [https://status.flyio.net/](https://status.flyio.net/)

That’s likely related - give it a try after the issue is resolved and let us know what you see then!

---

<div class="post-metadata">

**Author:** ![jphenow](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jphenow/32/51156_2.png) [@jphenow](https://community.fly.io/u/jphenow)\
**Post date:** [September 29, 2022, 9:50pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/14 "2022-09-29T21:50:50Z")

</div>

Heya, in case you missed it, this should be resolved now

---

<div class="post-metadata">

**Author:** ![moonstarsky37](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/moonstarsky37/32/6181_2.png) [@moonstarsky37](https://community.fly.io/u/moonstarsky37)\
**Post date:** [October 9, 2022, 6:57am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/15 "2022-10-09T06:57:55Z")

</div>

Hi! I an new to [fly.io](http://fly.io) and just run the python tutorial in the document.  
However, the problem as above seems not revolved.  
Any advice is appreciated.

---

<div class="post-metadata">

**Author:** ![Cadulogy](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cadulogy](https://community.fly.io/u/Cadulogy)\
**Post date:** [October 9, 2022, 7:05am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/16 "2022-10-09T07:05:11Z")

</div>

Maybe your problem will be similar to this:  
[[URGENT] Contact Lost with instance - Questions / Help - Fly.io](https://community.fly.io/t/urgent-contact-lost-with-instance/7736/10)  
@moonstarsky37

---

<div class="post-metadata">

**Author:** ![moonstarsky37](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/moonstarsky37/32/6181_2.png) [@moonstarsky37](https://community.fly.io/u/moonstarsky37)\
**Post date:** [October 9, 2022, 7:35am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/17 "2022-10-09T07:35:38Z")

</div>

@Cadulogy Thanks for your advice.  
I take a look in this reply and check the  
flyctl logs -a MY\_FLY-builder  
It shows “Deadline reached without docker build”

I think the problem is like the reply as ‘LuxuryMode’  
since my deploy error also shows

```auto
2022-10-09T06:53:04.000 [info] return _bootstrap._gcd_import(name[level:], package, level)
2022-10-09T06:53:04.000 [info] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-10-09T06:53:04.000 [info] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-10-09T06:53:04.000 [info] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
2022-10-09T06:53:04.000 [info] ModuleNotFoundError: No module named 'server'
2022-10-09T06:53:04.000 [info] [2022-10-09 06:53:04 +0000] [538] [INFO] Worker exiting (pid: 538)
2022-10-09T06:53:04.000 [info] [2022-10-09 06:53:04 +0000] [520] [INFO] Shutting down: Master
2022-10-09T06:53:04.000 [info] [2022-10-09 06:53:04 +0000] [520] [INFO] Reason: Worker failed to boot.
2022-10-09T06:53:05.000 [info] Starting clean up.

```

---

<div class="post-metadata">

**Author:** ![crossoni](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@crossoni](https://community.fly.io/u/crossoni)\
**Post date:** [October 18, 2022, 10:30am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/18 "2022-10-18T10:30:44Z")

</div>

I am still having this same issue. I managed to deploy the app once by spamming `flyctl launch` and `flyctl deploy` until it finally succeeded.

After that I unfortunately accidentally removed the project and now I have been spamming those commands over 10 times and I am still unable to deploy the project…

Oh wait, just now it finally succeeded again. Only thing that I did differently was to open my project in the [fly.io](http://fly.io) dashboard and open the monitoring tab while deploying.

---

<div class="post-metadata">

**Author:** ![ugn](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@ugn](https://community.fly.io/u/ugn)\
**Post date:** [October 18, 2022, 10:58am UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/19 "2022-10-18T10:58:33Z")

</div>

try:

```auto
flyctl version update
flyctl agent restart

```

and

```auto
fly deploy

```

---

<div class="post-metadata">

**Author:** ![hb9cwp](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/hb9cwp/32/15573_2.png) [@hb9cwp](https://community.fly.io/u/hb9cwp)\
**Post date:** [October 18, 2022, 12:15pm UTC](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464/20 "2022-10-18T12:15:18Z")

</div>

Since 2-3 hours, I am seeing the same error in FRA & AMS (have not tried other regions yet):

```auto
image: registry.fly.io/vauXXX99:deployment-01GFNFZ35QH8JF3ZEHDKGX2BC4
image size: 221 MB
==> Creating release
Error You hit a Fly API error with request ID: 01GFNFZ6HN3Z750PDVRA5MEJTD-fra

```

flyctl upgrade, agent restart, launch/deploy did not help. Neither `fly deploy --verbose`, nor log provides any additional info.

[Next page](https://community.fly.io/t/flyctl-deploy-you-hit-a-fly-api-error-with-request-id/7464.md?page=2)
