From: Geoffrey Knauth <geoff@knauth.org>
To: pgsql-sql@postgresql.org
Subject: Re: listen_addresses = '*' ok, specific address(es) no
Date: Thu, 15 Jun 2006 22:06:25 -0400
Message-ID: <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org> (raw)
In-Reply-To: <27882.1150382418@sss.pgh.pa.us>
References: <7F9DD4F9-A334-4A52-8501-1DA780CD4D2E@knauth.org>
<27882.1150382418@sss.pgh.pa.us>
Tom,
I omitted the LOG and HINT lines before.
LOG: could not bind IPv4 socket: Can't assign requested address
HINT: Is another postmaster already running on port 5432? If not,
wait a few seconds and retry.
WARNING: could not create listen socket for "192.168.1.33"
FATAL: could not create any TCP/IP sockets
This works fine if I use '*' instead of '192.168.1.33'.
Andrew Sullivan wrote:
> Well, do you actually have an interface with that address?
I think I do, in that the machine's wireless interface is set up with
a 192.168.1.x/24 address and 1.33 is on the same subnet. Or maybe
I'm misunderstanding. I thought the purpose of listen_addresses was
to allowing incoming connections only from listed addresses.
Geoff
On Jun 15, 2006, at 10:40, Tom Lane wrote:
> Geoffrey Knauth <geoff@knauth.org> writes:
>> I'm running PostgreSQL 8.1.3. In my postgresql.conf, the following
>> works:
>> listen_addresses = '*'
>
>> but the following does not:
>> listen_addresses = '192.168.1.33'
>
>> I get an error:
>> WARNING: could not create listen socket for "192.168.1.33"
>> FATAL: could not create any TCP/IP sockets
>
> There should be more info than that --- AFAICS all the failure
> paths in
> that code emit LOG messages. Perhaps you have log_min_messages set
> too
> high to allow the info to come out?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: geoff@knauth.org
Subject: Re: listen_addresses = '*' ok, specific address(es) no
In-Reply-To: <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org>
References: <7F9DD4F9-A334-4A52-8501-1DA780CD4D2E@knauth.org> <27882.1150382418@sss.pgh.pa.us> <49DF5CA8-5E4D-415E-9A9A-DA412B213DE0@knauth.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox