Hi Gordon! Gordon Haverland [2005-06-09 7:53 -0600]: > That is how it looked to me when I started editing the postinst > script. But the first error was a rmdir which complained > about /var/lib/postgres being busy.
OK, then the only real "bug" here seems to be this error message, which is rather cosmetical. I'll quieten that in the next version. > Of course it is busy, it's a mount point. Although I have now run > the .postinst script 3 times via apt-get upgrade, there is no 7.4 > subdirectory under /var/lib/postgres, which I find kind of odd. First, it is /var/lib/postgresql/7.4, second there isn't because the data directory wasn't moved (because it can't). > Well, with so many edits on postinst, it's hard to tell what > happened. So, I removed all the edits and reran things again. > Postmaster is not running, and hasn't been since the first attempt > to fix things in the postinst yesterday. Are you sure? The pg_lsclusters output claims that the postmaster runs. Do you see it in ps aux|grep postmaster and does "psql-l" work? > There is however, a 7.4 subdirectory of /etc/postgresql. So, the > postinst has partly converted things, and now doesn't seem to be > able to finish things. No, that's the way it is supposed to work. The cluster configuration is always in /etc/postgresql/<version>/<cluster>. The standard location of the data directory is /var/lib/postgresql/<version>/<cluster>, but it can be an arbitrary one. So the upgrade just kept /var/lib/postgres since that is on another partition and you probably want to keep it that way. > I think things are slightly screwed up on this end now. :-) Oh, I don't think that it is that bad. > Odd command this one. Running it as the root user (not postgres), > it asks for a password. Just hitting enter, causes it to reask > for a password. Hitting any kind of input (like up arrow) causes > the command to run. Hm, that's an interesting bug, doesn't happen for me. Do you use password authentication for local access? > Version Cluster Port Status Owner Data directory > Log file > 7.4 legacy 5432 online > postgres /var/lib/postgres/data > /var/log/postgresql/postgresql-7.4-legacy.log This looks just perfect. So am I right that the only bug here is the misleading error message from rmdir? (Given that the postmaster actually runs, which I assume, since pg_lsclusters says "online"). Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org
signature.asc
Description: Digital signature