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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Steve Wolfe" <steve(at)iboats(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Ah, yet another cause for not binding the right port....
Date: 2000-06-09 22:27:14
Message-ID: 20963.960589634@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Steve Wolfe" <steve(at)iboats(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Wolfe 2000-06-09 22:44:39 Re: Ah, yet another cause for not binding the right port....
Previous Message Charles Tassell 2000-06-09 21:21:28 Re: Re: Paging through records on the web