Ticket #1720 (closed defect: fixed)
logging cleanup failure prevents session start
| Reported by: | quozl | Owned by: | tomeu |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | sugar | Version: | Git as of bugdate |
| Severity: | Minor | Keywords: | r+ |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Unconfirmed |
Description
Logging cleanup creates a directory and moves previous logs into it. This requires available disk space.
When disk space is insufficient, or disk is read-only, or some other I/O error occurs, the sugar-session terminates. On systems that only exist to run sugar-session, the X server is repeatedly restarted. Here is an example from Sugar 0.84 with a full disk:
Traceback (most recent call last):
File "/usr/bin/sugar-session", line 185, in <module>
main()
File "/usr/bin/sugar-session", line 141, in main
cleanup_logs()
File "/usr/bin/sugar-session", line 80, in cleanup_logs
os.mkdir(backup_dir)
OSError: [Errno 28] No queda espacio en el dispositivo: '/home/olpc/.sugar/default/logs/1265854382'
(This example from dev.laptop.org #9623)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

