pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Rasmus Mohr <rmo@Netpointers.com>
To: pgsql-admin@postgresql.org
Subject: Re: client connection problem
Date: Wed, 16 Jan 2002 09:14:43 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.com> (raw)
In-Reply-To: <910513A5A944D5118BE900C04F67CB5A0BFD01@MAIL>

Rasmus-

Try adding a line to pg_hba.conf for localhost specifically- I'd guess that
the request is coming in with that address rather than the local machine's
IP address.

use a line like this:

host   all   127.0.0.1   255.0.0.0   trust

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/



> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Rasmus Mohr
> Sent: Wednesday, January 16, 2002 8:52 AM
> To: 'pgsql-admin@postgresql.org'
> Subject: [ADMIN] client connection problem
>
>
> Hmmm... I've installed PostgreSQL 7.1.3 with the Red Hat 7.2 installation
> package, and everything works fine when connecting from localhost as the
> postgres user, but when I try to connect via TCP I get the usual
> "connectDBStart() -- ..." error suggesting that postmaster was started
> without the "-i" option.
>
> "-i" is added to /etc/init.d/postgresql - a "ps ax | grep postmaster"
> confirms this. The pg_hba.conf has modified to allow incoming connections
> from the subnet, as shown
>
> ...
> host         all         192.168.1.164   255.255.255.0     trust
> host         all         192.168.1.150   255.255.255.0     trust
> host         all         192.168.1.0     255.255.255.0     trust
> ...
>
> and I've set "tcpip_socket=true" in the postgresql.conf file...
>
> Yet I'm unable to establish a connection - what is wrong?
>
> (nmap confirms that postgresql is listening at port 5432)
>
> -----------------------------------------------------------
> Rasmus T. Mohr            Phone   :          +45 70 117 117
> Application Developer     Direct  :          +45 36 910 122
> Netpointers Intl.         Mobile  :          +45 28 731 827
> Vestergade 18 B           Website :     www.netpointers.com
> 1456 Copenhagen K         Email   :     rmo@netpointers.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>




view thread (4+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.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-admin@postgresql.org
  Cc: nickf@ontko.com, rmo@Netpointers.com
  Subject: Re: client connection problem
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.com>
  References: <910513A5A944D5118BE900C04F67CB5A0BFD01@MAIL> <NEBBLAAHGLEEPCGOBHDGEEEEEDAA.nickf@ontko.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