Django WSGI batch error connect to Postgres DB
antechio
PROOP

2 years ago

My Django batch service got error connect to Postgres DB sometime. And also EOF error:

File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute

raise ex.with_traceback(None)

return self.cursor.execute(sql, params)

File "/usr/local/lib/python3.9/site-packages/psycopg/cursor.py", line 737, in execute

psycopg.OperationalError: consuming input failed: EOF detected

Although i added CONN_MAX_AGE = 0 in settings config of my app. Im using psycopg2. How to fix it? Thanks.

Solved

4 Replies

Hey there Antech,

How are you passing in the DB URL to the service? From Railway's point of view, there is no disruption to the DB so this is something that you will need to resolve.


Status changed to Awaiting User Response Railway over 1 year ago


antechio
PROOP

2 years ago

DB URL has been config via Variables tab on Railway. You can see the img attached below. Thanks

Attachments


Status changed to Awaiting Railway Response Railway over 1 year ago


antechio
PROOP

2 years ago

And the django batch service keeps error connect to DB today

Attachments


Yes, but the access to the DB isn't affected. As such, we can't do much to assist. Apologies.


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...