[Bug 502719] New: y2dbus error for WebYast modules
http://bugzilla.novell.com/show_bug.cgi?id=502719 Summary: y2dbus error for WebYast modules Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bgeuken@novell.com QAContact: jsrain@novell.com Found By: --- Created an attachment (id=291319) --> (http://bugzilla.novell.com/attachment.cgi?id=291319) output of /var/log/YaST2/y2log Selecting a module on WebYast (rest-service) fails with following output: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1 I attached related output of y2log. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c1
Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c2
--- Comment #2 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c3
--- Comment #3 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=502719
User mvidner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c4
Martin Vidner
y2log showed that the service was started but failed to register "org.opensuse.yast.SCR" with the D-Bus daemon. An 'rcdbus stop && rcdbus start' helped to circumvent the problem.
Let me guess, it could be a problem with DBus not reloading its config (reportedly a known bug) and thus not knowing that the process *is* allowed to own the service. In such a case, I use dbus-send --print-reply --system --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig (BTW that should go into "rcdbus reload" which currently does nothing) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User lslezak@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c5
--- Comment #5 from Ladislav Slezak
http://bugzilla.novell.com/show_bug.cgi?id=502719
User mvidner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c6
Martin Vidner
2009-05-11 17:22:03 <3> d169(2273) [y2dbus] DBusConn.cc(connect):60 Cannot register service org.opensuse.yast.SCR: Rejected send message, 1 matched rules; type="method_call", sender=":1.39" (uid=0 pid=2271 comm="ruby ./check-setup.rb ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination="org.opensuse.yast.SCR" (uid=0 pid=2273 comm="/usr/lib/YaST2/bin/SCR_dbus_server "))
Ugh, the error message does not make sense to me. It looks like a *consequence* of not being able to register the name, not the *cause*:
is reported by y2error("Cannot register service %s: %s", service.c_str(), dbus_error.message). So the Dbus error itself should be improved to contain more details. Yast could just log a suggestion what to do (Dbus reload) to y2log.
I guess it's not possible to pass any error code back when the connection fails, the reply cannot be sent without a DBus connection.
Note that we do have a connection, we just could not register the service name. In dbus sources, bus/activation.c, handle_activation_exit_error, there does not seem to be a way to pass an error message. If we really really wanted that, we could have the service send the error via a signal on the interface o.o.y.FamousLastWords OTOH, I hope such errors only occur with improper installation during development, so the customers, having a proper RPM, will never see them[TM]. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User aschnell@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c7
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c8
--- Comment #8 from Klaus Kämpf
(In reply to comment #2)
y2log showed that the service was started but failed to register "org.opensuse.yast.SCR" with the D-Bus daemon. An 'rcdbus stop && rcdbus start' helped to circumvent the problem.
Let me guess, it could be a problem with DBus not reloading its config (reportedly a known bug) and thus not knowing that the process *is* allowed to own the service.
Maybe. But doesn't the process get an EACCESS error (or similar) back then and can report the fact ? Just exiting doesn't seem right.
In such a case, I use
dbus-send --print-reply --system --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
(BTW that should go into "rcdbus reload" which currently does nothing)
Right, that seems to be the culprit. So for now, yast2-core needs above dbus-send in its %post. Once "rcdbus reload" is fixed, yast2-core must call 'rcdbus reload" in its %post. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c9
--- Comment #9 from Klaus Kämpf
OTOH, I hope such errors only occur with improper installation during development, so the customers, having a proper RPM, will never see them[TM].
Absolutely. However, webyast currently has a 'track record' of improper installations (:-() and we're looking on how to make webyast's install checks better. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c10
--- Comment #10 from Klaus Kämpf
So where is the bug? YaST or DBus. I as current yast-maintainers handler don't know.
Both IMHO. yast2-core needs to - improve the error message in y2log - call "dbus-send ..." in its %post dbus needs to - make "rcdbus reload" work properly. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c11
--- Comment #11 from Klaus Kämpf
In such a case, I use
dbus-send --print-reply --system --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
This doesn't work on my system. --print-reply needs an argument. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=502719
User aschnell@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c12
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=502719
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=502719
User mvidner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c13
Martin Vidner
dbus-send --print-reply [...]
This doesn't work on my system. --print-reply needs an argument.
It works on oS 11.1 and 11.2 M6, And SLE10 SP1. What do you have (OS, rpm -q dbus-1) and what is the error? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User mvidner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c14
Martin Vidner
yast2-core needs to - call "dbus-send ..." in its %post
Done in yast2-dbus-server-2.18.1 (in YaST:Head).
- improve the error message in y2log
TODO -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502719
User kkaempf@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502719#c15
Klaus Kämpf
participants (1)
-
bugzilla_noreply@novell.com