Re: Bug #466: Unable to remove /root/tmp/initdb:xxxx.xxx - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: Bug #466: Unable to remove /root/tmp/initdb:xxxx.xxx
Date
Msg-id Pine.LNX.4.30.0109220259510.680-100000@peter.localdomain
Whole thread Raw
In response to Bug #466: Unable to remove /root/tmp/initdb:xxxx.xxx  (pgsql-bugs@postgresql.org)
List pgsql-bugs
> Vladimir Georgiev (vladimirg@rambler.bg) reports a bug with a severity of 3

> postgres$ /usr/local/pgsql/bin/initdb -D /dyn/pgsql/data
> Result: most of the script runs ok. At some point it said:
> ....... unable to remove /root/tmp/initdb:xxx.xxx
> where "xxx.xxx" are some numbers
> Result:Failed
> Observation: There are files created in /dyn/pgsql/data

Initdb doesn't produce that kind of output.  Please post the exact output
you got.  And what do you have set for $TMPDIR?

> postgres$ /usr/local/pgsql/bin/pg_ctl -D /dyn/pgsql/data -l /dyn/pgsql/home/server.log start
> Result: Failed. It said: Unable to remove /root/tmp/.....

pg_ctl doesn't produce that kind of output.  Please post the exact output
you got.

> 1) I've opened /dyn/pgsql/data/postgresql.conf
> 2) I've Uncommented the line
> #unix_socket_directory=''
> so it became this:
> unix_socket_directory='/tmp'
> 3) I've saved the so edited postgresql.conf.
> 4)
> postgres$ /usr/local/pgsql/bin/pg_ctl -D /dyn/pgsql/data -l /dyn/pgsql/home/server.log start
>
> RESULT: NOW IT WORKS FINE :-)

That is a completely incomprehensible workaround, but since you didn't
post the exact outputs above I cannot guess what actually happened here.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #466: Unable to remove /root/tmp/initdb:xxxx.xxx
Next
From: Bruce Momjian
Date:
Subject: Re: WAL Log numbering