Re: initdb fails

From: schopen(at)dimdi(dot)de
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: initdb fails
Date: 2001-04-20 06:54:41
Message-ID: 3ADFF951.8884.41E6868@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

>> On Wed, Apr 18, 2001 at 06:13:43PM +0200, schopen(at)dimdi(dot)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(at)dimdi(dot)de
>>> remove # to use email address <<<
====================================================

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2001-04-20 15:36:44 Cygwin PostgreSQL ESQL Patch
Previous Message Jason Tishler 2001-04-19 16:48:05 Re: PostGreSQL 7.1 with CygWin