Django app failing deploy

Trying to get a django app deployed to Fly.io and keep getting this error.

I’m a total noob and have no idea what’s going on.

$ fly logs -a throbbing-star-8300
Waiting for logs...

2022-12-04T01:48:43.434 runner[d6a0bad7] den [info] Starting instance
2022-12-04T01:48:43.675 runner[d6a0bad7] den [info] Configuring virtual machine
2022-12-04T01:48:43.676 runner[d6a0bad7] den [info] Pulling container image
2022-12-04T01:48:44.969 runner[d6a0bad7] den [info] Unpacking image
2022-12-04T01:48:49.565 runner[d6a0bad7] den [info] Preparing kernel init
2022-12-04T01:48:49.844 runner[d6a0bad7] den [info] Configuring firecracker
2022-12-04T01:48:49.900 runner[d6a0bad7] den [info] Starting virtual machine
2022-12-04T01:48:50.130 app[d6a0bad7] den [info] Starting init (commit: f447594)...
2022-12-04T01:48:50.157 app[d6a0bad7] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T01:48:50.179 app[d6a0bad7] den [info] 2022/12/04 01:48:50 listening on [fdaa:0:f680:a7b:d828:d6a0:bad7:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T01:48:50.248 app[d6a0bad7] den [info] bash: gunicorn: command not found
2022-12-04T01:48:51.164 app[d6a0bad7] den [info] Starting clean up.
2022-12-04T01:48:57.272 runner[d6a0bad7] den [info] Starting instance
2022-12-04T01:48:57.515 runner[d6a0bad7] den [info] Configuring virtual machine
2022-12-04T01:48:57.516 runner[d6a0bad7] den [info] Pulling container image
2022-12-04T01:48:57.786 runner[d6a0bad7] den [info] Unpacking image
2022-12-04T01:48:57.799 runner[d6a0bad7] den [info] Preparing kernel init
2022-12-04T01:48:58.078 runner[d6a0bad7] den [info] Configuring firecracker
2022-12-04T01:48:58.131 runner[d6a0bad7] den [info] Starting virtual machine
2022-12-04T01:48:58.338 app[d6a0bad7] den [info] Starting init (commit: f447594)...
2022-12-04T01:48:58.369 app[d6a0bad7] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T01:48:58.392 app[d6a0bad7] den [info] 2022/12/04 01:48:58 listening on [fdaa:0:f680:a7b:d828:d6a0:bad7:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T01:48:58.462 app[d6a0bad7] den [info] bash: gunicorn: command not found
2022-12-04T01:48:59.377 app[d6a0bad7] den [info] Starting clean up.
2022-12-04T01:49:05.458 runner[d6a0bad7] den [info] Starting instance
2022-12-04T01:49:05.715 runner[d6a0bad7] den [info] Configuring virtual machine
2022-12-04T01:49:05.716 runner[d6a0bad7] den [info] Pulling container image
2022-12-04T01:49:05.964 runner[d6a0bad7] den [info] Unpacking image
2022-12-04T01:49:05.974 runner[d6a0bad7] den [info] Preparing kernel init
2022-12-04T01:49:06.239 runner[d6a0bad7] den [info] Configuring firecracker
2022-12-04T01:49:06.292 runner[d6a0bad7] den [info] Starting virtual machine
2022-12-04T01:49:06.486 app[d6a0bad7] den [info] Starting init (commit: f447594)...
2022-12-04T01:49:06.517 app[d6a0bad7] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T01:49:06.541 app[d6a0bad7] den [info] 2022/12/04 01:49:06 listening on [fdaa:0:f680:a7b:d828:d6a0:bad7:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T01:49:06.614 app[d6a0bad7] den [info] bash: gunicorn: command not found
2022-12-04T01:49:07.523 app[d6a0bad7] den [info] Starting clean up.
2022-12-04T02:01:28.888 runner[8a7dd296] den [info] Starting instance
2022-12-04T02:01:29.044 runner[8a7dd296] den [info] Configuring virtual machine
2022-12-04T02:01:29.046 runner[8a7dd296] den [info] Pulling container image
2022-12-04T02:01:30.637 runner[8a7dd296] den [info] Unpacking image
2022-12-04T02:01:41.034 runner[8a7dd296] den [info] Preparing kernel init
2022-12-04T02:01:41.328 runner[8a7dd296] den [info] Configuring firecracker
2022-12-04T02:01:41.387 runner[8a7dd296] den [info] Starting virtual machine
2022-12-04T02:01:41.570 app[8a7dd296] den [info] Starting init (commit: f447594)...
2022-12-04T02:01:41.603 app[8a7dd296] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:01:41.632 app[8a7dd296] den [info] 2022/12/04 02:01:41 listening on [fdaa:0:f680:a7b:d826:8a7d:d296:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:01:41.700 app[8a7dd296] den [info] bash: gunicorn: command not found
2022-12-04T02:01:42.613 app[8a7dd296] den [info] Starting clean up.
2022-12-04T02:01:48.761 runner[8a7dd296] den [info] Starting instance
2022-12-04T02:01:48.899 runner[8a7dd296] den [info] Configuring virtual machine
2022-12-04T02:01:48.900 runner[8a7dd296] den [info] Pulling container image
2022-12-04T02:01:49.172 runner[8a7dd296] den [info] Unpacking image
2022-12-04T02:01:49.182 runner[8a7dd296] den [info] Preparing kernel init
2022-12-04T02:01:49.462 runner[8a7dd296] den [info] Configuring firecracker
2022-12-04T02:01:49.527 runner[8a7dd296] den [info] Starting virtual machine
2022-12-04T02:01:49.727 app[8a7dd296] den [info] Starting init (commit: f447594)...
2022-12-04T02:01:49.755 app[8a7dd296] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:01:49.785 app[8a7dd296] den [info] 2022/12/04 02:01:49 listening on [fdaa:0:f680:a7b:d826:8a7d:d296:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:01:49.849 app[8a7dd296] den [info] bash: gunicorn: command not found
2022-12-04T02:01:50.765 app[8a7dd296] den [info] Starting clean up.
2022-12-04T02:01:57.019 runner[8a7dd296] den [info] Starting instance
2022-12-04T02:01:57.181 runner[8a7dd296] den [info] Configuring virtual machine
2022-12-04T02:01:57.186 runner[8a7dd296] den [info] Pulling container image
2022-12-04T02:01:57.440 runner[8a7dd296] den [info] Unpacking image
2022-12-04T02:01:57.451 runner[8a7dd296] den [info] Preparing kernel init
2022-12-04T02:01:57.741 runner[8a7dd296] den [info] Configuring firecracker
2022-12-04T02:01:58.182 runner[8a7dd296] den [info] Starting virtual machine
2022-12-04T02:01:58.367 app[8a7dd296] den [info] Starting init (commit: f447594)...
2022-12-04T02:01:58.399 app[8a7dd296] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:01:58.426 app[8a7dd296] den [info] 2022/12/04 02:01:58 listening on [fdaa:0:f680:a7b:d826:8a7d:d296:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:01:58.499 app[8a7dd296] den [info] bash: gunicorn: command not found
2022-12-04T02:01:59.409 app[8a7dd296] den [info] Starting clean up.
2022-12-04T02:15:48.848 runner[744e4f72] den [info] Starting instance
2022-12-04T02:15:49.011 runner[744e4f72] den [info] Configuring virtual machine
2022-12-04T02:15:49.013 runner[744e4f72] den [info] Pulling container image
2022-12-04T02:15:50.291 runner[744e4f72] den [info] Unpacking image
2022-12-04T02:15:55.284 runner[744e4f72] den [info] Preparing kernel init
2022-12-04T02:15:55.548 runner[744e4f72] den [info] Configuring firecracker
2022-12-04T02:15:55.702 runner[744e4f72] den [info] Starting virtual machine
2022-12-04T02:15:55.887 app[744e4f72] den [info] Starting init (commit: f447594)...
2022-12-04T02:15:55.918 app[744e4f72] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:15:55.939 app[744e4f72] den [info] 2022/12/04 02:15:55 listening on [fdaa:0:f680:a7b:d827:744e:4f72:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:15:56.959 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [520] [INFO] Starting gunicorn 20.1.0
2022-12-04T02:15:56.960 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [520] [INFO] Listening at: http://0.0.0.0:8080 (520)
2022-12-04T02:15:56.960 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [520] [INFO] Using worker: sync
2022-12-04T02:15:56.964 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [538] [INFO] Booting worker with pid: 538
2022-12-04T02:15:56.969 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [538] [ERROR] Exception in worker process
2022-12-04T02:15:56.969 app[744e4f72] den [info] Traceback (most recent call last):
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2022-12-04T02:15:56.969 app[744e4f72] den [info] worker.init_process()
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
2022-12-04T02:15:56.969 app[744e4f72] den [info] self.load_wsgi()
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2022-12-04T02:15:56.969 app[744e4f72] den [info] self.wsgi = self.app.wsgi()
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
2022-12-04T02:15:56.969 app[744e4f72] den [info] self.callable = self.load()
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2022-12-04T02:15:56.969 app[744e4f72] den [info] return self.load_wsgiapp()
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2022-12-04T02:15:56.969 app[744e4f72] den [info] return util.import_app(self.app_uri)
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
2022-12-04T02:15:56.969 app[744e4f72] den [info] mod = importlib.import_module(module)
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/importlib/__init__.py", line 126, in import_module
2022-12-04T02:15:56.969 app[744e4f72] den [info] return _bootstrap._gcd_import(name[level:], package, level)
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-12-04T02:15:56.969 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
2022-12-04T02:15:56.969 app[744e4f72] den [info] ModuleNotFoundError: No module named 'throbbing-star-8300'
2022-12-04T02:15:56.969 app[744e4f72] den [info] [2022-12-04 02:15:56 +0000] [538] [INFO] Worker exiting (pid: 538)
2022-12-04T02:15:57.016 app[744e4f72] den [info] [2022-12-04 02:15:57 +0000] [520] [INFO] Shutting down: Master
2022-12-04T02:15:57.016 app[744e4f72] den [info] [2022-12-04 02:15:57 +0000] [520] [INFO] Reason: Worker failed to boot.
2022-12-04T02:15:57.929 app[744e4f72] den [info] Starting clean up.
2022-12-04T02:16:05.051 runner[744e4f72] den [info] Starting instance
2022-12-04T02:16:05.204 runner[744e4f72] den [info] Configuring virtual machine
2022-12-04T02:16:05.206 runner[744e4f72] den [info] Pulling container image
2022-12-04T02:16:05.547 runner[744e4f72] den [info] Unpacking image
2022-12-04T02:16:05.559 runner[744e4f72] den [info] Preparing kernel init
2022-12-04T02:16:05.882 runner[744e4f72] den [info] Configuring firecracker
2022-12-04T02:16:06.316 runner[744e4f72] den [info] Starting virtual machine
2022-12-04T02:16:06.503 app[744e4f72] den [info] Starting init (commit: f447594)...
2022-12-04T02:16:06.537 app[744e4f72] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:16:06.560 app[744e4f72] den [info] 2022/12/04 02:16:06 listening on [fdaa:0:f680:a7b:d827:744e:4f72:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:16:07.604 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [520] [INFO] Starting gunicorn 20.1.0
2022-12-04T02:16:07.604 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [520] [INFO] Listening at: http://0.0.0.0:8080 (520)
2022-12-04T02:16:07.604 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [520] [INFO] Using worker: sync
2022-12-04T02:16:07.609 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [538] [INFO] Booting worker with pid: 538
2022-12-04T02:16:07.613 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [538] [ERROR] Exception in worker process
2022-12-04T02:16:07.613 app[744e4f72] den [info] Traceback (most recent call last):
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2022-12-04T02:16:07.613 app[744e4f72] den [info] worker.init_process()
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
2022-12-04T02:16:07.613 app[744e4f72] den [info] self.load_wsgi()
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2022-12-04T02:16:07.613 app[744e4f72] den [info] self.wsgi = self.app.wsgi()
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
2022-12-04T02:16:07.613 app[744e4f72] den [info] self.callable = self.load()
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2022-12-04T02:16:07.613 app[744e4f72] den [info] return self.load_wsgiapp()
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2022-12-04T02:16:07.613 app[744e4f72] den [info] return util.import_app(self.app_uri)
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
2022-12-04T02:16:07.613 app[744e4f72] den [info] mod = importlib.import_module(module)
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/importlib/__init__.py", line 126, in import_module
2022-12-04T02:16:07.613 app[744e4f72] den [info] return _bootstrap._gcd_import(name[level:], package, level)
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-12-04T02:16:07.613 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
2022-12-04T02:16:07.613 app[744e4f72] den [info] ModuleNotFoundError: No module named 'throbbing-star-8300'
2022-12-04T02:16:07.613 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [538] [INFO] Worker exiting (pid: 538)
2022-12-04T02:16:07.664 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [520] [INFO] Shutting down: Master
2022-12-04T02:16:07.664 app[744e4f72] den [info] [2022-12-04 02:16:07 +0000] [520] [INFO] Reason: Worker failed to boot.
2022-12-04T02:16:08.547 app[744e4f72] den [info] Starting clean up.
2022-12-04T02:16:15.650 runner[744e4f72] den [info] Starting instance
2022-12-04T02:16:15.790 runner[744e4f72] den [info] Configuring virtual machine
2022-12-04T02:16:15.791 runner[744e4f72] den [info] Pulling container image
2022-12-04T02:16:16.044 runner[744e4f72] den [info] Unpacking image
2022-12-04T02:16:16.056 runner[744e4f72] den [info] Preparing kernel init
2022-12-04T02:16:16.351 runner[744e4f72] den [info] Configuring firecracker
2022-12-04T02:16:16.410 runner[744e4f72] den [info] Starting virtual machine
2022-12-04T02:16:16.589 app[744e4f72] den [info] Starting init (commit: f447594)...
2022-12-04T02:16:16.615 app[744e4f72] den [info] Preparing to run: `/cnb/process/web` as 1000
2022-12-04T02:16:16.637 app[744e4f72] den [info] 2022/12/04 02:16:16 listening on [fdaa:0:f680:a7b:d827:744e:4f72:2]:22 (DNS: [fdaa::3]:53)
2022-12-04T02:16:17.736 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [520] [INFO] Starting gunicorn 20.1.0
2022-12-04T02:16:17.736 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [520] [INFO] Listening at: http://0.0.0.0:8080 (520)
2022-12-04T02:16:17.736 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [520] [INFO] Using worker: sync
2022-12-04T02:16:17.742 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [538] [INFO] Booting worker with pid: 538
2022-12-04T02:16:17.747 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [538] [ERROR] Exception in worker process
2022-12-04T02:16:17.747 app[744e4f72] den [info] Traceback (most recent call last):
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
2022-12-04T02:16:17.747 app[744e4f72] den [info] worker.init_process()
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process
2022-12-04T02:16:17.747 app[744e4f72] den [info] self.load_wsgi()
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2022-12-04T02:16:17.747 app[744e4f72] den [info] self.wsgi = self.app.wsgi()
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
2022-12-04T02:16:17.747 app[744e4f72] den [info] self.callable = self.load()
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2022-12-04T02:16:17.747 app[744e4f72] den [info] return self.load_wsgiapp()
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2022-12-04T02:16:17.747 app[744e4f72] den [info] return util.import_app(self.app_uri)
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_pip-install/packages/lib/python3.10/site-packages/gunicorn/util.py", line 359, in import_app
2022-12-04T02:16:17.747 app[744e4f72] den [info] mod = importlib.import_module(module)
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "/layers/paketo-buildpacks_cpython/cpython/lib/python3.10/importlib/__init__.py", line 126, in import_module
2022-12-04T02:16:17.747 app[744e4f72] den [info] return _bootstrap._gcd_import(name[level:], package, level)
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2022-12-04T02:16:17.747 app[744e4f72] den [info] File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
2022-12-04T02:16:17.747 app[744e4f72] den [info] ModuleNotFoundError: No module named 'throbbing-star-8300'
2022-12-04T02:16:17.747 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [538] [INFO] Worker exiting (pid: 538)
2022-12-04T02:16:17.798 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [520] [INFO] Shutting down: Master
2022-12-04T02:16:17.798 app[744e4f72] den [info] [2022-12-04 02:16:17 +0000] [520] [INFO] Reason: Worker failed to boot.
2022-12-04T02:16:18.628 app[744e4f72] den [info] Starting clean up.

Your problem is near the bottom: ModuleNotFoundError: No module named 'throbbing-star-8300'. And also bash: gunicorn: command not found.

Translated, I suspect something around your app name isn’t loading and also gunicorn is not present. Are you using Docker locally or just a generated Dockerfile for this?