Re: Window2012R2: initdb error: "The current directory is invalid."

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Huong Dangminh <huo-dangminh(at)ys(dot)jp(dot)nec(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Hiroshi Yanagisawa <hir-yanagisawa(at)ut(dot)jp(dot)nec(dot)com>
Subject: Re: Window2012R2: initdb error: "The current directory is invalid."
Date: 2016-01-20 06:05:14
Message-ID: CAMsr+YHib0t-T7XkDWTGwCN8aJG0MqpqHOn3Cyfpfg0av__V5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On 19 January 2016 at 18:49, Huong Dangminh <huo-dangminh(at)ys(dot)jp(dot)nec(dot)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?

http://www.nirsoft.net/utils/ntfs_links_view.html

http://superuser.com/q/823959

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Huong Dangminh 2016-01-20 08:22:08 Re: [HACKERS] Window2012R2: initdb error: "The current directory is invalid."
Previous Message Michael Paquier 2016-01-20 00:11:59 Re: BUG #13876: pg_xlogdump give an error on timeline switch

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2016-01-20 06:20:15 Re: Why format() adds double quote?
Previous Message Masahiko Sawada 2016-01-20 06:05:01 Re: Support for N synchronous standby servers - take 2