initdb failing - Mailing list pgsql-general

From Tony Grant
Subject initdb failing
Date
Msg-id 20010118095435.A861@tonux
Whole thread Raw
List pgsql-general
Hello,

I am going throught the pains of initdb failing again. I know that usually
this is a permissions problem but can't remember how I fixed it 18 months
ago (yes we should all have a notebook to document such things...)

I had a working 6.5.x on RedHat 6.2 and (stupidly) decided to upgrade to
7.0.3.

rpm -Uvh postgres*

installs all the bits that interest me, but "initdb -D /var/lib/pgsql" and
"/etc/rc.d/init.d/postgres start" both fail.

postgres]$ initdb -D /home/postgres
This database system will be initialized with username "postgres".
This user will own all the data files and must also own the server process.

Fixing permissions on pre-existing data directory /home/postgres
Creating database system directory /home/postgres/base
Creating database XLOG directory /home/postgres/pg_xlog
Creating template database in /home/postgres/base/template1
Creating global relations in /home/postgres/base
Adding template1 database to pg_database
/usr/bin/initdb: /tmp/initdb.29795: Permission denied
/usr/bin/initdb: /tmp/initdb.29795: Permission denied
/usr/bin/initdb: /tmp/initdb.29795: Permission denied
/usr/bin/initdb: /tmp/initdb.29795: No such file or directory

initdb failed.
Removing /home/postgres.
rm: cannot remove directory `/home/postgres': Permission denied
Failed.
Removing temp file /tmp/initdb.29795.

HELP!!!!

=;-`

Cheers

Tony Grant

pgsql-general by date:

Previous
From: "J.H.M. Dassen (Ray)"
Date:
Subject: Re: GET DIAGNOSTICS SELECT PROCESSED INTO
Next
From: "Dan Langille"
Date:
Subject: Re: GET DIAGNOSTICS SELECT PROCESSED INTO