pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: markos <el96645@mail.ntua.gr>
To: pgsql-admin@postgresql.org
Subject: Re: psql: could not connect to server: Network is
Date: Thu, 05 Jan 2006 03:26:58 +0200
Message-ID: <1136424419.10198.11.camel@localhost> (raw)
In-Reply-To: <3962.1136397096@sss.pgh.pa.us>
References: <1136376493.9304.15.camel@localhost>
	<5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com>
	<1136396049.8613.18.camel@localhost>
	<3962.1136397096@sss.pgh.pa.us>

On Wed, 2006-01-04 at 12:51 -0500, Tom Lane wrote:
> markos <el96645@mail.ntua.gr> writes:
> > psql -h localhost -U markulis
> > psql: could not connect to server: Network is unreachable
> >         Is the server running on host "localhost" and accepting
> >         TCP/IP connections on port 5432?
> 
> Hm.  "Network is unreachable" means that you have got a networking
> problem not a database problem.  You'll probably find that simple
> commands like "ping localhost" don't work either.  The problem could
> be a DNS issue --- what does "nslookup localhost" say?  If it comes
> back with something reasonable, then you've got a kernel
> misconfiguration issue, which I don't think I can help you with.
> 
> 			regards, tom lane

Thanks a lot. You were actually right, the network was down. I just had
to give the command : "sudo ifup lo". I just couldn't narrow my search
until you made sure that postgre is ok, so thanks again




view thread (6+ messages)

Message-ID: <1136424419.10198.11.camel@localhost>
Permalink:  ../1136424419.10198.11.camel@localhost/
Also on:    postgresql.org/message-id/1136424419.10198.11.camel@localhost

 · 

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: el96645@mail.ntua.gr
  Subject: Re: psql: could not connect to server: Network is
  In-Reply-To: <1136424419.10198.11.camel@localhost>
  References: <1136376493.9304.15.camel@localhost> <5e744e3d0601040434h2853fdafvc0068beae18681c2@mail.gmail.com> <1136396049.8613.18.camel@localhost> <3962.1136397096@sss.pgh.pa.us> <1136424419.10198.11.camel@localhost>

* 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