Re: postgres connection problem via python pg DBI - Mailing list pgsql-general

From Colin Wetherbee
Subject Re: postgres connection problem via python pg DBI
Date
Msg-id 484813C3.3060200@denterprises.org
Whole thread Raw
In response to postgres connection problem via python pg DBI  ("Dan Joo" <djoo@agraquest.com>)
List pgsql-general
Dan Joo wrote:
> db=pg.connect('aqdev','localhost',5432,None,None,'postgres',None)
>
> From the commandline the connection works great, but from a
> cgi-script it barfs with the following message:
>
> *InternalError*: could not create socket: Permission denied

My (obvious, granted) guess is that you're running it from the command
line as your own user, but the web server is running under another user
who doesn't have the proper permissions (or ident response) to access
the database.

Colin

pgsql-general by date:

Previous
From: "Dan Joo"
Date:
Subject: Re: postgres connection problem via python pg DBI
Next
From: "Ati Rosselet"
Date:
Subject: Application EventLog: could not write to log file: Bad file descriptor