Re: Window2012R2: initdb error: "The current directory is invalid." - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Window2012R2: initdb error: "The current directory is invalid."
Date
Msg-id CAMsr+YHib0t-T7XkDWTGwCN8aJG0MqpqHOn3Cyfpfg0av__V5w@mail.gmail.com
Whole thread Raw
In response to Window2012R2: initdb error: "The current directory is invalid."  (Huong Dangminh <huo-dangminh@ys.jp.nec.com>)
List pgsql-hackers
On 19 January 2016 at 18:49, Huong Dangminh <huo-dangminh@ys.jp.nec.com> wrote:
Hi all,

I have failed in execute initdb in "c:\Windows\Temp\dir" folder as
reproduce logs below. The OS's messages "The current directory is invalid."
was returned.

Is that directory or any parent of it a junction point?



Also, why would you possibly run the installer from there? You should be using %TEMP% which should generally resolve to C:\Users\{Username}\AppData\Local\Temp or similar.
 
creating template1 database in c:/testdb/base/1 ... The current directory is invalid.

It looks like somehow the current working directory is unmapped or cannot be found.

Is there any chance you have mapped network drives in use?
 
--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Re: pglogical_output - a general purpose logical decoding output plugin
Next
From: Masahiko Sawada
Date:
Subject: Re: Support for N synchronous standby servers - take 2