deployment failing with "Error An unknown error occured."

I don’t see any further hints for debugging. What can I do to resolve this?

Also, “occurred” has two Rs. :slight_smile:

==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-aged-field-2073 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
[REDACTED]                                                                           0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository []
5f70bf18a086: Layer already exists 
4910b5fce848: Pushed 
61bdb38c3974: Pushed 
24302eb7d908: Layer already exists 
deployment-1653592394: digest: sha256:5c663ee49fa4d991b70a0b18f11844831146f91fa619b90512f3260a227379a1 size: 1157
--> Pushing image done
image size: 51 MB
==> Creating release
Error An unknown error occured.

Can you paste your fly.toml? Looks like your metrics block may be formatted incorrectly.

Ah, we did add that recently. Is this enough to work from?

app = "REDACTED"

kill_signal = "SIGINT"
kill_timeout = 5
processes = []



  # TODO: do we need this?
  allowed_public_ports = []
  auto_rollback = true






  port = 9091
  path = "/metrics"

Try changing to [metrics] in single brackets.

Bingo! Guess I found a new corner case for you to un-unknown an error. :slight_smile:

Is there a tool I can use to validate a fly.toml short of doing a full deploy?

Believe it or not, the only tool we have now is the Even Better TOML VSCode extension. Behind the scenes, that just uses a JSON schema. We haven’t gotten around to using this for validation in flyctl yet.

1 Like