PostgreSQL 8 install fails (initdb)

Started by Borisabout 21 years ago4 messagesgeneral
Jump to latest
#1Boris
koester@x-itec.de

Hi there,

I have downloaded release 8.x for installation. Compilation and so on
works fine (FreeBSD 5.2.1)

initdb fails with the following informations:

copying template1 to template0 ... cp: /usr/local/pgsql/data/base/1/16384: Invalid argument
cp: /usr/local/pgsql/data/base/1/17175: Invalid argument
cp: /usr/local/pgsql/data/base/1/17180: Invalid argument
cp: /usr/local/pgsql/data/base/1/17183: Invalid argument
cp: /usr/local/pgsql/data/base/1/17185: Invalid argument
...
FATAL: could not initialize database directory
DETAIL: Failing system command was: cp -r '/usr/local/pgsql/data/base/1' '/usr/local/pgsql/data/base/17229'
HINT: Look in the postmaster's stderr log for more information.
child process exited with exit code 1
initdb: removing data directory "/usr/local/pgsql/data"

Anything I can do?

--
Best regards

Bo

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Boris (#1)
Re: PostgreSQL 8 install fails (initdb)

koester@x-itec.de writes:

I have downloaded release 8.x for installation. Compilation and so on
works fine (FreeBSD 5.2.1)

initdb fails with the following informations:

copying template1 to template0 ... cp: /usr/local/pgsql/data/base/1/16384: Invalid argument
cp: /usr/local/pgsql/data/base/1/17175: Invalid argument
cp: /usr/local/pgsql/data/base/1/17180: Invalid argument
cp: /usr/local/pgsql/data/base/1/17183: Invalid argument
cp: /usr/local/pgsql/data/base/1/17185: Invalid argument
...
FATAL: could not initialize database directory
DETAIL: Failing system command was: cp -r '/usr/local/pgsql/data/base/1' '/usr/local/pgsql/data/base/17229'
HINT: Look in the postmaster's stderr log for more information.
child process exited with exit code 1
initdb: removing data directory "/usr/local/pgsql/data"

Anything I can do?

Complain to some FreeBSD hackers? This seems like it must be a kernel
bug (or perhaps a bug in cp itself). I don't think Postgres did
anything wrong.

regards, tom lane

#3Boris
koester@x-itec.de
In reply to: Tom Lane (#2)
Re: PostgreSQL 8 install fails (initdb)

Hello Tom,

thanks four your answer.

Anything I can do?

Complain to some FreeBSD hackers? This seems like it must be a kernel
bug (or perhaps a bug in cp itself). I don't think Postgres did
anything wrong.

IŽll update the machine to the lastest version, Infos follows.

--
Best regards,
Bo mailto:koester@x-itec.de

#4Boris
koester@x-itec.de
In reply to: Tom Lane (#2)
Re: PostgreSQL 8 install fails (initdb)

Hello Tom,

Monday, February 21, 2005, 4:27:42 PM, you wrote:

initdb fails with the following informations:

copying template1 to template0 ... cp:
/usr/local/pgsql/data/base/1/16384: Invalid argument

..

FATAL: could not initialize database directory
initdb: removing data directory "/usr/local/pgsql/data"

..

Complain to some FreeBSD hackers? This seems like it must be a kernel
bug (or perhaps a bug in cp itself). I don't think Postgres did
anything wrong.

That was ist. There was a bug in the 5.2.1-r11 version, recompiling
and updating the userland to 5.3 fixed the problem.

Thanks a lot!

--
Best regards,
Bo
www.x-itec.net