Need help with Postgres connection problem.
ajay4615
TRIALOP

2 years ago

I am using postgres from railway server to host my project. While i am trying to loging to my project/website.. it gives me below error -OperationalError at /

connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or directory

Is the server running locally and accepting connections on that socket?

Request Method: POST

Request URL: http://gymmainrepo-production.up.railway.app/

Django Version: 4.2.10

Exception Type: OperationalError

Exception Value:

connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or directory

Is the server running locally and accepting connections on that socket?

Exception Location: /opt/venv/lib/python3.8/site-packages/psycopg2/init.py, line 122, in connect

Raised during: Accounts.views.Login

Python Executable: /opt/venv/bin/python

Python Version: 3.8.18

Python Path:

['/app',

'/opt/venv/bin',

'/root/.nix-profile/lib/python38.zip',

'/root/.nix-profile/lib/python3.8',

'/root/.nix-profile/lib/python3.8/lib-dynload',

'/opt/venv/lib/python3.8/site-packages']

Server time: Fri, 03 May 2024 01:28:35 +0000

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...