Re: postgres connection problem via python pg DBI

From: Colin Wetherbee <cww(at)denterprises(dot)org>
To: Dan Joo <djoo(at)agraquest(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: postgres connection problem via python pg DBI
Date: 2008-06-05 16:26:43
Message-ID: 484813C3.3060200@denterprises.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2008-06-05 16:31:17 Re: Temporary Tables and Web Application
Previous Message Teodor Sigaev 2008-06-05 16:21:26 Re: [GENERAL] Fragments in tsearch2 headline