Ah, yet another cause for not binding the right port....

From: "Steve Wolfe" <steve(at)iboats(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Ah, yet another cause for not binding the right port....
Date: 2000-06-09 18:14:10
Message-ID: 007401bfd23e$82a2b5d0$85755ad1@iboats.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I've run across yet another cause that can make Postgres not be able to
bind to the port it desires (or any other port, for that matter). I don't
recall it being discussed before, so I'll throw it out.

When postgres binds to any port, it likes to write a file in /tmp, along
the lines of ".s.PGSQL.5432". If /tmp is not writeable by the postgres
process, it will not be able to bind to any port. However, it doesn't give
you an intelligent error message like "Can't create file", it simply says
that it can't bind the port, and of course, asks if another postgres
process is already running.

For those interested, I found that out after having a sudden power loss
wipe out several filesystems, and I had a late night reformatting and
restoring from the backups, which I (thankfully!) had made that morning.
When I remounted the /tmp permission, I forgot to set the permissions.
Even more interesting was watching the two UPS' that I bought spark, flash,
pop, and die. : )

steve

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Charles Tassell 2000-06-09 21:21:28 Re: Re: Paging through records on the web
Previous Message Tom Lane 2000-06-09 17:49:53 Re: Cannot INDEX an Access97 ODBC