Bug 29204 - Stderr bei Fehlschlag der ausgeführten Kommandos loggen
Stderr bei Fehlschlag der ausgeführten Kommandos loggen
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: Image management
unspecified
Other Linux
: P5 normal
: UCC 1.0
Assigned To: Moritz Muehlenhoff
Felix Botner
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-12 13:43 CET by Felix Botner
Modified: 2013-03-26 09:14 CET (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-11-12 13:43:10 CET
Ich hatte zu wenig Platz aus meinem UCS Rechner.

-> ucc-image -c ...

Installing package kubuntu-full lirc-                             done
Re-creating initrd                                                done
Create ISO image                                                  
ERROR: The command "grub-mkrescue -o /opt/ucc-1.0-desktop-image.img.iso /tmp/tmpI1aO0s/cdrom" failed with the error code 32 (abort)

Im log sehe ich nur

Traceback (most recent call last):
  File "/usr/sbin/ucc-image", line 432, in <module>
    _run_cmd(cmd_block, logfile_fd)
  File "/usr/sbin/ucc-image", line 56, in _run_cmd
    raise RuntimeError(msg)
RuntimeError: The command "grub-mkrescue -o /opt/ucc-1.0-desktop-image.img.iso /tmp/tmp6JnQWL/cdrom" failed with the error code 32


Wenn ich das Kommando von Hand ausführe, bekomme ich eine Meldung, dass zu wenige Platz vorhanden ist. Diese Meldung (STDERR) sollte im Log File zu finden sein (_run_cmd in /usr/sbin/ucc-image).
Comment 1 Moritz Muehlenhoff univentionstaff 2012-11-16 10:23:18 CET
Das sollten wir zu 1.0 umsetzen, erleichtert die Fehlersuche beim Erstellen eines Images.
Comment 2 Moritz Muehlenhoff univentionstaff 2012-12-18 16:52:58 CET
Die eigentliche stderr-Ausgabe wurde schon geloggt, was hier noch fehlte war die Fehlermeldung welches Programm fehlgeschlagen ist.
Comment 3 Felix Botner univentionstaff 2013-01-04 09:59:24 CET
Die stderr vom Kommando wird bei dem grub-mkrescue anscheinend noch nicht angezeigt?!
Bei dem umount später schon (dafür werde ich einen separaten Bug anlegen).
Außerdem scheint er weiter zu machen (...Generating spec file...) auch wenn etwas schief gelaufen ist?

Das grub-mkrescue ist fehlgeschlagen, weil die Platte voll war.

-> ucc-image  -c /usr/share/doc/ucc-image-toolkit/example/ucc-desktop.cfg

Re-creating initrd                                                done
Create ISO image                                                  
ERROR: The command "grub-mkrescue -o /tmp/tmpvozPrr/ucc-1.0-desktop-image.img.iso /tmp/tmpvozPrr/cdrom" failed with the error code 32 (abort)

umount: /tmp/tmpvozPrr/bootstrap: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
The command "/bin/umount /tmp/tmpvozPrr/bootstrap" failed with the error code 1Generating spec file
Comment 4 Moritz Muehlenhoff univentionstaff 2013-01-08 15:07:13 CET
(In reply to comment #3)
> Die stderr vom Kommando wird bei dem grub-mkrescue anscheinend noch nicht
> angezeigt?!
> Bei dem umount später schon (dafür werde ich einen separaten Bug anlegen).
> Außerdem scheint er weiter zu machen (...Generating spec file...) auch wenn
> etwas schief gelaufen ist?

Trat bei einem der run_cmd-Befehle eine Exception auf, wird das Generieren der Spec-Datei jetzt übergangen.
 
Bzgl. des anderen Problems bitte wie besprochen einen separaten Bug anlegen, wenn das wieder auftritt und dann Logdatei und Befehlaausgabe anhängen.
Comment 5 Felix Botner univentionstaff 2013-01-14 13:21:12 CET
(In reply to comment #4)
> (In reply to comment #3)
> > Die stderr vom Kommando wird bei dem grub-mkrescue anscheinend noch nicht
> > angezeigt?!
> > Bei dem umount später schon (dafür werde ich einen separaten Bug anlegen).
> > Außerdem scheint er weiter zu machen (...Generating spec file...) auch wenn
> > etwas schief gelaufen ist?
> 
> Trat bei einem der run_cmd-Befehle eine Exception auf, wird das Generieren der
> Spec-Datei jetzt übergangen.
> 
> Bzgl. des anderen Problems bitte wie besprochen einen separaten Bug anlegen,
> wenn das wieder auftritt und dann Logdatei und Befehlaausgabe anhängen.

OK
Comment 6 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:23 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

If this error occurs again, please use "Clone This Bug".