I am trying to deploying a drf project, which is using cloudinary as static storage and postgres as database. I got the following errors in build log
tanzid64
TRIALOP

2 years ago

[2024-04-22 21:42:51 +0000] [12] [INFO] Booting worker with pid: 12

[2024-04-22 21:42:51 +0000] [12] [ERROR] Exception in worker process

Traceback (most recent call last):

File "/opt/venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker

worker.init_process()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process

self.load_wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi

self.wsgi = self.app.wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

self.callable = self.load()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

return self.load_wsgiapp()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

return util.importapp(self.appuri)

File "/opt/venv/lib/python3.10/site-packages/gunicorn/util.py", line 371, in import_app

mod = importlib.import_module(module)

File "/root/.nix-profile/lib/python3.10/importlib/init.py", line 126, in import_module

return bootstrap.gcd_import(name[level:], package, level)

File "", line 1050, in gcdimport

File "", line 1027, in findand_load

File "", line 1004, in findandloadunlocked

ModuleNotFoundError: No module named 'blood_bank.wsg'

[2024-04-22 21:42:51 +0000] [12] [INFO] Worker exiting (pid: 12)

[2024-04-22 21:42:51 +0000] [7] [ERROR] Worker (pid:12) exited with code 3

[2024-04-22 21:42:51 +0000] [7] [ERROR] Shutting down: Master

[2024-04-22 21:42:51 +0000] [7] [ERROR] Reason: Worker failed to boot.

Operations to perform:

Apply all migrations: account, admin, auth, contenttypes, core, dashboard, jet, sessions, token_blacklist

Running migrations:

No migrations to apply.

Your models in app(s): 'dashboard', 'jet' have changes that are not yet reflected in a migration, and so won't be applied.

Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

[2024-04-22 21:43:09 +0000] [7] [INFO] Starting gunicorn 22.0.0

[2024-04-22 21:43:09 +0000] [7] [INFO] Listening at: http://0.0.0.0:6382 (7)

[2024-04-22 21:43:09 +0000] [7] [INFO] Using worker: sync

[2024-04-22 21:43:09 +0000] [12] [INFO] Booting worker with pid: 12

[2024-04-22 21:43:09 +0000] [12] [ERROR] Exception in worker process

Traceback (most recent call last):

File "/opt/venv/lib/python3.10/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker

worker.init_process()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 134, in init_process

self.load_wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi

self.wsgi = self.app.wsgi()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi

self.callable = self.load()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 58, in load

return self.load_wsgiapp()

File "/opt/venv/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp

return util.importapp(self.appuri)

File "/opt/venv/lib/python3.10/site-packages/gunicorn/util.py", line 371, in import_app

mod = importlib.import_module(module)

File "/root/.nix-profile/lib/python3.10/importlib/init.py", line 126, in import_module

return bootstrap.gcd_import(name[level:], package, level)

File "", line 1050, in gcdimport

File "", line 1027, in findand_load

File "", line 1004, in findandloadunlocked

ModuleNotFoundError: No module named 'blood_bank.wsg'

[2024-04-22 21:43:09 +0000] [12] [INFO] Worker exiting (pid: 12)

[2024-04-22 21:43:09 +0000] [7] [ERROR] Worker (pid:12) exited with code 3

[2024-04-22 21:43:09 +0000] [7] [ERROR] Shutting down: Master

[2024-04-22 21:43:09 +0000] [7] [ERROR] Reason: Worker failed to boot.

View Deploy details

> ⓘ Deployment information is only viewable by Project members and Railway admins.

0 Replies

Loading...