Unix Technical Forum

sockets and refused connections

This is a discussion on sockets and refused connections within the pgsql Novice forums, part of the PostgreSQL category; --> Hello people, I need some help getting postgresql started on an amd64 machine running gentoo 2005.1. when reloading postgres ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:24 PM
Dirk Dil
 
Posts: n/a
Default sockets and refused connections

Hello people,

I need some help getting postgresql started on an amd64 machine running
gentoo 2005.1.

when reloading postgres I get the following error in the logs:
<<
LOG: shutting down
LOG: database system is shut down
LOG: could not send test message on socket for statistics collector:
Operation not permitted
LOG: disabling statistics collector for lack of working socket
LOG: database system was shut down at 2005-12-16 09:04:16 CET
LOG: checkpoint record is at 0/AC5188
LOG: redo record is at 0/AC5188; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 559; next OID: 17231
LOG: database system is ready
>>

3rd and 4th lines stand out.

When tring to connect with a client (pgaccess) I get the following error
and no access (no pun intended).

<<
Error trying to connect to database 'test'
on host localhost

PostgreSQL error message: Connection to database failed
couldn't open socket: connection refused
>>


My guess is that I have a socket problem. How do I go about solving
this?

Thanks for any help.

Dirk




---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:24 PM
Tom Lane
 
Posts: n/a
Default Re: sockets and refused connections

Dirk Dil <dirk.dil@pt.lu> writes:
> I need some help getting postgresql started on an amd64 machine running
> gentoo 2005.1.


> LOG: could not send test message on socket for statistics collector:
> Operation not permitted
> LOG: disabling statistics collector for lack of working socket


> PostgreSQL error message: Connection to database failed
> couldn't open socket: connection refused


Both of these look like kernel packet filtering is rejecting the
traffic. Take a look at your iptables configuration --- it's probably
being overly restrictive about local-loopback (127.0.0.1) connections.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com