[MacPorts] #30125: psql: could not connect to server: Permission denied

MacPorts noreply at macports.org
Sun Jul 10 18:51:45 PDT 2011


#30125: psql: could not connect to server: Permission denied
--------------------------------+-------------------------------------------
 Reporter:  conradwt@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.2                                
 Keywords:  lion x86_64         |        Port:  postgresql90-server                  
--------------------------------+-------------------------------------------
 Hi, I have followed all the installation steps and all completed
 successfully.  However, the following command fails after I start the
 server (i.e. sudo port load :

 {{{
 $ psql -d postgres -U postgres
 psql: could not connect to server: Permission denied
         Is the server running locally and accepting
         connections on Unix domain socket
 "/var/pgsql_socket/.s.PGSQL.5432"?
 }}}

 The server appears to be started:

 {{{

 postgres         307   0.0  0.0  2445872    544   ??  Ss    1:57PM
 0:00.72 postgres: stats collector process
 postgres         306   0.0  0.0  2483084   1780   ??  Ss    1:57PM
 0:00.48 postgres: autovacuum launcher process
 postgres         305   0.0  0.0  2482952    576   ??  Ss    1:57PM
 0:01.54 postgres: wal writer process
 postgres         304   0.0  0.1  2482952   2488   ??  Ss    1:57PM
 0:02.16 postgres: writer process
 postgres         136   0.0  0.1  2482952   4088   ??  S     1:57PM
 0:00.30 /opt/local/lib/postgresql90/bin/postgres -D
 /opt/local/var/db/postgresql90/defaultdb
 root              82   0.0  0.0  2467380   1224   ??  Ss    1:57PM
 0:00.06 /opt/local/bin/daemondo --label=postgresql90-server --start-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper
 start ; --stop-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper
 stop ; --restart-cmd
 /opt/local/etc/LaunchDaemons/org.macports.postgresql90-server/postgresql90-server.wrapper
 restart ; --pid=none
 }}}

 However, the last line of the above doesn't specify a numerical value for
 the PID.  Last but not least, I'm using a pre-release version Mac OS 10.7
 (Build 11A511).

-- 
Ticket URL: <https://trac.macports.org/ticket/30125>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list