Hide Forgot
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
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?
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.
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.
Thanks for bringing up this issue, I have reverted post-install operation in zeitgeist-0.8.2-2.
zeitgeist-0.8.2-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/FEDORA-2011-14696
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).
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.