pg.ddx.io  pgsql-cygwin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: schopen@dimdi.de
To: pgsql-cygwin@postgresql.org
Subject: Re: initdb fails
Date: Fri, 20 Apr 2001 08:54:41 +0200
Message-ID: <3ADFF951.8884.41E6868@localhost> (raw)

>> On Wed, Apr 18, 2001 at 06:13:43PM +0200, schopen@dimdi.de wrote:
>> bash-2.04$ bin/initdb
>> This database system will be initialized with username "schopen".
>> This user will own all the data files and must also own the server 
>> process.
>> 
>> Creating directory /usr/share/postgresql/data
>> [snip]
>> Initializing pg_shadow.
>> 
>> initdb failed.
>> Removing /usr/share/postgresql/data.
>> Removing temp file /tmp/initdb.194.
>> 
>> Any help? Thanks a lot.

> I just tried the above with the following configuration:
> 
>     NT 4.0 SP6a
>     PostgreSQL 7.1-2
>     cygipc 1.09-2
>     Cygwin 1.1.8-2 (with cygwin1.dll replaced by
> cygwin1-20010416.dll.bz2)
> 
> and the initdb worked as expected.
> 
> My only suggestion is to capture the output from the following:
> 
>     $ sh -x /bin/initdb
> 
> and send the precise point in the initdb shell script where the failure
> occurs to the list.  Hopefully, someone will be able to figure out what
> is going wrong for you.
> 
> Jason

Thanks, Jason. After replacing shapshot 20010416 by 20010413 nothing changed. 
Then I followed your advice and located the call in the initdb script. I removed "-o 
/dev/null" from PGSQL_OPT and realized that the path to postgres was wrong: 
"//bin/postgres". I called initdb with -L and everything worked fine. I think the reason 
is that I have the whole cygnus stuff under c:\cygwin and not under c:\

Again thanks for your help.
Michael
--
====================================================
Dr. med. Michael Schopen     Tel. +49 221 4724 325
Deutsches Institut fuer      Fax. +49 221 41 14 29
Medizinische Dokumentation 
und Information DIMDI        http://www.dimdi.de
Waisenhausgasse 36-38a
D-50676 Koeln                email:s#chopen@dimdi.de 
>>>   remove # to use email address   <<<
====================================================



view thread (13+ messages)  latest in thread

Message-ID: <3ADFF951.8884.41E6868@localhost>
Permalink:  ../3ADFF951.8884.41E6868@localhost/
Also on:    postgresql.org/message-id/3ADFF951.8884.41E6868@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-cygwin@postgresql.org
  Cc: schopen@dimdi.de
  Subject: Re: initdb fails
  In-Reply-To: <3ADFF951.8884.41E6868@localhost>
  References: <3ADFF951.8884.41E6868@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox