Bug 38129 - SystemError: E:Write error - write (28: No space left on device)
SystemError: E:Write error - write (28: No space left on device)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - App-Center
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Florian Best
Alexander Kläser
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-25 15:27 CET by Florian Best
Modified: 2015-05-28 16:49 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments
Screenshot error message (21.37 KB, image/png)
2015-05-26 16:55 CEST, Alexander Kläser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-03-25 15:27:02 CET
Reported by traceback feedback:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 266, in handle
    self.__handler.init()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 86, in init
    lock=False,
  File "%PY2.7%/univention/lib/package_manager.py", line 264, in __init__
    self.cache = apt.Cache()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 145, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: E:Write error - write (28: No space left on device), E:IO Error saving source cache, E:The package lists or status file could not be parsed or opened.

Version:
4.0-1 errata113 (Walle)
Comment 1 Florian Best univentionstaff 2015-03-30 07:52:20 CEST
This similar traceback has been reported:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/protocol/modserver.py", line 266, in handle
    self.__handler.init()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 86, in init
    lock=False,
  File "%PY2.7%/univention/lib/package_manager.py", line 264, in __init__
    self.cache = apt.Cache()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 102, in __init__
    self.open(progress)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 145, in open
    self._cache = apt_pkg.Cache(progress)
SystemError: W:Datei >>20_ucs-online-component.list.old<< in Verzeichnis >>/etc/apt/sources.list.d/<< wird ignoriert, da sie eine ung?ltige
Dateinamen-Erweiterung hat., E:Schreibfehler - write (28: Auf dem Ger?t ist kein Speicherplatz mehr verf?gbar), E:E/A-Fehler beim Speichern des Quell-Zwischenspeichers, E:Die
Paketliste oder die Statusdatei konnte nicht eingelesen oder ge?ffnet werden.


Remark:
Beim Installieren von zusätzlichen App (Software) Paketen ist dieser Fehler aufgetreten.

Version:
4.0-1 errata142 (Walle)
Comment 2 Florian Best univentionstaff 2015-05-13 12:17:11 CEST
The following error message is shown now:

"""
Could not initialize package manager. There is no free hard disk space left on the device. 

Further information regarding the error: 
Error: IO Error saving source cache.
Error: The package lists or status file could not be parsed or opened.
"""

Should I strip the further information (patch=one additional line)? IMHO they are OK.

YAML: 2015-05-12-univention-lib.yaml
Package: univention-lib
Version: 4.0.5-16.300.201505131140
Comment 3 Alexander Kläser univentionstaff 2015-05-26 16:55:34 CEST
Created attachment 6922 [details]
Screenshot error message

I would like to point out the following points:
* IMHO there are too many empty lines before "Further information...".
* The last two lines are in German, although my session is in English.
* Little rewording → "Further information regarding this error:"
* "Could not initialize the package manager" → OK, it helps us as developers, but it does not really help the user (what is a "package manger")...

Otherwise, I think this is very nice.

The recipe for reproducing this error is as follows...

  dd if=/dev/zero of=floppy.img bs=512 count=100000
  losetup /dev/loop0 floppy.img
  mkfs -t ext2 /dev/loop0
  mount -t ext2 /dev/loop0 /var/cache/apt/
  apt-get update

This setup yiels a 50MB partition for /var/cache/apt ... maybe a bit more would be even better, nevertheless, after trying to install some applications, calling "apt-get clean" as well as "pkill -f http" (→ apt-get might stall during download) here and there, I could provoke this error message.
Comment 4 Florian Best univentionstaff 2015-05-27 10:10:00 CEST
(In reply to Alexander Kläser from comment #3)
> * IMHO there are too many empty lines before "Further information...".
Yes, one line has been removed.
> * The last two lines are in German, although my session is in English.
Should be fixed again with latest UMC-Server packages.
> * Little rewording → "Further information regarding this error:"
done
> * "Could not initialize the package manager" → OK, it helps us as
> developers, but it does not really help the user (what is a "package
> manger")...
I leave it this way as there are also messages which don't have additional text. It is also an indicator for us where the error comes from.
Comment 5 Alexander Kläser univentionstaff 2015-05-27 13:30:52 CEST
(In reply to Florian Best from comment #4)
> (In reply to Alexander Kläser from comment #3)
> > * IMHO there are too many empty lines before "Further information...".
> Yes, one line has been removed.

Looks good now.

> > * The last two lines are in German, although my session is in English.
> Should be fixed again with latest UMC-Server packages.

Hm... not really. I still experience this problem (on 2 different VMs). We observed that we have different locales on our VMs, Florian (as you did not observe this problem):

locale/default: de_DE.UTF-8:UTF-8
locale: de_DE.UTF-8:UTF-8 en_US.UTF-8:UTF-8

Curiously, the /proc/XYZ/environ file contains: LANG=de_DE.UTF-8

→ but this is a different bug.

> > * Little rewording → "Further information regarding this error:"
> done
> > * "Could not initialize the package manager" → OK, it helps us as
> > developers, but it does not really help the user (what is a "package
> > manger")...
> I leave it this way as there are also messages which don't have additional
> text. It is also an indicator for us where the error comes from.

OK.

→ VERIFIED
Comment 6 Janek Walkenhorst univentionstaff 2015-05-28 16:46:52 CEST
<http://errata.univention.de/ucs/4.0/196.html>
Comment 7 Janek Walkenhorst univentionstaff 2015-05-28 16:49:58 CEST
<http://errata.univention.de/ucs/4.0/203.html>