R
Railway3mo ago
yydgjr

Django Deployment Crashed

File "/opt/venv/lib/python3.11/site-packages/django/db/backends/postgresql/base.py", line 436, in pg_version with self.temporary_connection(): File "/root/.nix-profile/lib/python3.11/contextlib.py", line 137, in enter return next(self.gen) ^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 691, in temporary_connection with self.cursor() as cursor: ^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 316, in cursor return self._cursor() ^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 292, in _cursor self.ensure_connection() File "/opt/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 274, in ensure_connection with self.wrap_database_errors: File "/opt/venv/lib/python3.11/site-packages/django/db/utils.py", line 91, in exit raise dj_exc_value.with_traceback(traceback) from exc_value File "/opt/venv/lib/python3.11/site-packages/django/db/backends/base/base.py", line 275, in ensure_connection self.connect() File "/opt/venv/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ container event container died I got crashed deployment like the above deploy log, what can I do?
3 Replies
Percy
Percy3mo ago
Project ID: f236174c-3e9f-424a-9ad6-ea367a072d85
yydgjr
yydgjrOP3mo ago
This is the deployment ID: f236174c-3e9f-424a-9ad6-ea367a072d85
Brody
Brody3mo ago
from your deploy logs -
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
you need to setup postgres properly
Want results from more Discord servers?
Add your server