Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8D919632A92 for ; Mon, 3 May 2010 09:52:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 51095-07 for ; Mon, 3 May 2010 12:52:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 5598C632A05 for ; Mon, 3 May 2010 09:52:32 -0300 (ADT) Received: by wye20 with SMTP id 20so1609140wye.19 for ; Mon, 03 May 2010 05:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=PC/zIgLTQW+MAmP2oO1H5+JBsfQJySdtXwKT3TyR5X8=; b=ADlinFI4TkWresg4AF4iWJ5lcuUbM8yxkP82+Mu8mHYJPlMZftZM0+6OjYCh7z5mnl D8ajHvz2ksXZV7dJXkvt7mCW3imP8waaqugFYWS+XaHjemb3nS0bP6VK90zDeG/f5f6Q kZOmhBkpsV3cssLqPElO/9Z5lzcfIXjJ/XrQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=uIbG+HEGcBLbY8E8F4OxS1wikUJQVO+clM1YqIQL4wxUy5r+pNuhYfLUBe1ChV6eG6 bEzf82mkPXXjnkN/Fk7BR1VJob3O1c4uU+KIj9MAYckxn5RpX+/OWMHiB8mUFoWeIF1t 5bn6K90exmXHYbkR6NzBju07Ji63SVJpTnUnc= Received: by 10.216.156.203 with SMTP id m53mr7747944wek.209.1272891149757; Mon, 03 May 2010 05:52:29 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id k83sm1547645wej.0.2010.05.03.05.52.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 May 2010 05:52:29 -0700 (PDT) Message-ID: <4BDEC707.1090403@gmail.com> Date: Mon, 03 May 2010 14:52:23 +0200 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "Dai, Tino" CC: "Daniel J. Summers" , "pgsql-admin@postgresql.org" Subject: Re: Ubuntu 10.04 - Cannot Create TCP/IP Sockets References: <4BDE46F4.4070401@djs-consulting.com> <1CA7FF980DA3824F9A5C31532B7A40DCCDCE01FD@LCXCLMB01.LCDS.LOC.GOV> In-Reply-To: <1CA7FF980DA3824F9A5C31532B7A40DCCDCE01FD@LCXCLMB01.LCDS.LOC.GOV> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201005/19 X-Sequence-Number: 34492 Maybe SElinux is in the way? Dai, Tino wrote: > Couple of things to try: > > - The default process is not postmaster any more, rather is it postgres: > > http://www.postgresql.org/docs/8.4/interactive/server-start.html > > - Try manually starting up the postgres with the debug cranked all the way up, see what that gives you in the server logs > > - Perhaps try moving the port to somewhere else with the postgres command > > HTH, > Tino > > ________________________________________ > From: pgsql-admin-owner@postgresql.org [pgsql-admin-owner@postgresql.org] On Behalf Of Daniel J. Summers [daniel.lists@djs-consulting.com] > Sent: Sunday, May 02, 2010 11:45 PM > To: Dai, Tino; pgsql-admin@postgresql.org > Subject: [ADMIN] Ubuntu 10.04 - Cannot Create TCP/IP Sockets > > Good evening. > > I've recently provisioned a new Ubuntu 10.04 server. I ran "apt-get > install postgresql-8.4", just like I normally do when I'm setting up a > new server. However, this time I got an error about an inability to > create TCP/IP sockets. The full error is below. > > * Starting PostgreSQL 8.4 database server > * The PostgreSQL server failed to start. Please check the log output: > 2010-05-03 03:36:06 UTC LOG: could not bind IPv4 socket: Cannot assign > requested address > 2010-05-03 03:36:06 UTC HINT: Is another postmaster already running on > port 5432? If not, wait a few seconds and retry. > 2010-05-03 03:36:06 UTC WARNING: could not create listen socket for > "localhost" > 2010-05-03 03:36:06 UTC FATAL: could not create any TCP/IP sockets > > However, there is nothing on port 5432... > > root@coolnewserver:~# netstat -l > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address State > tcp 0 0 *:ssh *:* LISTEN > tcp 0 0 localhost:smtp *:* LISTEN > tcp6 0 0 [::]:ssh [::]:* LISTEN > > ..and no postgresql processes... > > root@coolnewserver:~# ps -ef | grep postgresql > root 7738 3403 0 03:37 pts/0 00:00:00 grep --color=auto postgresql > root@coolnewserver:~# ps -ef | grep postmaster > root 7740 3403 0 03:37 pts/0 00:00:00 grep --color=auto postmaster > > Possibly pertinent lines from /etc/postgresql/8.4/main/postgresql.conf... > > listen_addresses = 'localhost' > port = 5432 > max_connections = 100 > unix_socket_directory = '/var/run/postgresql' > > ..permissions on that last directory are... > > drwxrwsr-x 2 postgres postgres 40 2010-05-03 03:10 postgresql > > ..and localhost is resolving... > > root@coolnewserver:~# nslookup localhost > Server: [IP] > Address: [IP]#53 > > Name: localhost > Address: 127.0.0.1 > > Using search engines, I've seen this error, and my question, asked on > occasion; what I didn't find was what the actual solution was. Anyone > remember? I'll be sure to post what I find, so that maybe others can > benefit a few years from now. :) > > Thanks... > > > Daniel > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin > >