My deployment is stuck at the release task which performs a database migration:
==> Release command
Command: /bin/sh /opt/app/migrate.sh
Starting instance
Configuring virtual machine
Pulling container image
Unpacking image
Preparing kernel init
Configuring firecracker
Starting virtual machine
Starting init (commit: 7943db6)...
Preparing to run: `/bin/sh /opt/app/migrate.sh` as nobody
2021/12/17 10:42:22 listening on [fdaa:0:3610:a7b:2809:a51a:e344:2]:22 (DNS: [fdaa::3]:53)
Running DB migration release task 💈
Reaped child process with pid: 566 and signal: SIGUSR1, core dumped? false
10:42:24.390 [info] migrating repos for matchhaus
Reaped child process with pid: 568 and signal: SIGUSR1, core dumped? false
Running release task (running)...⣯
The deploy command just hangs at Running release task (running)...
and never exits.
The logs indicate that it should be working but the command never succeeds:
2021-12-17T10:42:21.478 runner[a51ae344] lhr [info] Configuring virtual machine
2021-12-17T10:42:21.480 runner[a51ae344] lhr [info] Pulling container image
2021-12-17T10:42:21.771 runner[a51ae344] lhr [info] Unpacking image
2021-12-17T10:42:21.778 runner[a51ae344] lhr [info] Preparing kernel init
2021-12-17T10:42:22.246 runner[a51ae344] lhr [info] Configuring firecracker
2021-12-17T10:42:22.246 runner[a51ae344] lhr [info] Starting virtual machine
2021-12-17T10:42:22.390 app[a51ae344] lhr [info] Starting init (commit: 7943db6)...
2021-12-17T10:42:22.414 app[a51ae344] lhr [info] Preparing to run: `/bin/sh /opt/app/migrate.sh` as nobody
2021-12-17T10:42:22.424 app[a51ae344] lhr [info] 2021/12/17 10:42:22 listening on [fdaa:0:3610:a7b:2809:a51a:e344:2]:22 (DNS: [fdaa::3]:53)
2021-12-17T10:42:22.430 app[a51ae344] lhr [info] Running DB migration release task 💈
2021-12-17T10:42:23.422 app[a51ae344] lhr [info] Reaped child process with pid: 566 and signal: SIGUSR1, core dumped? false
2021-12-17T10:42:24.394 app[a51ae344] lhr [info] 10:42:24.390 [info] migrating repos for matchhaus
2021-12-17T10:42:24.424 app[a51ae344] lhr [info] Reaped child process with pid: 568 and signal: SIGUSR1, core dumped? false
In this case the migration command should be a no-op as there’re no migrations to perform.
It’s strange that it’s not working as I have a staging instance that shares the same postgres instance (different db) and that deployed with no problem
Any ideas on how to debug this?