Re: ERROR: CREATE DATABASE: could not initialize database directory

From: "Jean-Marc Paulin" <jmp(at)micromuse(dot)com>
To: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>, <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: ERROR: CREATE DATABASE: could not initialize database directory
Date: 2002-06-24 09:29:29
Message-ID: 003a01c21b61$a73f0ce0$0a0a0a0a@CACHAREL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

RE: [CYGWIN] ERROR: CREATE DATABASE: could not initialize database directoryYES 100%

Affirmative !!!

Same command line too. Even further, a psql client connected to the postmaster service can select/insert in the databases. So I would assume this is not a privilege related issue either.

JM
----- Original Message -----
From: Henshall, Stuart - WCP
To: 'Jean-Marc Paulin' ; pgsql-cygwin(at)postgresql(dot)org
Sent: Monday, June 24, 2002 10:17 AM
Subject: RE: [CYGWIN] ERROR: CREATE DATABASE: could not initialize database directory

Are you running the service as the same user as when you run from a shell?
- Stuart

> -----Original Message-----
> From: Jean-Marc Paulin [mailto:jmp(at)micromuse(dot)com]
>
> Hi there,
>
> Seems I am not the only one in this case...
>
> I am running PostgreSQL 7.2.1 (freshly build on a Win2K SP2
> machine) and all
> its dependants.
> - I have follow Jason's FAQ (ok, without the patches ... )
> - I have managed to initialize the template1 database.
> - I can get the samples to run against the server
> - I can create tables, insert/select data... (I've done that
> in another
> database, not template1)
>
> If I run postmaster as a daemon from a cygwin telnet session,
> createdb works
> fine.
> If I run postmaster as a service (via the cygrunsrv),
> createdb return the
> error: "could not initialize database directory".
>
> Even more confusing, if I run postmaster as a daemon, create
> a Db, then kill
> postmaster daemon, then start posmaster service, I can use the freshly
> created database.
>
> I do not belive this is a security issue because postmaster
> as a daemon
> works fine, files are owned by postmater, the /etc/passwd file is
> correct,...
> - this is not because cp and mv are not in the default path (
> if I logon to
> the PC with postgres user and open a raw Win32 cmd window, I
> can use cp and
> mv).
> - I do not have any quota or disk space Pb either...
>
> Any hints ?
>
> Jean-Marc

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message S. L. 2002-06-25 06:00:31 Re: ERROR: CREATE DATABASE: could not initialize database directory
Previous Message Henshall, Stuart - WCP 2002-06-24 09:17:33 Re: ERROR: CREATE DATABASE: could not initialize databas