Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Bosco Rama
Tom Lane wrote: > > Fascinating. So maybe there is something to Bosco's theory of something > holding open the old pidfile. There could also have been a corrupt in-memory/cached descriptor in the filesystem code that never needed flushing to disk? That would help explain why it fully went away

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 19:28, Tom Lane wrote: > Thom Brown writes: >> On 6 March 2012 18:20, Tom Lane wrote: >>> Still, I agree with your point: Thom should reboot and see if the >>> misbehavior is still there, because that would be useful info for his >>> bug report. > >> After a reboot, initdb comple

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > On 6 March 2012 18:20, Tom Lane wrote: >> Still, I agree with your point: Thom should reboot and see if the >> misbehavior is still there, because that would be useful info for his >> bug report. > After a reboot, initdb completes successfully. I don't think it > performed

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 18:51, dennis jenkins wrote: > On Tue, Mar 6, 2012 at 10:11 AM, Thom Brown wrote: >> On 6 March 2012 16:04, Adrian Klaver wrote: >>> The postmaster.pid is located outside the data directory, but points back >>> to the >>> data directory.   Not sure where Debian, though at a gues

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 18:20, Tom Lane wrote: > Bosco Rama writes: >> Thom Brown wrote: >>> I've done that a couple times, but no effect.  I think Tom's point >>> about a filesystem bug is probably right. > >> Have you rebooted since this started?  There may be a process that is >> holding the pid file

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread dennis jenkins
On Tue, Mar 6, 2012 at 10:11 AM, Thom Brown wrote: > On 6 March 2012 16:04, Adrian Klaver wrote: >> The postmaster.pid is located outside the data directory, but points back to >> the >> data directory.   Not sure where Debian, though at a guess somewhere in /var. >> Any way search for postmaste

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Bosco Rama writes: > Thom Brown wrote: >> I've done that a couple times, but no effect. I think Tom's point >> about a filesystem bug is probably right. > Have you rebooted since this started? There may be a process that is > holding the pid file 'deleted but present' until the process terminat

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Bosco Rama
Sry, forgot to add list. Thom Brown wrote: > > I've done that a couple times, but no effect. I think Tom's point > about a filesystem bug is probably right. Have you rebooted since this started? There may be a process that is holding the pid file 'deleted but present' until the process termina

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > On 6 March 2012 18:01, Adrian Klaver wrote: >> A thought, what if you do rm -rf * in the data directory? > I've done that a couple times, but no effect. I think Tom's point > about a filesystem bug is probably right. Yeah, given your "touch" experiment I think that you hav

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Magnus Hagander
On Tue, Mar 6, 2012 at 19:03, Thom Brown wrote: > On 6 March 2012 18:01, Adrian Klaver wrote: >> On Tuesday, March 06, 2012 9:53:52 am Tom Lane wrote: >>> Thom Brown writes: >>> > /home/thom/Development/data was causing problems so: >>> > >>> > mv data databroken >>> > mkdir data >>> > initdb >>

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 18:01, Adrian Klaver wrote: > On Tuesday, March 06, 2012 9:53:52 am Tom Lane wrote: >> Thom Brown writes: >> > /home/thom/Development/data was causing problems so: >> > >> > mv data databroken >> > mkdir data >> > initdb >> > >> > ... working fine again.  I then used the postmaste

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 9:53:52 am Tom Lane wrote: > Thom Brown writes: > > /home/thom/Development/data was causing problems so: > > > > mv data databroken > > mkdir data > > initdb > > > > ... working fine again. I then used the postmaster.pid from this when > > started up. But if I do: >

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 17:53, Tom Lane wrote: > Thom Brown writes: >> /home/thom/Development/data was causing problems so: > >> mv data databroken >> mkdir data >> initdb > >> ... working fine again.  I then used the postmaster.pid from this when >> started up.  But if I do: > >> pg_ctl stop >> rm -rf d

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 9:48:51 am Thom Brown wrote: > On 6 March 2012 17:45, Adrian Klaver wrote: > > On Tuesday, March 06, 2012 9:25:17 am Thom Brown wrote: > >> These are in my env output: > >> > >> PATH=/home/thom/Development/psql/bin/:/usr/lib/lightdm/lightdm:/usr/loca > >> l/s bin:/usr/l

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > /home/thom/Development/data was causing problems so: > mv data databroken > mkdir data > initdb > ... working fine again. I then used the postmaster.pid from this when > started up. But if I do: > pg_ctl stop > rm -rf data > mv databroken data > initdb > ... error messag

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 17:46, Tom Lane wrote: > Thom Brown writes: >> On 6 March 2012 16:31, Tom Lane wrote: >>> [ scratches head... ]  I can't reproduce it with current git tip. > >> And I don't think I can reproduce this if I remove that directory. >> I've seen this issue about 3 or 4 times in the pa

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 17:45, Adrian Klaver wrote: > On Tuesday, March 06, 2012 9:25:17 am Thom Brown wrote: > >> >> These are in my env output: >> >> PATH=/home/thom/Development/psql/bin/:/usr/lib/lightdm/lightdm:/usr/local/s >> bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games >> PGDATA=/home

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 9:43:00 am Tom Lane wrote: > Adrian Klaver writes: > > The postmaster.pid is located outside the data directory, but points back > > to the data directory. Not sure where Debian, though at a guess > > somewhere in /var. Any way search for postmaster.pid. > > Really?

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > On 6 March 2012 16:31, Tom Lane wrote: >> [ scratches head... ]  I can't reproduce it with current git tip. > And I don't think I can reproduce this if I remove that directory. > I've seen this issue about 3 or 4 times in the past, and fixed it by > ditching the old data dir

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 9:25:17 am Thom Brown wrote: > > These are in my env output: > > PATH=/home/thom/Development/psql/bin/:/usr/lib/lightdm/lightdm:/usr/local/s > bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > PGDATA=/home/thom/Development/data/ > PGPORT=5488 > > This appe

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Adrian Klaver writes: > The postmaster.pid is located outside the data directory, but points back to > the > data directory. Not sure where Debian, though at a guess somewhere in /var. > Any way search for postmaster.pid. Really? That seems like an extremely dangerous/stupid/unnecessary hac

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 17:16, Tom Lane wrote: > Thom Brown writes: >> Looking back through my terminal log, one thing might lend a clue from >> before I tried rebuliding it: > >> thom@swift:~/Development$ pg_ctl stop >> waiting for server to shut downcd .postgre.s >> . >> > > > >> .

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 9:09:41 am Thom Brown wrote: > On 6 March 2012 17:00, Adrian Klaver wrote: > > On Tuesday, March 06, 2012 8:44:10 am Thom Brown wrote: > >> >> And if I start my development copy, this is the content of its > >> >> postmaster.pid: > >> >> > >> >> 27061 > >> >> /home/thom

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > Looking back through my terminal log, one thing might lend a clue from > before I tried rebuliding it: > thom@swift:~/Development$ pg_ctl stop > waiting for server to shut downcd .postgre.s > . > > ^C > thom@swift:~/Development$ pg_ctl stop > pg_ct

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 17:00, Adrian Klaver wrote: > On Tuesday, March 06, 2012 8:44:10 am Thom Brown wrote: > >> >> And if I start my development copy, this is the content of its >> >> postmaster.pid: >> >> >> >> 27061 >> >> /home/thom/Development/data >> >> 1331050950 >> >> 5488 >> >> /tmp >> >> localh

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 8:44:10 am Thom Brown wrote: > >> And if I start my development copy, this is the content of its > >> postmaster.pid: > >> > >> 27061 > >> /home/thom/Development/data > >> 1331050950 > >> 5488 > >> /tmp > >> localhost > >> 5488001 191365126 > > > > So how are getting

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:40, Adrian Klaver wrote: > On Tuesday, March 06, 2012 8:24:20 am Thom Brown wrote: >> >> >> No, only the ones running as the postgres user. > > In my original read, I missed the part you had the Ubuntu/Debian packaged > version running. > >> >> Here's the contents of the pid fil

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 8:24:20 am Thom Brown wrote: > > > No, only the ones running as the postgres user. In my original read, I missed the part you had the Ubuntu/Debian packaged version running. > > Here's the contents of the pid file in /var/lib/postgresql/9.1/main/ > > 1199 > /var/lib

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:31, Tom Lane wrote: > Thom Brown writes: >> On 6 March 2012 16:02, Tom Lane wrote: >>> Um ... I assume this is some patched version rather than pristine >>> sources?  It's pretty hard to explain why it's falling over like that. > >> No, I did a "git stash", "git clean -f" and

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > On 6 March 2012 16:02, Tom Lane wrote: >> Um ... I assume this is some patched version rather than pristine >> sources?  It's pretty hard to explain why it's falling over like that. > No, I did a "git stash", "git clean -f" and "git pull" before trying to build. [ scratches

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:18, Adrian Klaver wrote: > On Tuesday, March 06, 2012 8:11:20 am Thom Brown wrote: >> On 6 March 2012 16:04, Adrian Klaver wrote: >> > The postmaster.pid is located outside the data directory, but points back >> > to the data directory.   Not sure where Debian, though at a gues

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:11, Thom Brown wrote: > On 6 March 2012 16:04, Adrian Klaver wrote: >> The postmaster.pid is located outside the data directory, but points back to >> the >> data directory.   Not sure where Debian, though at a guess somewhere in /var. >> Any way search for postmaster.pid. > >

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 8:11:20 am Thom Brown wrote: > On 6 March 2012 16:04, Adrian Klaver wrote: > > The postmaster.pid is located outside the data directory, but points back > > to the data directory. Not sure where Debian, though at a guess > > somewhere in /var. Any way search for postma

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:04, Adrian Klaver wrote: > The postmaster.pid is located outside the data directory, but points back to > the > data directory.   Not sure where Debian, though at a guess somewhere in /var. > Any way search for postmaster.pid. I'm not sure, because if I use a new data director

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
On 6 March 2012 16:02, Tom Lane wrote: > Thom Brown writes: >> thom@swift:~/Development$ initdb >> The files belonging to this database system will be owned by user "thom". >> This user must also own the server process. > >> The database cluster will be initialized with locale en_GB.UTF-8. >> The

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Adrian Klaver
On Tuesday, March 06, 2012 7:46:37 am Thom Brown wrote: > Hi all, > > After building Postgres and trying an initdb, I'm getting the following: > > > thom@swift:~/Development$ initdb > The files belonging to this database system will be owned by user "thom". > This user must also own the server p

Re: [GENERAL] Unhelpful initdb error message

2012-03-06 Thread Tom Lane
Thom Brown writes: > thom@swift:~/Development$ initdb > The files belonging to this database system will be owned by user "thom". > This user must also own the server process. > The database cluster will be initialized with locale en_GB.UTF-8. > The default database encoding has accordingly been

[GENERAL] Unhelpful initdb error message

2012-03-06 Thread Thom Brown
Hi all, After building Postgres and trying an initdb, I'm getting the following: thom@swift:~/Development$ initdb The files belonging to this database system will be owned by user "thom". This user must also own the server process. The database cluster will be initialized with locale en_GB.UTF-