Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 95C58133655C for ; Thu, 9 Dec 2010 17:09:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 78451-09 for ; Thu, 9 Dec 2010 21:09:13 +0000 (UTC) X-Greylist: delayed 00:25:23.985822 by SQLgrey-1.7.6 Received: from mfilter2.dimenoc.com (mfilter.dimenoc.com [72.29.67.235]) by mail.postgresql.org (Postfix) with ESMTP id 141A51337B8E for ; Thu, 9 Dec 2010 17:09:12 -0400 (AST) Received: from localhost (unknown [127.0.0.1]) by mfilter2.dimenoc.com (Postfix) with ESMTP id 0316E254696; Thu, 9 Dec 2010 20:43:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at mfilter2.dimenoc.com Received: from mfilter2.dimenoc.com ([127.0.0.1]) by localhost (mfilter.dimenoc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SEy4GHzCShfS; Thu, 9 Dec 2010 15:43:47 -0500 (EST) Received: from progressive.micfo.com (unknown [67.23.244.116]) by mfilter2.dimenoc.com (Postfix) with ESMTP id 555A52542DF; Thu, 9 Dec 2010 15:43:47 -0500 (EST) Received: from localhost.localdomain ([127.0.0.1] helo=localhost) by progressive.micfo.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PQnL9-0005Hu-9c; Thu, 09 Dec 2010 15:43:47 -0500 Received: from 87.204.194.135 ([87.204.194.135]) by softperience.eu (Horde Framework) with HTTP; Thu, 09 Dec 2010 15:43:47 -0500 Message-ID: <20101209154347.19402ab3a4rxuttv@softperience.eu> Date: Thu, 09 Dec 2010 15:43:47 -0500 From: =?utf-8?b?UmFkb3PFgmF3?= Smogura To: Dave Cramer Cc: Rob Stone , Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: Connection Problem References: <1291728544.3489.28.camel@localhost> <4CFE9095.5090702@opencloud.com> <1291900691.3402.7.camel@roblaptop.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/46 X-Sequence-Number: 21284 Hi, Check with netstat -atnp (it shows the process associated with port), =20 but psql should be there. Do route -n to see routing traces, execute ifconfig next. But this can be kernel driver problem. Do you "shut down" laptop by =20 closing it, I mean do you put it in sleep mode? Maybe you need to =20 restart network interfaces instead. On my PC when I put it on sleep mode, SATA controller doesn't wakes up. Kind regards, Radek Smogura > Rob, > > Have you tried 127.0.0.1 instead of localhost ? It's not that it isn't > listening, the problem is there is no route to localhost which seems > strange on it's own. > > Dave > > On Thu, Dec 9, 2010 at 8:18 AM, Rob Stone wrote: >> Hi Oliver, >> >> Thanks for the reply. >> >> Output from netstat shows port 5432 as being listened. Don't know what >> to try next. >> >> Sometimes when I shut down my laptop the "stop" messages are displayed. >> I noticed last night that pg_ctl could not find the postmaster.pid file, >> even though PGHOST and PGDATA variables are set. I'm starting it with >> the -i and -D options with -D pointing explicitly to the PGDATA path >> using the full path name. Could not finding a postmaster.pid file be >> linked in any way with my problem?? >> >> >> Cheers, >> Rob >> >> rob@roblaptop:~> netstat -ln --tcp >> Active Internet connections (only servers) >> Proto Recv-Q Send-Q Local Address =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 For= eign Address >> State >> tcp =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A00 0.0.0.0:22 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.0.0.0:* >> LISTEN >> tcp =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=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=C2=A0 :::* >> LISTEN >> tcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 ::1:631 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::* >> LISTEN >> tcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 :::5432 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::* >> LISTEN >> tcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 :::6566 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::* >> LISTEN >> tcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 :::80 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::* >> LISTEN >> rob@roblaptop:~> >> >> >> >> >> On Wed, 2010-12-08 at 08:52 +1300, Oliver Jowett wrote: >>> On 08/12/10 02:29, Rob Stone wrote: >>> >>> > Wrote a mickey mouse java class (testdbconn) to see if I could access >>> > the database and read data from a table that has two rows. See attach= ed. >>> > When it runs it displays the same SQL error code as ExecuteQuery -- >>> > 08001 -- which is the "can't connect error". >>> >>> You have a network configuration problem of some sort: >>> >>> > Caused by: java.net.SocketException: Network is unreachable >>> >>> (This isn't "connection refused", it's "I have no configured route to >>> that address") >>> >>> Oliver >> >> >> >> -- >> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-jdbc >> > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc >