Cannot deploy PHP app

I cannot get my app to build. It stalls on:

$ fly deploy
==> Verifying app config
Validating /home/lsolesen/projects/vih-viggo-standalone/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-holy-darkness-6413 ready
==> Building image with Buildpacks
--> docker host: 20.10.12 linux x86_64
full: Pulling from paketobuildpacks/builder
Digest: sha256:11068838eeb5cb3a34bb34f56de5e9a5c40c1eb31995046e3076ebde7b499c9f
Status: Image is up to date for paketobuildpacks/builder:full
full-cnb: Pulling from paketobuildpacks/run
Digest: sha256:5373ba74412664ac24f132e29b94808467d8522e5f79557d5aea72571c15e7fe
Status: Image is up to date for paketobuildpacks/run:full-cnb
latest: Pulling from paketo-buildpacks/php
Digest: sha256:6224ada5fa63b1e4b900a3fd4c7776e590d835f0cf6d6befd9a6ee8d1d50c848
Status: Image is up to date for gcr.io/paketo-buildpacks/php:latest

Nothing happens after the last line - even waiting for 20 minutes.

Source for fly.toml is here: https://github.com/vih/vih-viggo-standalone/blob/master/fly.toml

Tried again. Now this error message is appended after a long time:

Error: failed to fetch an image or build from source: failed to write image to the following tags: [pack.local/builder/74637077786b76696566:latest: loading image "pack.local/builder/74637077786b76696566:latest". first error: embedded daemon response: max depth exceeded]

(Sorry, thought I replied to this already!)

The above appears to be the relevant error on the latest message.

That usually means some kind of recursion is going on, and usually is a clue something weird is going on in the Docker image being used.

Here’s an example (related to docker-compose where the resulting image and the FROM <foo> portion of a Dockerfile match): Docker Max Depth Exceeded | How to Solve ?

But I’m not sure how that would interact exactly with the buildpacks, it might take some manual inspection of those build packs to see.

I wonder if it would be worth destroying the builder in your account (Fly will re-create a new one on next deploy).

How do I destroy the builder to try that out?

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