Re: Ubuntu 10.04 - Cannot Create TCP/IP Sockets

From: "Daniel J(dot) Summers" <daniel(dot)lists(at)djs-consulting(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Ubuntu 10.04 - Cannot Create TCP/IP Sockets
Date: 2010-05-03 14:04:18
Message-ID: 4BDED7E2.5060304@djs-consulting.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 05/03/2010 01:52 PM, Tom Lane wrote:
> Yeb Havinga<yebhavinga(at)gmail(dot)com> writes:
>
>>> 2010-05-03 03:36:06 UTC LOG: could not bind IPv4 socket: Cannot assign
>>> requested address
>>>
> Does it work if you change listen_addresses to '*' or '127.0.0.1' ?
>

Bingo - changing it to "*" got it started. :)

>
>>> ..and localhost is resolving...
>>> root(at)coolnewserver:~# nslookup localhost
>>>
> nslookup isn't a terribly reliable way to check that. Try "dig".
>

Dig seemed to return "localhost" OK...

me(at)coolnewserver:~$ dig localhost

; <<>> DiG 9.7.0-P1 <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18467
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;localhost. IN A

;; ANSWER SECTION:
localhost. 604800 IN A 127.0.0.1

;; AUTHORITY SECTION:
localhost. 604800 IN NS localhost.

;; ADDITIONAL SECTION:
localhost. 604800 IN AAAA ::1

;; Query time: 0 msec
;; SERVER: 173.203.4.8#53(173.203.4.8)
;; WHEN: Mon May 3 13:57:54 2010
;; MSG SIZE rcvd: 85

Could this possibly be related to IPv6? I know with this version of
Ubuntu (10.04), there's a known issue with LightTPD if you include the
IPv6 library in the configuration file (which is on by default - heh);
if you comment them out, it works just fine.

Thanks for the help!

Daniel

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2010-05-03 14:20:49 Re: Ubuntu 10.04 - Cannot Create TCP/IP Sockets
Previous Message Tom Lane 2010-05-03 13:58:31 Re: Autovacuum stopped running