#11372 NORM Not Tri: Corruption in Journal entry

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 1 08:44:13 EDT 2011


#11372: Corruption in Journal entry
-----------------------------+----------------------------------------------
 Reporter:  godiard          |                 Owner:  erikos       
     Type:  defect           |                Status:  new          
 Priority:  normal           |             Milestone:  Not Triaged  
Component:  sugar-datastore  |               Version:  not specified
 Keywords:                   |           Next_action:  never set    
 Verified:  0                |   Deployment_affected:               
Blockedby:                   |              Blocking:               
-----------------------------+----------------------------------------------
 After a crash, there are entries in the Journal, without proper metadata,
 the user can't go to the Detail View, and can't show the palette, then
 can't copy or remove the entries.

 Looking at the files in the datastore directory, the files in the metadata
 directory related to the entry are empty. Attached is the content of a
 datastore to reproduce it.

 shell.log show the following errors:

 On mouse over the icon:

 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/sugar/graphics/palettewindow.py",
 line 939, in __motion_notify_event_cb
     self.notify_mouse_enter()
   File "/usr/lib/python2.7/site-packages/sugar/graphics/palettewindow.py",
 line 629, in notify_mouse_enter
     self._ensure_palette_exists()
   File "/usr/lib/python2.7/site-packages/sugar/graphics/palettewindow.py",
 line 624, in _ensure_palette_exists
     palette = self.parent.create_palette()
   File "/usr/lib/python2.7/site-packages/jarabe/journal/listview.py", line
 615, in create_palette
     metadata = tree_model.get_metadata(self.props.palette_invoker.path)
   File "/usr/lib/python2.7/site-packages/jarabe/journal/listmodel.py",
 line 103, in get_metadata
     return model.get(self[path][ListModel.COLUMN_UID])
   File "/usr/lib/python2.7/site-packages/jarabe/journal/model.py", line
 551, in get
     metadata = _get_datastore().get_properties(object_id,
 byte_arrays=True)
   File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in
 __call__
     **keywords)
   File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in
 call_blocking
     message, timeout)
 dbus.exceptions.DBusException: org.freedesktop.DBus.Python.IOError:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/dbus/service.py", line 702, in
 _message_cb
     retval = candidate_method(self, *args, **keywords)
   File "/usr/lib/python2.7/site-packages/carquinyol/datastore.py", line
 355, in get_properties
     metadata = self._metadata_store.retrieve(uid)
   File "/usr/lib/python2.7/site-packages/carquinyol/metadatastore.py",
 line 41, in retrieve
     return metadatareader.retrieve(metadata_path, properties)
 IOError: Couldn't open metadata directory
 /home/olpc/.sugar/default/datastore///metadata
 }}}

 Trying to show the detail view:

 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-
 packages/jarabe/journal/journalactivity.py", line 206, in
 __detail_clicked_cb
     self._show_secondary_view(object_id)
   File "/usr/lib/python2.7/site-
 packages/jarabe/journal/journalactivity.py", line 228, in
 _show_secondary_view
     metadata = model.get(object_id)
   File "/usr/lib/python2.7/site-packages/jarabe/journal/model.py", line
 551, in get
     metadata = _get_datastore().get_properties(object_id,
 byte_arrays=True)
   File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in
 __call__
     **keywords)
   File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in
 call_blocking
     message, timeout)
 dbus.exceptions.DBusException: org.freedesktop.DBus.Python.IOError:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/dbus/service.py", line 702, in
 _message_cb
     retval = candidate_method(self, *args, **keywords)
   File "/usr/lib/python2.7/site-packages/carquinyol/datastore.py", line
 355, in get_properties
     metadata = self._metadata_store.retrieve(uid)
   File "/usr/lib/python2.7/site-packages/carquinyol/metadatastore.py",
 line 41, in retrieve
     return metadatareader.retrieve(metadata_path, properties)
 IOError: Couldn't open metadata directory
 /home/olpc/.sugar/default/datastore///metadata
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/11372>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list