Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A31FF9FA4C3 for ; Tue, 24 Jul 2007 09:29:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 29661-06 for ; Tue, 24 Jul 2007 09:29:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 148ED9FA39B for ; Tue, 24 Jul 2007 09:29:08 -0300 (ADT) Received: from server3.office.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 DC8F9143550; Tue, 24 Jul 2007 13:26:34 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id B52492740EC; Tue, 24 Jul 2007 13:26:34 +0100 (BST) Message-ID: <46A5EFFA.5010600@archonet.com> Date: Tue, 24 Jul 2007 13:26:34 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Fst Procurement , PG-General Mailing List Subject: Re: Connection error References: <46A5CF79.2040506@telkomsa.net> <46A5D7E2.8020405@archonet.com> <46A5ECC1.7010807@telkomsa.net> In-Reply-To: <46A5ECC1.7010807@telkomsa.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/959 X-Sequence-Number: 117560 Don't forget to cc: the list Fst Procurement wrote: > Netstat has the following two entries. > > Local address Foreign address. > > fstserver1:2359 fstserver1.fst.co.za:5432 > fstserver1:5432 fstserver1.fst.co.za:2359 OK, so it looks like something is listening on the right port. Furthermore, you have a connection too! > The service starts, a new log file is created every time the service > starts, the conf file has been set to listen on all ip addresses and the > pg_hba.conf is exactly the same as the Win 2000 server. And what is in the log-file? Does it show evidence of connections. > Perhaps I should recap. > > We acquired a new server, installed Win 2003, installed Postgresql and > configured it with the same databases etc as the old one. We then tried > to run our 3rd party software to access the database on the new server > and received the connection error. The software uses ODBC to connect and > the only change that was required for the ODBC was to set the host > parameter to point to the new server. If I use the "Test" button it > returns "connection successful". Well, if your odbc test works but the application doesn't then you need to find out what is different between the two. > I can connect to the server with PgAdmin running from a remote machine, > but when I try and make a backup of the database through PgAdmin from > the remote machine, I get the same error message as that of the 3rd > party software. OK, so there clearly isn't a problem with the server side of things. If you can connect with pgadmin, then you can connect. Hmm - pgadmin just seems to run pg_dump with the relevant parameters. One of the following is different between pgadmin connecting normally and running pg_dump: - host - port - user - password See the server logs for details (assuming you've turned connection logging on) > When changing parameters in the conf file all I do is remove the comment > in the relevant line and then with some parameters the service refuses > to re-start. If I replace the comment it re-starts. Something will be logged. Although, if you're uncommenting the default values I can't see how you can get errors. > I have no fire wall set up and also don't have anti-virus running on the > server. I have also switched off DEP on the new server. It's not your server, it's your clients. -- Richard Huxton Archonet Ltd