[Sugar-devel] Error on running sugar-activity

James Cameron quozl at laptop.org
Wed Jul 31 01:38:46 EDT 2019


The datastore process failed.  Look in datastore.log for more
information.

Datastore is started by Sugar through D-Bus API, and would normally
continue operating until Sugar is stopped.  If it fails before an
activity is started, then the activity call through the D-Bus API will
restart the datastore.  The traceback you pasted shows this has
happened, and then the datastore failed again.

Check the D-Bus service file created by the datastore source.  It may
refer to the wrong path for the binary.

On Wed, Jul 31, 2019 at 10:21:48AM +0530, Swarup N wrote:
> Hi,
> I setup Sugar 0.114 via the Native method on a new laptop. On running
> sugar-activity, I get the following message.
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/sugar-activity", line 5, in <module>
>     activityinstance.main()
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/
> activityinstance.py", line 230, in main
>     instance = create_activity_instance(activity_constructor, activity_handle)
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/
> activityinstance.py", line 59, in create_activity_instance
>     activity = constructor(handle)
>   File "/home/buba/sugar-stuff/sugar-activities/convert/activity.py", line 41,
> in __init__
>     activity.Activity.__init__(self, handle, True)
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 432, in __init__
>     self._jobject = self._initialize_journal_object()
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/activity/activity.py",
> line 520, in _initialize_journal_object
>     datastore.write(jobject)
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/datastore/datastore.py",
> line 394, in write
>     transfer_ownership)
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/datastore/datastore.py",
> line 344, in _create_ds_entry
>     object_id = _get_data_store().create(dbus.Dictionary(properties), filename,
>   File "/usr/local/lib/python2.7/dist-packages/sugar3/datastore/datastore.py",
> line 51, in _get_data_store
>     DS_DBUS_PATH),
>   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
>     follow_name_owner_changes=follow_name_owner_changes)
>   File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in
> __init__
>     self._named_service = conn.activate_name_owner(bus_name)
>   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in
> activate_name_owner
>     self.start_service_by_name(bus_name)
>   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in
> start_service_by_name
>     'su', (bus_name, flags)))
>   File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in
> call_blocking
>     message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited:
> Process org.laptop.sugar.DataStore exited with status 1
> 1564548420.435550 WARNING root: DSObject was deleted without cleaning up first.
> Call DSObject.destroy() before disposing it.
> 
> I would be grateful for any suggestions on fixing this.
> 
> Thanks.

-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list