Обсуждение: could not initialize database directory;

Поиск
Список
Период
Сортировка

could not initialize database directory;

От
Alexei Tenitski
Дата:
Hi

I've bean setting postgresql already for 3 days :((
and I still can't understand why when i try to create a db i keep
receiveing this error:

NOTICE:  database directory '/usr/share/postgresql/data//base/26947'
could not b
e removed
ERROR:  CREATE DATABASE: could not initialize database directory; delete
failed
as well

Can anyone please help me?

win2k-sp2/ntfs,cygwin,psql7.1 rc4

Alexei Tenitski

Re: could not initialize database directory;

От
Jason Tishler
Дата:
Alexei,

On Mon, Mar 04, 2002 at 01:34:19PM +1300, Alexei Tenitski wrote:
> Can anyone please help me?

Try reading the README:

    http://tishler.net/jason/software/postgresql/postgresql-7.2.README

> win2k-sp2/ntfs,cygwin,psql7.1 rc4

Time to upgrade to 7.2?

Jason

Re: could not initialize database directory;

От
Jason Tishler
Дата:
Alexei,

Please keep your replies on-list!

On Tue, Mar 05, 2002 at 02:48:31PM +1300, Alexei Tenitski wrote:
> I've installed psql 7.2, have done everything as written in README
>
> Postmaster starts (as a service) but when i try to access it
> it dies. Log contains following:
>
> DEBUG:  database system is ready
> DEBUG:  server process (pid 1720) exited with exit code 128
> DEBUG:  terminating any other active server processes
> DEBUG:  all server processes terminated; reinitializing shared memory
> and semaphores
> IpcMemoryCreate: shmget(key=5432001, size=606208, 03600) failed: Not
> enough memory
>
> This error usually means that PostgreSQL's request for a shared
> memory segment exceeded available memory or swap space.
> To reduce the request size (currently 606208 bytes), reduce
> PostgreSQL's shared_buffers parameter (currently 16) and/or
> its max_connections parameter (currently 5).
>
> The PostgreSQL Administrator's Guide contains more information about
> shared memory configuration.
>
> I tried to edit this params (max conns & buffers) but this
> doesn't seem to change situation.
>
> Have you got any ideas about what could be the problem?

Did you change the user account under which postmaster is running?
If so, then heed the warning in the README:

    2. It is recommended to delete all cygipc temporary files
    (/tmp/cygipc* and /tmp/MultiFile*) before starting postmaster under
    a different user account.  Otherwise, postmaster will fail to start
    due to IPC errors.

If not, then sorry but I have no idea what the problem is.

Jason