dbTalk Databases Forums  

can't connect although server is running

comp.databases.postgresql comp.databases.postgresql


Discuss can't connect although server is running in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kai-Martin Knaak
 
Posts: n/a

Default can't connect although server is running - 04-03-2009 , 11:41 PM






Since about a month I can't connect to the local postgres server
any more.

$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?


However, the server seems to be running fine:

$ ps aux |grep postgresql
postgres 11406 0.0 0.2 21812 3960 ? S 06:24 0:00 /usr/lib/postgresql/8.1/bin/postmaster -D /var/lib/postgresql/8.1/main -c config_file=/etc/postgresql/8.1/main/postgresql.conf


$ sudo /etc/init.d/postgresql-8.1 status
8.1 main 5432 online postgres /var/lib/postgresql/8.1/main /var/log/postgresql/postgresql-8.1-main.log

In /etc/postgresql/8.1/main/pg_hba.conf I granted access to any local user:
local all all trust

System is debian/squeeze

Any hints?

---<(kaimartin)>---

Reply With Quote
  #2  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: can't connect although server is running - 04-06-2009 , 02:10 AM






Kai-Martin Knaak <kmk (AT) lilalaser (DOT) de> wrote:
Quote:
Since about a month I can't connect to the local postgres server
any more.

$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
search for this file and/or specify the location with
unix_socket_directory = ... in your postgresql.conf.

Other solution: start psql with the parameters -h localhost and -p 5432
to force a tcp/ip - connection.



Andreas
--
Andreas Kretschmer
Linux - weil ich es mir wert bin!
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.