[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 <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvidner@novell.com Component|YaST2 |YaST2 Found By|--- |Development Version|Final |Alpha 0 Product|openSUSE 11.1 |openSUSE 11.2 Target Milestone|--- |Milestone 1 --- Comment #1 from Klaus Kämpf <kkaempf@novell.com> 2009-05-12 05:19:51 MDT --- changed product to 11.2 since this happened with yast2-core-2.18.10 -- 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#c2 --- Comment #2 from Klaus Kämpf <kkaempf@novell.com> 2009-05-12 05:21:50 MDT --- 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. -- 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#c3 --- Comment #3 from Klaus Kämpf <kkaempf@novell.com> 2009-05-12 05:23:18 MDT --- Questions - how can we improve the log message to pinpoint the real problem ? (does dbus provide a cause when the service cannot be registered ?) - how can we pass a better error code to the requesting client ? -- 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#c4 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com --- Comment #4 from Martin Vidner <mvidner@novell.com> 2009-05-12 05:49:53 MDT --- (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. 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 <lslezak@novell.com> 2009-05-12 06:05:42 MDT --- To comment #3: 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 ")) 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. To comment #4: Yes, DBus reloading helps. I also found the problem during development, but I do not know why it fails only _sometimes_ and why. -- 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#c6 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | --- Comment #6 from Martin Vidner <mvidner@novell.com> 2009-05-12 06:21:15 MDT ---
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 <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mvidner@novell.com --- Comment #7 from Arvin Schnell <aschnell@novell.com> 2009-05-12 06:48:50 MDT --- So where is the bug? YaST or DBus. I as current yast-maintainers handler don't know. -- 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#c8 --- Comment #8 from Klaus Kämpf <kkaempf@novell.com> 2009-05-12 07:13:03 MDT --- (In reply to comment #4)
(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 <kkaempf@novell.com> 2009-05-12 07:15:39 MDT --- (In reply to comment #6)
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 <kkaempf@novell.com> 2009-05-12 07:17:37 MDT --- (In reply to comment #7)
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 <kkaempf@novell.com> 2009-05-12 07:20:03 MDT --- (In reply to comment #4)
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 <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |503074 -- 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#c12 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|503074 | AssignedTo|yast2-maintainers@suse.de |mvidner@novell.com --- Comment #12 from Arvin Schnell <aschnell@novell.com> 2009-05-12 07:47:16 MDT --- Filed bug #503074 against dbus. This issue now deals with YaST. -- 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 <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|mvidner@novell.com | -- 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#c13 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO Info Provider| |kkaempf@novell.com --- Comment #13 from Martin Vidner <mvidner@novell.com> 2009-09-02 09:09:59 MDT --- (In reply to comment #11)
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 <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|y2dbus error for WebYast |[yast2-dbus-server] improve |modules |the error msg when | |registering the service | |name fails | |(org.freedesktop.DBus.Error | |.Spawn.ChildExited) --- Comment #14 from Martin Vidner <mvidner@novell.com> 2009-09-02 09:44:54 MDT --- (In reply to comment #10)
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 <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|kkaempf@novell.com | Resolution| |FIXED --- Comment #15 from Klaus Kämpf <kkaempf@novell.com> 2009-09-21 05:29:35 MDT --- Closing for now. Will reopen if happens again. (Have updated to openSUSE 112 M7 meanwhile) -- 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.
participants (1)
-
bugzilla_noreply@novell.com