Django app stuck on "Running release task (pending)"


I have a Django app and a Postgres database running on Fly. Everytime I try to do flyctl deploy it hangs on the “Running release task (pending)…” stage. I have run the deploy command without specifying the release_command in fly.toml and it seems to have deployed fine. My release command is just the Django migrations: python migrate and looking at the logs I can’t find anything that stands out, in fact it looks as if the migration was successful (there were no migrations to run anyway).

My logs:

2023-02-04T13:11:24.203 runner[4f8d862e] lhr [info] Starting instance
2023-02-04T13:11:24.282 runner[4f8d862e] lhr [info] Configuring virtual machine
2023-02-04T13:11:24.299 runner[4f8d862e] lhr [info] Pulling container image
2023-02-04T13:11:33.529 runner[4f8d862e] lhr [info] Unpacking image
2023-02-04T13:12:03.451 runner[4f8d862e] lhr [info] Preparing kernel init
2023-02-04T13:12:04.890 runner[4f8d862e] lhr [info] Configuring firecracker
2023-02-04T13:12:05.425 runner[4f8d862e] lhr [info] Starting virtual machine
2023-02-04T13:12:05.755 app[4f8d862e] lhr [info] Starting init (commit: e3cff9e)...
2023-02-04T13:12:05.846 app[4f8d862e] lhr [info] Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2023-02-04T13:12:05.847 app[4f8d862e] lhr [info] no label, UUID=d86eb901-be62-411a-820f-14d021a8b1d2
2023-02-04T13:12:05.853 app[4f8d862e] lhr [info] Preparing to run: `python migrate` as root
2023-02-04T13:12:05.888 app[4f8d862e] lhr [info] 2023/02/04 13:12:05 listening on [fdaa:0:8bb8:a7b:bada:4f8d:862e:2]:22 (DNS: [fdaa::3]:53)
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] Operations to perform:
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] Apply all migrations: admin, api, auth, contenttypes, sessions
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] Running migrations:
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] No migrations to apply.
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] Your models in app(s): 'auth' have changes that are not yet reflected in a migration, and so won't be applied.
2023-02-04T13:12:07.398 app[4f8d862e] lhr [info] Run ' makemigrations' to make new migrations, and then re-run ' migrate' to apply them.
2023-02-04T13:12:07.866 app[4f8d862e] lhr [info] Starting clean up.

Any help would be appreciated.

1 Like

I’m facing the same issue for my django app, deploy duration got from 3 min to 30+ min (!) for the lasts deploy runs, and without any migration to apply

Same for my Rails app today. Hangs at this stage indefinitely.

Seems to have been fixed:

Just ran the deploy and it all worked, maybe you guys can try too?