pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Troubles Starting Postgres
4+ messages / 2 participants
[nested] [flat]

* Troubles Starting Postgres
@ 2002-03-30 14:18 Derek Neighbors <derek@gnue.org>
  2002-03-30 18:09 ` Re: Troubles Starting Postgres Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Derek Neighbors @ 2002-03-30 14:18 UTC (permalink / raw)
  To: pgsql-admin

Been running Postgres on many platforms for sometime and never had much issue starting it.  I recently installed on a machine and get the following when trying to start it.  I searched the lists and google and didnt find much useful information.

PGSTAT: bind(2): Cannot assign requested address
Failed to start the postmaster

aegagrus:/home/dneighbo# less /etc/host.conf 
order hosts,bind
multi on

aegagrus:/home/dneighbo# less /etc/hosts
127.0.0.1       aegagrus        localhost

I am not sure why its addressing bind....  Any help greatly appreciated.

-derek



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Troubles Starting Postgres
  2002-03-30 14:18 Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
@ 2002-03-30 18:09 ` Tom Lane <tgl@sss.pgh.pa.us>
  2002-03-30 18:42   ` Re: Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
  2002-03-30 18:57   ` Re: Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2002-03-30 18:09 UTC (permalink / raw)
  To: Derek Neighbors <derek@gnue.org>; +Cc: pgsql-admin

Derek Neighbors <derek@gnue.org> writes:
> PGSTAT: bind(2): Cannot assign requested address
> Failed to start the postmaster

PGSTAT tries to bind to 127.0.0.1 to create a loopback UDP path for
passing statistics data.  Not clear why this would fail unless you
have some network filtering software in there to prevent it.  Without
more info about your platform, network config, etc, there's little
more I can say...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Troubles Starting Postgres
  2002-03-30 14:18 Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
  2002-03-30 18:09 ` Re: Troubles Starting Postgres Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-03-30 18:42   ` Derek Neighbors <derek@gnue.org>
  1 sibling, 0 replies; 4+ messages in thread

From: Derek Neighbors @ 2002-03-30 18:42 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

> PGSTAT tries to bind to 127.0.0.1 to create a loopback UDP path for
> passing statistics data.  Not clear why this would fail unless you
> have some network filtering software in there to prevent it.  Without
> more info about your platform, network config, etc, there's little
> more I can say...

Platform
--------
aegagrus:/home/dneighbo# less /proc/version 
Linux version 2.4.17-k7 (herbert@gondolin) (gcc version 2.95.4 20011006 (Debian prerelease)) #2 Sat Dec 22 22:03:49 EST 2001

Network
--------
aegagrus:/home/dneighbo# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:06:F7:23:BD  
          inet addr:192.168.100.40  Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:262314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:295273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:31208 txqueuelen:100 
          RX bytes:282725926 (269.6 MiB)  TX bytes:29130298 (27.7 MiB)
          Interrupt:5 Base address:0xfe00 

In prior mail posted my hosts file and hosts.conf

The configuration is I have an internal network 192.168.100.xx that this machine is on.  There is a server that has a connection to the internet and I use it also as a gateway for the internal network.

To my knowledge I do not have not installed any fire wall on this machine, basically this is a stock Debian install from 'unstable'.  I will gladly give more information if you can tell me specifics you are looking for.

-derek



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Troubles Starting Postgres
  2002-03-30 14:18 Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
  2002-03-30 18:09 ` Re: Troubles Starting Postgres Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-03-30 18:57   ` Derek Neighbors <derek@gnue.org>
  1 sibling, 0 replies; 4+ messages in thread

From: Derek Neighbors @ 2002-03-30 18:57 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

> PGSTAT tries to bind to 127.0.0.1 to create a loopback UDP path for
> passing statistics data.  Not clear why this would fail unless you
> have some network filtering software in there to prevent it.  Without
> more info about your platform, network config, etc, there's little
> more I can say...

Bad luser no donut.

Seems when i configured this box in /etc/hosts I put

127.0.0.1	computername	localhost (instead of)
127.0.0.1	localhost	computername

Which made 'auto lo' fail in my interfaces file which during debugging got commented out.  Subsequently when the machine was rebooted a while back trouble shooting hardware issues lo never restarted.  Networking has been all well and dandy to the net, but postgres actually wanted localhost.  So problem solved.

aegagrus:/etc/network# ps ax |grep postgres
 8288 pts/0    S      0:00 /usr/lib/postgresql/bin/postmaster
 8289 pts/0    S      0:00 postgres: stats buffer process    
 8292 pts/0    S      0:00 postgres: stats collector process   
aegagrus:/etc/network# 


Thank you very much for responding to what was a dumb question.

-Derek



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-03-30 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-30 14:18 Troubles Starting Postgres Derek Neighbors <derek@gnue.org>
2002-03-30 18:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-03-30 18:42   ` Derek Neighbors <derek@gnue.org>
2002-03-30 18:57   ` Derek Neighbors <derek@gnue.org>

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