Re: BUG #5267: initdb fails on AIX: could not identify current directory - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5267: initdb fails on AIX: could not identify current directory
Date
Msg-id 2871.1262793836@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5267: initdb fails on AIX: could not identify current directory  ("Michael Felt" <mamfelt@gmail.com>)
Responses Re: BUG #5267: initdb fails on AIX: could not identify current directory  (Michael Felt <mamfelt@gmail.com>)
List pgsql-bugs
"Michael Felt" <mamfelt@gmail.com> writes:
> I have compiled postgresql on AIX 6.1 without a great deal of difficulity
> (./configure -without-readline -without-zlib).

> However, the fist step - initdb - fails. I have not been able to determine
> which directory it is complaining about.

> could not identify current directory: The file access permissions do not
> allow the specified action.

This message means that getcwd() failed, apparently with an EACCESS
code.  Typically what that means is that some parent directory of
the current directory is not readable or searchable by the user you
ran initdb as.

I believe that initdb also invokes getcwd for the directory that
its own executable is in, and possibly for the target data directory,
so you should check the paths leading to those as well.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #5267: initdb fails on AIX: could not identify current directory
Next
From: Takahiro Itagaki
Date:
Subject: Concurrent update failure in HEAD