From: | Grzegorz Buś <gall(at)p-team(dot)org> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | could not bind IPv4 socket |
Date: | 2009-04-30 11:57:12 |
Message-ID: | 000a01c9c98a$cd066cf0$671346d0$@org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I'm using Centos 4.7 and after upgrading PostgreSQL to version 8.3.7 (from
ver. 7.4) via yum I cannot connect to my postgres server from remote hosts.
I know that for PostgreSQL servers starting with version 8.0 remote
connections can only be set in postgresql.conf allowing them in
"listen_addresses" parameter. My settings are following:
listen_addresses = 'localhost,XXX.XXX.XXX.XXX'
where XXX.XXX.XXX.XXX is IP address of remote client that I want to be able
to use PostgreSQL server. Port is default.
When I start server (service postgresql start) I receive status [OK], but in
pgstartup.log there is information about some errors (or rather warnings -
but that's why remote connections don't work):
WARNING: could not create listen socket for "XXX.XXX.XXX.XXX"
LOG: could not bind IPv4 socket: Cannot assign requested address
HINT: Is another postmaster already running on port 5432? If not, wait a
few seconds and retry.
Of course - there is no other instance of PostgreSQL serve nor any other
application is using this TCP port. This commands returns empty string:
netstat -plunt | grep 5432
pg -A | grep postmaster
I must add that everything works fine for my local apps - they can easily
connect to the server. I also tried few other non-default ports from range
60000+ with same result. Additionally, previous version (7.4) had no
problems for accepting remote connections.
Thanks,
Grzegorz Bus
From | Date | Subject | |
---|---|---|---|
Next Message | paulo matadr | 2009-04-30 13:00:54 | Understand this error |
Previous Message | Henry | 2009-04-30 10:03:21 | PANIC: right sibling's left-link doesn't match |