Hallo Martin,
On Sun, May 21, 2006 at 05:34:18PM +0200, Martin Pitt wrote:
> Helge Kreutzmann [2006-05-21 15:44 +0200]:
> > During installation of postgresql-8.1 /var became full. I created some
> > space by removing some files in /var/cache/apt/archives, and tried to
> > continue the installation which however fails:
> > [...]
> 
> Thanks for your report!
> 
> > At this point I am stuck. Both installing and removing fail. Btw.
> > there is still 28 MB free on /var (now).
> 
> Please do 'rm -rf /var/lib/postgresql/ /etc/postgresql/' to clean up.
> (But please save these directories for debugging).

The first one is empty (i.e., only a directory structure) and I
removed it (after backing it up, see below), the second one I renamed
for the moment being (should do the trick as well).

> > If that matters: There used to be a 7.x database when the machine was
> > on Sarge, but during uprade for some reason postgresql was removed,
> > and I now wanted to reinstall it (possibly manually restoring the
> > dump).
> 
> If you think that's a postgresql related bug, can you please file a
> separate one?

No, I don't think it is a postgresql related bug. I used a mirror of
ftp.debian.org, but (comparing to my ppc laptop) not all packages in
Etch appeared there, so later I added (temporarily) the "old" alioth
source, but then, postgresql was already "gone". So I simply think
that some intermediate version problem hit me.

> > I will wait a few days if you want me to diagnose further, otherwise I
> > will try to get it removed/installed somehow.
> 
> Can you please tar up /etc/postgresql/ and /var/lib/postgresql/ and
> make it available for debugging somewhere? I already had a similar bug
> in the past, and I failed to reproduce this broken state. (I'm on
> amd64 myself, so the architectures match).

You can find those (really small files) in
http://www.helgefjell.de/data/pgupdate_etc.tar.bz2
and in 
http://www.helgefjell.de/data/pgupdate_var.tar.bz2
(respectively). 

Ok, let's see if it now works:
Creating new cluster (configuration: /etc/postgresql/8.1/main, data: 
/var/lib/postgresql/8.1/main)...
FATAL:  konnte nicht in Datei »base/10792/2666« schreiben: Auf dem Gerät ist 
kein Speicherplatz mehr verfügbar
Kindprozess hat mit Code 1 beendet
initdb: entferne Inhalt des Datenverzeichnisses »/var/lib/postgresql/8.1/main«
Error: initdb failed
dpkg: Fehler beim Bearbeiten von postgresql-8.1 (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 postgresql-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ok, still too little space, it seems, but:
remaxp:~# df -h /var
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/mapper/system_vg-var_lv
                      6,9G  6,6G   23M 100% /var

Does postgresql need more than 23 MB to install? Maybe a check could
be added then? (And yes, *no* file system is full!)

Greetings

           Helge
-- 
      Dr. Helge Kreutzmann                     [EMAIL PROTECTED]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to