Bug 748118 - scriptlet error on CUI
Summary: scriptlet error on CUI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zeitgeist
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deji Akingunola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-22 07:56 UTC by Mamoru TASAKA
Modified: 2011-11-10 17:39 UTC (History)
3 users (show)

Fixed In Version: zeitgeist-0.8.2-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 17:39:01 UTC
Type: ---


Attachments (Terms of Use)

Description Mamoru TASAKA 2011-10-22 07:56:38 UTC
Description of problem:
When using multi-user.target (in the old term, "runlevel 3"), the scriptlets of zeitgeist on upgrade fails like:

Scriptlet output:
   1 [DEBUG - singleton] Checking for another running instance...
   2 Traceback (most recent call last):
   3   File "/usr/bin/zeitgeist-daemon", line 198, in <module>
   4     main()
   5   File "/usr/bin/zeitgeist-daemon", line 176, in main
   6     mainloop, interface = setup_interface()
   7   File "/usr/bin/zeitgeist-daemon", line 103, in setup_interface
   8     return mainloop, RemoteInterface(mainloop = mainloop)
   9   File "/usr/share/zeitgeist/_zeitgeist/engine/remote.py", line 69, in __init__
  10     SingletonApplication.__init__(self)
  11   File "/usr/share/zeitgeist/_zeitgeist/singleton.py", line 52, in __init__
  12     if dbus.SessionBus().name_has_owner(ZeitgeistDBusInterface.BUS_NAME):
  13   File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 219, in __new__
  14     mainloop=mainloop)
  15   File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 108, in __new__
  16     bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  17   File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 125, in __new__
  18     bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
  19 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
  20 warning: %post(zeitgeist-0.8.2-1.fc16.noarch) scriptlet failed, exit status 1

Version-Release number of selected component (if applicable):
zeitgeist-0.8.2-1.fc16.noarch

How reproducible:
100%

Steps to Reproduce:
1. run system with multiuser.target (i.e. Not zeitgeist daemon or X are running)
2. yum upgrade zeitgeist
  
Actual results:
See above

Expected results:
No transaction error

Comment 1 Mamoru TASAKA 2011-10-22 08:05:52 UTC
By the way, while I don't know well about zeitgeist well, does "zeitgeist-daemon --replace" *on root* really work when zeitgeist-daemon runs as *non-root user*, and even when multiple uses are logged in?

Comment 2 Mamoru TASAKA 2011-10-22 09:06:23 UTC
Well, actually I tried "zeitgeist-daemon --replace", and now ps auwwx shows:

$ ps auwwx | grep [z]eitgeist
tasaka1   3615  0.0  1.4  53840 11140 ?        Sl   16:23   0:00 zeitgeist-datahub
tasaka1   3628  0.0  0.8  23612  6512 ?        S    16:23   0:00 /usr/bin/python /usr/bin/zeitgeist-daemon
root     12307  0.3  1.5  23280 11728 pts/1    S+   18:02   0:00 /usr/bin/python /usr//bin/zeitgeist-daemon --replace
root     12325  0.0  0.4  43260  3628 pts/1    Sl+  18:02   0:00 zeitgeist-datahub

So another process of zeitgeist is created and now running, which I think is not the expected behavior.

Comment 3 Mamoru TASAKA 2011-10-22 09:19:53 UTC
Also, when logged in GNOME session and I try "zeitgeist-daemon --replace" on uxterm, it never "returns" - i.e. it seems that this command needs running as background process.

Anyway I don't think adding this scriptlets is a good idea because zeitgeist daemon is running not as root but as normal user.

Comment 4 Deji Akingunola 2011-10-22 15:28:03 UTC
Thanks for bringing up this issue, I have reverted post-install operation in zeitgeist-0.8.2-2.

Comment 5 Fedora Update System 2011-10-22 15:30:54 UTC
zeitgeist-0.8.2-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-14696

Comment 6 Fedora Update System 2011-10-22 17:07:03 UTC
Package zeitgeist-0.8.2-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zeitgeist-0.8.2-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14696
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-11-10 17:39:01 UTC
zeitgeist-0.8.2-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.