id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	distribution	status_field
1876	Failure to cleanup temporary files after filesystem full errors	bernie	tomeu	"Using Browse, a user downloaded the GCompris bundle to the Journal, while the filesystem was almost full.

After a while, the user got the warning dialog asking to free some space in the journal. However, the dialog was unresponsive. After some time, the system came back to life, but there was even less free space.

Looking at the process table, we found that sugar-session had spown a long-running zip process to unpack the bundle.

We found that the directory ~/.sugar/default/data contained a few temporary files left behind by the bundle installation process:

{{{
total 381258
drwxr-xr-x  2 olpc olpc         0 Mar 29 20:27 .
drwxr-x--- 17 olpc olpc         0 Mar 29 19:42 ..
-rw----r--  2 olpc olpc  85923864 Mar 29 20:14 242d0a4f-cf5c-40eb-9143-ed8c4fd4a8ef.xo
-rw----r--  4 olpc olpc  50069958 Mar 29 18:53 67a30a08-bbd2-4bb2-8aa6-362472f3e7c5_1.xo
-rw----r--  2 olpc olpc 102171151 Mar 29 19:20 d14d6c40-31b0-4962-bd74-d51e9dd33a60.xo
-rw----r--  2 olpc olpc 102171151 Mar 29 19:20 d14d6c40-31b0-4962-bd74-d51e9dd33a60_1.xo
-rw----r--  4 olpc olpc  50069958 Mar 29 18:53 f68b31c0-2c26-454a-a70b-bd474cefc320.xo
}}}


The shell.log contained plenty of errors:

{{{
1269894065.424218 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa08b58c>> ignored
1269894065.456154 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0f49ec>> ignored
1269894190.732246 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0x9f4838c>> ignored
1269894190.764178 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0x9f4838c>> ignored
1269894208.020501 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0f4b0c>> ignored
1269894208.052876 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0e912c>> ignored
1269894233.563614 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0a9acc>> ignored
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/palettes.py"", line 139, in __erase_activate_cb
    bundle = misc.get_bundle(self._metadata)
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 102, in get_bundle
    return ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
zipfile.BadZipfile: File is not a zip file
1269894238.493667 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0fa4ec>> ignored
Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa08bd2c>> ignored
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/palettes.py"", line 139, in __erase_activate_cb
    bundle = misc.get_bundle(self._metadata)
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 102, in get_bundle
    return ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
zipfile.BadZipfile: File is not a zip file
Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0a9dac>> ignored
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/palettes.py"", line 139, in __erase_activate_cb
    bundle = misc.get_bundle(self._metadata)
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 102, in get_bundle
    return ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
zipfile.BadZipfile: File is not a zip file
1269894351.048443 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0f114c>> ignored
1269894351.119622 WARNING root: Could not read bundle:
Traceback (most recent call last):
  File ""/usr/lib/python2.6/site-packages/jarabe/journal/misc.py"", line 70, in get_icon_name
    bundle = ActivityBundle(file_path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/activitybundle.py"", line 48, in __init__
    Bundle.__init__(self, path)
  File ""/usr/lib/python2.6/site-packages/sugar/bundle/bundle.py"", line 68, in __init__
    self._zip_file = zipfile.ZipFile(self._path)
  File ""/usr/lib/python2.6/zipfile.py"", line 698, in __init__
    self._GetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 718, in _GetContents
    self._RealGetContents()
  File ""/usr/lib/python2.6/zipfile.py"", line 730, in _RealGetContents
    raise BadZipfile, ""File is not a zip file""
BadZipfile: File is not a zip file

Exception AttributeError: ""'ActivityBundle' object has no attribute '_zip_file'"" in <bound method ActivityBundle.__del__ of <sugar.bundle.activitybundle.ActivityBundle object at 0xa0f120c>> ignored
}}}
"	defect	reopened	Unspecified by Maintainer	Unspecified by Release Team	sugar-toolkit	0.84.x	Critical		sugar-0.84 r? need-info	sayamindu tomeu mtd aa	Unspecified	Unconfirmed
