difficult to debug the release fail

Hello, I’ve an phoenix app, in a deploy goes until the release phase, but I got this error:

You can detach the terminal anytime without stopping the deployment
==> Release command
Command: /app/entry eval Chaskiq.Release.migrate
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine

Error Release command failed, deployment aborted

not sure what failing, is not giving much info. Also the docker image is quite big 2.5 GB, and the deploy takes a lot of time :frowning:

Hi @Miguel_Michelson_Mar

Try checking the logs using fly logs as it can provide more detail.

You could also try using fly status --all to find the failing instance, then using the instance ID run fly vm status <instance-id> to get more details.

Thanks @charsleysa, thanks for your reply. I see this:

Preparing to run: `/app/entry eval MyApp.Release.migrate` as root

2022-01-23T04:51:07.849 app[1ceecbf2] scl [info] Error: UnhandledIoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })

2022-01-23T04:51:07.851 app[1ceecbf2] scl [info] [ 0.150920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100