Deployment issue - cannot create release

Hi,

One of my services is stuck and cannot be deployed again:

DEBUG ← 500 GraphQL Playground (1.02s) {“errors”:[{“message”:“An unknown error occured.”,“extensions”:{“code”:“SERVER_ERROR”}}],“data”:{}}
Error An unknown error occured.

Any clue on how to fix this?

Relevant output below:


image: registry.fly.io/randock-web:deployment-1653060112
image size: 117 MB
==> Creating release
DEBUG → POST GraphQL Playground {{“query”:“mutation($input: DeployImageInput!) { deployImage(input: $input) { release { id version reason description deploymentStrategy user { id email name } evaluationId createdAt } releaseCommand { id command evaluationId } } }”,“variables”:{“input”:{“appId”:“randock-web”,“image”:“registry.fly.io/randock-web:deployment-1653060112",“services”:null,“definition”:{“env”:{},“experimental”:{“allowed_public_ports”:[],“auto_rollback”:true},“kill_signal”:“SIGINT”,“kill_timeout”:5,“processes”:[],“services”:[{“concurrency”:{“hard_limit”:25,“soft_limit”:20,“type”:“connections”},“http_checks”:[{“grace_period”:“5s”,“interval”:10000,“method”:“get”,“path”:"/api/health",“protocol”:“http”,“timeout”:2000,“tls_skip_verify”:false}],“internal_port”:3000,“ports”:[{“handlers”:[“http”],“port”:80},{“handlers”:[“tls”,“http”],“port”:443}],“processes”:[“app”],“protocol”:“tcp”,“script_checks”:[],“tcp_checks”:[{“grace_period”:“1s”,“interval”:“15s”,“restart_limit”:0,“timeout”:“2s”}]}]},"strategy”:null}}}
}
DEBUG ← 500 GraphQL Playground (1.02s) {“errors”:[{“message”:“An unknown error occured.”,“extensions”:{“code”:“SERVER_ERROR”}}],“data”:{}}
Error An unknown error occured.

Hi @randock

Can you run fly doctor and try redploying with LOG_LEVEL = debug flyctl deploy command and paste the output here.

 fly doctor
Testing authentication token... PASSED
Testing flyctl agent... PASSED
Testing local Docker instance... PASSED
Pinging WireGuard gateway (give us a sec)... PASSED
DEBUG Loaded flyctl config from/Users/jop/.fly/config.yml
DEBUG determined hostname: "Jops-MacBook-Pro-3.local"
DEBUG determined working directory: "/Users/jop/repositories/randock/web"
DEBUG determined user home directory: "/Users/jop"
DEBUG determined config directory: "/Users/jop/.fly"
DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG initialized task manager.
DEBUG skipped querying for new release
DEBUG client initialized.
DEBUG app config loaded from /Users/jop/repositories/randock/web/fly.toml
==> Verifying app config
--> Verified app config
==> Building image

(...)

--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/randock-web]
5c2d5eb46950: Pushed
b7c6627f9534: Pushed
396dee42fdc5: Layer already exists
d751cdc8d026: Layer already exists
ad429b2ff56c: Layer already exists
207d2d1ee14a: Layer already exists
08d9d09266e6: Layer already exists
a8bc3dade6cc: Layer already exists
b96a177683f0: Layer already exists
17b988d160a7: Layer already exists
7e70902c1c87: Layer already exists
4fc242d58285: Layer already exists
deployment-1653074138: digest: sha256:b387c5f7e2d620a77a8b5797d0b8c466efbb1bcc79176e363d68bc41a206e61a size: 2825
--> Pushing image done
DEBUG result image:&{ID:sha256:6c4f878cb714167907e74214a802ab75d462a6dedb13e0270982d779195d1a80 Tag:registry.fly.io/randock-web:deployment-1653074138 Size:116767736} error:<nil>
image: registry.fly.io/randock-web:deployment-1653074138
image size: 117 MB
==> Creating release
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: DeployImageInput!) { deployImage(input: $input) { release { id version reason description deploymentStrategy user { id email name } evaluationId createdAt } releaseCommand { id command evaluationId } } }","variables":{"input":{"appId":"randock-web","image":"registry.fly.io/randock-web:deployment-1653074138","services":null,"definition":{"env":{},"experimental":{"allowed_public_ports":[],"auto_rollback":true},"kill_signal":"SIGINT","kill_timeout":5,"processes":[],"services":[{"concurrency":{"hard_limit":25,"soft_limit":20,"type":"connections"},"http_checks":[{"grace_period":"5s","interval":10000,"method":"get","path":"/api/health","protocol":"http","timeout":2000,"tls_skip_verify":false}],"internal_port":3000,"ports":[{"handlers":["http"],"port":80},{"handlers":["tls","http"],"port":443}],"processes":["app"],"protocol":"tcp","script_checks":[],"tcp_checks":[{"grace_period":"1s","interval":"15s","restart_limit":0,"timeout":"2s"}]}]},"strategy":null}}}
}
DEBUG <-- 500 https://api.fly.io/graphql (972.12ms) {"errors":[{"message":"An unknown error occured.","extensions":{"code":"SERVER_ERROR"}}],"data":{}}
Error An unknown error occured.```

Any clue?

Hey @randock thanks for your response, we’ve seen this error message before because of fly.toml formatting issues, can you post your fly.toml?

You might also find this post from @greg which gives a great overview of general troubleshooting issues for Error An unknown error occured message.

1 Like

I copy/pasted from a project that works, so it doesn’t seem to be a toml issue. I guess since recent updates you get a support it. Maybe somebody can see what’s going on with that:

Error You ran into an error connecting to the Fly API. If the error persists, keep this request ID to help Fly Support track it down: 01G4D8Z1RWPEEJ3WTGW289T2DK-ams