Opened 11 years ago

Closed 10 years ago

Last modified 7 years ago

#573 closed enhancement (fixed)

copy-to-journal dbus error

Reported by: skierpage Owned by: wadeb
Priority: Low Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Unspecified Keywords: r+
Cc: Distribution/OS: Unspecified
Bug Status: Resolved

Description

I'm using Rawhide-XO 20090316 which contains "Sugar 0.84.0" (e.g. sugar-datastore-0.84.0-1.fc11.i586).

I had a .xol file on a USB flash drive that the Journal had not mounted. To copy it into the Journal, I tried

copy-to-journal -m application/vnd.olpc-content /mnt/temp_usb/Little-Brother-1.xol

but that resulted in

Error: org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: No protocol specified
Autolaunch error: X11 initialization failed.

WARNING: root:DSObject was deleted without cleaning up first.  Call DSObject.destroy() before disposing it.

Attachments (1)

0001-Better-error-messages-in-copy-from-journal-and-copy.patch (6.7 KB) - added by wadeb 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 years ago by skierpage

D'oh, this happened when I ran it as root, I retried as the Sugar user "liveuser" and it completed (but then Sugar crashed and I returned to the login screen). So maybe the bug is just that error is confusing.

comment:2 Changed 11 years ago by homunq

  • Bug Status changed from Unconfimed to Needinfo

should copy-to-journal ensure it's not running as root?

comment:3 Changed 11 years ago by tomeu

  • Keywords sugar-love added

Yeah, I would say that the message error could be improved to say that the command should be run in the same environment as Sugar is running, which would be in a terminal activity without having sudoed.

comment:4 Changed 10 years ago by wadeb

  • Bug Status changed from Needinfo to Resolved
  • Distribution/OS changed from Fedora to Unspecified
  • Keywords r? added; sugar-love removed
  • Milestone changed from 0.84 to 0.88
  • Owner changed from tomeu to wadeb
  • Priority changed from Unspecified by Maintainer to Low
  • Status changed from new to accepted
  • Type changed from defect to enhancement
  • Version changed from 0.84.x to Git as of bugdate

comment:5 Changed 10 years ago by tomeu

I like the idea but I would try to avoid moving all that code into a single try..except block.

comment:6 Changed 10 years ago by alsroot

  • Keywords r+ added; r? removed
  • Resolution set to fixed
  • Status changed from accepted to closed

comment:7 Changed 7 years ago by dnarvaez

  • Component changed from sugar-datastore to Sugar

comment:8 Changed 7 years ago by dnarvaez

  • Milestone 0.88 deleted

Milestone 0.88 deleted

Note: See TracTickets for help on using tickets.