Caught Error: OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n')
Pos: None
Trace: Traceback (most recent call last):
File "/var/www/html/CompLing/mahakosha/k_category.py", line 157, in
cgi_process()
File "/var/www/html/CompLing/mahakosha/k_category.py", line 38, in cgi_process
l_db_connection = psycopg2.connect(
File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?