a year 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.
4 Replies
a year ago
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 • 12 months ago
a year 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 • 12 months ago
a year ago
And the django batch service keeps error connect to DB today
Attachments
a year ago
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 • 11 months ago