X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 96489529AE for ; Fri, 22 Jul 2005 07:15:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43419-03 for ; Fri, 22 Jul 2005 10:15:33 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 22CEE5280D for ; Fri, 22 Jul 2005 07:15:32 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 55F8E4144AD; Fri, 22 Jul 2005 11:15:28 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id D324115EE7; Fri, 22 Jul 2005 11:08:36 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19327-05; Fri, 22 Jul 2005 11:08:33 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 37ED115EE1; Fri, 22 Jul 2005 11:08:33 +0100 (BST) Message-ID: <42E0C5A0.4070800@archonet.com> Date: Fri, 22 Jul 2005 11:08:32 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: WA Pennant & Flag Displays - Darren Cc: 'Mario Guenterberg' , pgsql-general@postgresql.org Subject: Re: Connection error References: <200507220958.j6M9wNj27057@s1.uklinux.net> In-Reply-To: <200507220958.j6M9wNj27057@s1.uklinux.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.056 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/897 X-Sequence-Number: 80995 WA Pennant & Flag Displays - Darren wrote: > Thanks for your advice: > > Do you get different messages with SSL disabled? > Yes - "Error connecting to the server: server closed the connection > unexpectedly. This probably means the server terminated abnormally before > or while processing the request." Good - so it's not just SSL related. > Can you connect with psql locally? > No > Can you connect with psql via localhost? > No Hmm - that makes the firewall options slightly less likely. 1. Make sure PG is listening on port 5432 and that log_connections is set in your postgresql.conf. Then check your pg_hba.conf allows connections from localhost and your local network. Restart PG. 2. Try telnetting to localhost, port 5432 (from the command-line in Windows it should be "telnet localhost:5432" I think). If it connects, hit return a couple of times and you should be disconnected. PostgreSQL's logs should say something about an invalid startup packet. If it doesn't even connect, then suspect a firewall. > The program installed was a web excelerator. I think the Windows Firewall > exceptions were turned off for PG and the program calling it. They are now > on. > > Will try the ethereal option. Seems less useful if you can't connect locally. > All recommended Windows updates are installed. -- Richard Huxton Archonet Ltd