Обсуждение: installation(pg_depend) problem

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

installation(pg_depend) problem

От
HS
Дата:
Hi:
I am installing postgres on a Debian Linux box. After following all the necessray steps (make, make install, making the data directory, chown, etc), I ran initdb as pecified in the INSTALL file. It terminates giving the following error:

initializing pg_depend ... cannot connect : Connection refused
child process exited with exit code 1

Does anyone know what the problem is? (I have attached the complete output of initdb below).

Thank,
HSA


pguser@scspc123:~$ /usr/local/Robust/pgsql/bin/initdb -D /usr/local/Robust/pgsql/data

The files belonging to this database system will be owned by user "pguser".
This user must also own the server process.

The database cluster will be initialized with locale C.

fixing permissions on existing directory /usr/local/Robust/pgsql/data ... ok
creating directory /usr/local/Robust/pgsql/data/global ... ok
creating directory /usr/local/Robust/pgsql/data/pg_xlog ... ok
creating directory /usr/local/Robust/pgsql/data/pg_xlog/archive_status ... ok
creating directory /usr/local/Robust/pgsql/data/pg_clog ... ok
creating directory /usr/local/Robust/pgsql/data/pg_subtrans ... ok
creating directory /usr/local/Robust/pgsql/data/base ... ok
creating directory /usr/local/Robust/pgsql/data/base/1 ... ok
creating directory /usr/local/Robust/pgsql/data/pg_tblspc ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 1000
creating configuration files ... ok
creating template1 database in /usr/local/Robust/pgsql/data/base/1 ... ok
initializing pg_shadow ... ok
enabling unlimited row size for system tables ... ok
initializing pg_depend ... cannot connect : Connection refused
child process exited with exit code 1
initdb: removing contents of data directory "/usr/local/Robust/pgsql/data"

Re: installation(pg_depend) problem

От
Tom Lane
Дата:
HS <mhossein@gmail.com> writes:
> creating template1 database in /usr/local/Robust/pgsql/data/base/1 ... ok
> initializing pg_shadow ... ok
> enabling unlimited row size for system tables ... ok
> initializing pg_depend ... cannot connect : Connection refused
> child process exited with exit code 1

That's completely bizarre.  There isn't anything the pg_depend step does
that's very different from stuff already done in the earlier steps.
Also, I can't find the string "cannot connect" anywhere in the PG source
code, so it's not apparent where the error is coming from ... somewhere
down in glibc maybe?

You might try running the initdb process under "strace -f -o logfile" to
see if you can get more info.  The output will probably be voluminous,
so don't post it all; but the last few hundred lines might yield a clue
as to what the code is doing when it fails.

            regards, tom lane