pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>
Cc: Mario Guenterberg <mg@mattheis-berlin.de>
Cc: pgsql-general@postgresql.org
Subject: Re: Connection error
Date: Fri, 22 Jul 2005 11:08:32 +0100
Message-ID: <42E0C5A0.4070800@archonet.com> (raw)
In-Reply-To: <200507220958.j6M9wNj27057@s1.uklinux.net>
References: <200507220958.j6M9wNj27057@s1.uklinux.net>

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



view thread (19+ messages)  latest in thread

Message-ID: <42E0C5A0.4070800@archonet.com>
Permalink:  ../42E0C5A0.4070800@archonet.com/
Also on:    postgresql.org/message-id/42E0C5A0.4070800@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, Proprietor@FlagDisplays.com, mg@mattheis-berlin.de
  Subject: Re: Connection error
  In-Reply-To: <42E0C5A0.4070800@archonet.com>
  References: <200507220958.j6M9wNj27057@s1.uklinux.net> <42E0C5A0.4070800@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