error finding the release_command machine <machine id>

Migrated my app to v2 and now can’t run release commands :thinking: what am I doing wrong

Error: release command failed - aborting deployment. error finding the 
release_command machine 148ed235f59d08 exit event: 
timeout reached waiting for healthchecks to pass for machine 148ed235f59d08 
failed to get VM 148ed235f59d08: Get "https://api.machines.dev/v1/apps/trivia
/machines/148ed235f59d08": net/http: request canceled

Does your fly.toml still declare a release_command under [deploy]?

yep still does
I managed to get logs of that failing machine

2023-04-24T12:01:47Z runner[148ed235f59d08] cdg [info]Configuring firecracker
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info]Starting init (commit: 1578345)...
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info]Preparing to run: `/app/bin/migrate` as nobody
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info]Error: UnhandledIoError(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.089495] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.090158] CPU: 0 PID: 1 Comm: init Not tainted 5.12.2 #1
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.090636] Call Trace:
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.090862]  show_stack+0x52/0x58
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.091190]  dump_stack+0x6b/0x86
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.091482]  panic+0xfb/0x2bc
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.091741]  do_exit.cold+0x60/0xb0
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.092065]  do_group_exit+0x3b/0xb0
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.092399]  __x64_sys_exit_group+0x18/0x20
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.092770]  do_syscall_64+0x38/0x50
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.093078]  entry_SYSCALL_64_after_hwframe+0x44/0xae
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.093526] RIP: 0033:0x7fb8e224e933
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.093833] Code: eb ef 48 8b 76 28 e9 9b 03 00 00 64 48 8b 04 25 00 00 00 00 48 8b b0 b0 00 00 00 e9 af ff ff ff 48 63 ff b8 e7 00 00 00 0f 05 <ba> 3c 00 00 00 48 89 d0 0f 05 eb f9 90 ba 64 2f 00 00 c6 47 0e 00
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.095507] RSP: 002b:00007fff60839b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.096164] RAX: ffffffffffffffda RBX: 00007fb8e2041a80 RCX: 00007fb8e224e933
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.096791] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.097379] RBP: 0000000000000001 R08: 00007fb8e2348628 R09: 0000000000000000
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.097976] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff60839bf8
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.098564] R13: 00007fff60839c08 R14: 0000000000000000 R15: 0000000000000000
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.099221] Kernel Offset: disabled
2023-04-24T12:01:47Z app[148ed235f59d08] cdg [info][    0.099521] Rebooting in 1 seconds..
2023-04-24T12:01:48Z app[148ed235f59d08] cdg [warn]Virtual machine exited abruptly
2023-04-24T12:01:49Z runner[148ed235f59d08] cdg [info]machine restart policy set to 'no', not restarting

My release script was not executable :man_facepalming:

Oh, this is a very common one with scripts. Your /app/bin/migrate is probably lost its executable rights. Try this link and see if that fixes it: How to fix permission denied with Phoenix shell scripts? - #4 by kurt

1 Like

Thanks for spending time on me! Appreciate the help :smiley:

1 Like

Happy to help :smiling_face:

1 Like

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