Received: from postoffice.tased.edu.au (postoffice.tased.edu.au [147.41.65.10]) by hub.org (8.9.3/8.9.3) with SMTP id QAA84816 for ; Fri, 3 Mar 2000 16:42:07 -0500 (EST) (envelope-from shevlandj@kpi.com.au) Received: from pAc7.hbt.southcom.com.au by postoffice.tased.edu.au (5.65v4.0/1.1.22.3/02Nov99-0326PM) id AA11111; Sat, 4 Mar 2000 08:42:05 +1100 From: "Joe Shevland" To: "John Collins" , Cc: "Lamar Owen" Subject: RE: [INTERFACES] JDBC connection refused Date: Sat, 4 Mar 2000 08:42:59 -0800 Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-Msmail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <38BFF936.7B9E432A@cs.umn.edu> Importance: Normal Unsure if it will help, but try: > telnet localhost 5432 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. rubbish text I typed. ^^ EInvalid packet lengthConnection closed by foreign host. --- But instead try 'birch' or the IP address and see what you get. But the pg_hba file looks fine as you've got it I think. Maybe a red herring but check whether there's any firewalling set up on the server that stops you from connecting. Joe -----Original Message----- From: owner-pgsql-interfaces@postgreSQL.org [mailto:owner-pgsql-interfaces@postgreSQL.org]On Behalf Of John Collins Sent: Friday, 3 March 2000 9:41 AM To: pgsql-interfaces@postgreSQL.org Cc: Lamar Owen Subject: Re: [INTERFACES] JDBC connection refused Lamar Owen wrote: > John Collins wrote: > > - postmaster is indeed being run with the -i flag. I think neither the > > local jdbc or the remote pgaccess would work otherwise. Here's the line > > from rc.d/init.d/postgres: > > su -l postgres -c '/usr/bin/postmaster -i -S -D/var/lib/pgsql' > > - I've used every name I can think of, including the ip address, in the > > URL above. I've used the port and I've not used the port. > > - I've used netstat to check that postmaster is indeed listening on > > 5432 > > > > I'm stumped. Thanks in advance for any assistance. > > Is there a line in PGDATA/pg_hba.conf allowing access to the remote > client? > > PGDATA on the RPM installation that shipped with RedHat 6.1 is > /var/lib/pgsql, BTW. Here's the tail end of the file /var/lib/pgsql/pg_hba.conf. I've restarted twice since setting this info, using /etc/rc.d/init.d/postgresql restart. Then I tried a stop and a start just for good measure. The machines I'm trying to connect from are both 192.168.2.x. Did I get this right? ------------------ # By default, allow anything over UNIX domain sockets and localhost. local all trust host all 127.0.0.1 255.255.255.255 trust host all 192.168.2.0 255.255.255.0 trust ------------------ Thanks for your help. John Collins University of Minnesota ************