pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Fst Procurement <fst-procurement@telkomsa.net>
Cc: pgsql-general@postgresql.org
Subject: Re: Connection error
Date: Tue, 24 Jul 2007 11:43:46 +0100
Message-ID: <46A5D7E2.8020405@archonet.com> (raw)
In-Reply-To: <46A5CF79.2040506@telkomsa.net>
References: <46A5CF79.2040506@telkomsa.net>

Fst Procurement wrote:
> Hi ,
> 
> I am trying to connect to postgres on Win 2003 server std version but I 
> keep on getting an error . "Are you sure the server is running and that 
> connections for the client's IP address have been enabled" . The Win 
> 2003 is a 64 bit edition.
> 
> I am sure of my settings. I have installed on a Win 2000 server with no 
> problems.

So is PostgreSQL listening on the port you've set?
Can you connect to that port from the client machine?
What do the logs show (you have turned connection logging on, haven't you)?

> The only difference between this installation and the Win 2000 
> installation is that I installed the database on logical drive D and the 
> program was installed on drive C.

And the fact that they are different machines, running different 
operating systems.

> I have checked all settings that I can think of. Do you have any other 
> ideas for me?

There's no need to check all your settings. Just work through the basic 
steps to check PG (or any service) is running:
1. Does the service start?
    - does it say started in your service manager?
    - does it appear in your process list?
    - what do the logs say?
2. Is it listening to the right port?
    - what does netstat say?
3. Can you connect to that port?
    - Will a telnet to that port connect?
    - do your firewall logs show anything?

If you pass these 3 then you should be able to get PG to log a 
connection attempt (whether it passes or fails).

> I have used EMS SqlManager to transfer data and that worked Ok. 

Hang on - can you connect, or can't you? If you can connect with 
SqlManager but not pgadmin that suggests your settings in pgadmin, 
doesn't it?

 > However
> when trying to make a backup with PgAdmin 1.7 I get the same connection 
> error. I tried installing PgAdmin 1.8 but this will not connect at all - 
> not even to the Win 2000 server.

I don't think they released a version 1.7 of pgAdmin-III, and I know 1.8 
is in beta. Stick to the working releases if you're trying to diagnose a 
problem.

> I have tried changing some parameters in the conf file. I first stop the 
> service, change the settings and re-start the service. On some changes 
> the service will not re-start. I have to undo these changes to get the 
> service to start again. Are there some settings which cannot be changed?

No. You might get the syntax wrong, in which case you might stop the 
system from starting. Your logs should say why.

-- 
   Richard Huxton
   Archonet Ltd



view thread (19+ messages)  latest in thread

Message-ID: <46A5D7E2.8020405@archonet.com>
Permalink:  ../46A5D7E2.8020405@archonet.com/
Also on:    postgresql.org/message-id/46A5D7E2.8020405@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: dev@archonet.com, fst-procurement@telkomsa.net
  Subject: Re: Connection error
  In-Reply-To: <46A5D7E2.8020405@archonet.com>
  References: <46A5CF79.2040506@telkomsa.net> <46A5D7E2.8020405@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox