Re: Ah, yet another cause for not binding the right port....
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Steve Wolfe" <steve@iboats.com>
Cc: pgsql-general@postgresql.org
Date: 2000-06-09T22:27:14Z
Lists: pgsql-general
"Steve Wolfe" <steve@iboats.com> writes:
> 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,
I tried this and got what I thought was a fairly reasonable error
message:
FATAL: StreamServerPort: bind() failed: Permission denied
Is another postmaster already running on that port?
If not, remove socket node (/tmp/.s.PGSQL.5432) and retry.
postmaster: cannot create UNIX stream port
"Permission denied" is what the kernel told us, and I don't think it's
likely to be a good idea to second-guess why the kernel told us that.
But the reference to /tmp/.s.PGSQL.5432 together with that error ought
to be sufficient clue I would think...
regards, tom lane