[Bug 466275] New: Apparent infinite loop for auto update....
https://bugzilla.novell.com/show_bug.cgi?id=466275 Summary: Apparent infinite loop for auto update.... Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pmorreale@novell.com QAContact: jsrain@novell.com Found By: --- My machine went into an apparent infinite loop attempting to update (I think) an apparmor component this evening. I say this only because the Software update applet on the taskbar continuously flashed through its appropriate icons. I finally killed packagekitd manually. I also found that /var/log/pk_backend_zypp was growing (apparently) unbounded. I am attaching that log to this bug report. The log seems to indicate some apparmor update.... Note that when I installed my T60 laptop with 11.1, i specifically choose to NOT install apparmor. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c1 --- Comment #1 from Peter Morreale <pmorreale@novell.com> 2009-01-14 20:04:11 MST --- Created an attachment (id=265177) --> (https://bugzilla.novell.com/attachment.cgi?id=265177) copy of /var/log/pk_backend_zypp Latest copy of /var/log/pk_backend_zypp. Note that something (logrotate?) created pk_backend_zypp-1 as well, however its 22MiB. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c2 --- Comment #2 from Peter Morreale <pmorreale@novell.com> 2009-01-14 20:08:40 MST --- List of my repositories... hermosa:/var/log # zypper lr -u # | Alias | Name | Enabled | Refresh | URI --+--------+---------------------------+---------+---------+------------------------------------------------------------- 1 | repo | Main Repository (NON-OSS) | Yes | Yes | http://download.opensuse.org/distribution/11.1/repo/non-oss/ 2 | repo_1 | Main Repository (OSS) | Yes | Yes | http://download.opensuse.org/distribution/11.1/repo/oss/ 3 | repo_2 | Main Update Repository | Yes | Yes | http://download.opensuse.org/update/11.1/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |ma@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |visnov@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User dmacvicar@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c3 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmacvicar@novell.com --- Comment #3 from Duncan Mac-Vicar <dmacvicar@novell.com> 2009-01-19 07:47:44 MST --- I don't see anything in the logs, at 20:02 the packagekit backend was shutdown cleanly. It may be something related to the softlocks, as the logs show apparmor is in keep state. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User dmacvicar@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c4 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #4 from Duncan Mac-Vicar <dmacvicar@novell.com> 2009-01-20 10:13:49 MST --- The log does not show anything. Either attach the right logs or meanwhile closing as WORKSFORME -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c5 --- Comment #5 from Michael Andres <ma@novell.com> 2009-01-20 10:29:30 MST --- 19:57 and 20:02 we just see libzypp being initialized (target only), then shutdown again. Looks like there is no request to initialize the repos or select and solve some packages. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c6 --- Comment #6 from Peter Morreale <pmorreale@novell.com> 2009-01-21 09:14:13 MST --- (In reply to comment #4)
The log does not show anything. Either attach the right logs or meanwhile closing as WORKSFORME
Unfortunately I do not have the precise log file anymore, it was 22MBs at the time I submitted the bug report. Since then it has been automatically purged. Is it appropriate to attach 10MB logs? This is what I have now. However this log appears to be merely a startup and check, rather than an attempt at an install of an update. I get 205 lines of log entries every 5 minutes. This is with "Software Updates" configured to: "Never, Nothing, Weekly". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c7 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #7 from Michael Andres <ma@novell.com> 2009-01-22 02:00:06 MST --- @Peter: I don't think we need this 10MB log. It looks like something fires up the backend each 5 minutes without need and request. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User tgoettlicher@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c8 Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |sreeves@novell.com, | |tgoettlicher@novell.com Info Provider| |pmorreale@novell.com --- Comment #8 from Thomas Göttlicher <tgoettlicher@novell.com> 2009-01-22 02:11:41 MST --- Which updater applet do you use? kupdateapplet, KPackageKit or gnome-packagekit (gpk-update-viewer)? Could you please attach a screenshot of the config dialog? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c9 --- Comment #9 from Peter Morreale <pmorreale@novell.com> 2009-01-23 08:31:23 MST --- (In reply to comment #8)
Which updater applet do you use? kupdateapplet, KPackageKit or gnome-packagekit (gpk-update-viewer)? Could you please attach a screenshot of the config dialo
Gnome. Not sure which one. Shot is coming however be aware that I have changed settings since then. Not precisely sure what they were back then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c10 --- Comment #10 from Peter Morreale <pmorreale@novell.com> 2009-01-23 08:33:49 MST --- Created an attachment (id=267293) --> (https://bugzilla.novell.com/attachment.cgi?id=267293) screenshot of the updater.. This should be the default updater for gnome AFAICT. Note settings have changed since I first reported this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User tgoettlicher@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c11 Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|pmorreale@novell.com |sreeves@novell.com --- Comment #11 from Thomas Göttlicher <tgoettlicher@novell.com> 2009-01-23 08:58:58 MST --- Scott, do you know a bug in the gnome updater that triggers updates every 5 minutes? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User sreeves@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c12 Scott Reeves <sreeves@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|sreeves@novell.com |pmorreale@novell.com --- Comment #12 from Scott Reeves <sreeves@novell.com> 2009-01-27 14:58:51 MST --- hmmm, would you mind doing the following in a terminal 1. kill all gpk-* processes - "sudo killall gpk-update-icon" 2. kill the daemon - "sudo killall packagekitd" 3. clear the logs - "sudo rm -rf /var/log/pk_backend*" 4. run updater verbose - "gpk-update-icon -v > gpk_updater.log" 5. just let it run quietly (ie don't install things or ...) for ~ hour and send the gpk_updater.log and the new pk_backend_zypp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c13 --- Comment #13 from Peter Morreale <pmorreale@novell.com> 2009-01-27 15:53:10 MST --- (In reply to comment #12)
hmmm, would you mind doing the following in a terminal
1. kill all gpk-* processes - "sudo killall gpk-update-icon" 2. kill the daemon - "sudo killall packagekitd" 3. clear the logs - "sudo rm -rf /var/log/pk_backend*" 4. run updater verbose - "gpk-update-icon -v > gpk_updater.log"
5. just let it run quietly (ie don't install things or ...) for ~ hour and send the gpk_updater.log and the new pk_backend_zypp
hermosa:/home/pmorreale # killall gpk-update-icon hermosa:/home/pmorreale # killall packagekitd packagekitd: no process killed hermosa:/home/pmorreale # rm -rf /var/log/pk_backend_zypp* hermosa:/home/pmorreale # gpk-update-icon -v > /tmp/gpk_updater.log libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. and the log: pmorreale@hermosa:~> more /tmp/gpk_updater.log TI:15:50:45 TH:0x63e500 FI:egg-debug.c FN:egg_debug_init,306 - Verbose debugging 1 (on console 0)GPK_VERBOSE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User sreeves@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c14 --- Comment #14 from Scott Reeves <sreeves@novell.com> 2009-01-27 16:20:25 MST --- Don't run the updater as root - all the commands above that need root are run with sudo Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c15 --- Comment #15 from Peter Morreale <pmorreale@novell.com> 2009-01-27 19:59:00 MST --- (In reply to comment #14)
Don't run the updater as root - all the commands above that need root are run with sudo Thanks.
Doh. log forthcoming... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c16 --- Comment #16 from Peter Morreale <pmorreale@novell.com> 2009-01-27 19:59:54 MST --- Created an attachment (id=268127) --> (https://bugzilla.novell.com/attachment.cgi?id=268127) updater log... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c17 --- Comment #17 from Michael Andres <ma@novell.com> 2009-01-28 02:58:31 MST --- Peter, please attach the new /var/log/pk_backend_zypp as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c18 --- Comment #18 from Peter Morreale <pmorreale@novell.com> 2009-01-28 07:47:56 MST --- Created an attachment (id=268319) --> (https://bugzilla.novell.com/attachment.cgi?id=268319) Log for update test -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c19 --- Comment #19 from Peter Morreale <pmorreale@novell.com> 2009-01-28 07:49:24 MST --- (In reply to comment #18)
Created an attachment (id=268319) --> (https://bugzilla.novell.com/attachment.cgi?id=268319) [details] Log for update test
Errr, this is /var/log/pk_backend_zypp. This spanned the time period of the test I did below... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c20 --- Comment #20 from Peter Morreale <pmorreale@novell.com> 2009-01-28 08:01:47 MST --- It has now been two weeks since I first reported the original issue of the updater in an infinite loop. Since that time I have not seen that behavior again. With the original logs being lost, its not clear to me that we will find a root cause in this case. From my perspective, it will be fine to mark this as being non-reproducible. OTOH, the bug has taken a turn towards determining why I am generating several Mib of log messages a day. From my perspective, this should get resolved. $.02 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c21 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|pmorreale@novell.com | AssignedTo|ma@novell.com |sreeves@novell.com --- Comment #21 from Michael Andres <ma@novell.com> 2009-01-29 02:03:13 MST --- You are right, we at least have a change to find and fix the superfluous zypp launches. To me it looks like the gpk_auto_refresh_maybe_* calls match the times where libzypp is launched and the target gets initialized without further request, even if timeout is not expired. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User sreeves@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c22 Scott Reeves <sreeves@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tambet@novell.com --- Comment #22 from Scott Reeves <sreeves@novell.com> 2009-02-02 17:31:53 MST --- What is happening on the front end is that we are listening to the NetworkStateChanged signal which is being emitted spuriously. We queue up an idle callback (currently the idle timeout is 5 minutes) and when this fires it asks the backend if it should check for updates. The backend replies "not time yet" so we don't check and the backend shuts down. Hence the entries in the log showing the backend coming up and going down (and doing nothing else) every 5 minutes. The real issue is why is packagekitd emitting the signal repeatedly when it shouldn't be. The backend is basing it's signal emission off libnm_glib_register_callback and it seems to be firing when the network state has not changed. I am looking into whether this is a bug or if there are other events that are supposed to cause this callback to fire. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User tambet@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c23 --- Comment #23 from Tambet Ingo <tambet@novell.com> 2009-02-03 01:10:28 MST --- Why do you think NetworkManager's signal emission is to blame here? Yes, this used to be a problem in 0.6.x, but I'm pretty sure this is not happening in 0.7. The code has: if (saved_state != new_state) { saved_state = new_state; g_signal_emit (foo, signal, saved_state); } I also tried with a small test program: #include <libnm_glib.h> static void cb (libnm_glib_ctx *ctx, gpointer data) { g_print ("State changed: %d\n", libnm_glib_get_network_state (ctx)); } int main (int argc, char *argv[]) { GMainLoop *loop; libnm_glib_ctx *ctx; g_type_init (); ctx = libnm_glib_init (); libnm_glib_register_callback (ctx, cb, NULL, NULL); loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); return 0; } and it works exactly as I would expect it to work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User robert@re-factory.de added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c24 Robert E. <robert@re-factory.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robert@re-factory.de --- Comment #24 from Robert E. <robert@re-factory.de> 2009-03-26 06:08:32 MST --- Well I had the same problem as described here. Furthermore the update icon spammed the desktop with notifications. I observed (on three different physical machines) that this only happens if you choose "install all updates automatically" in the update settings. Only installing security or no updates at all prevents this problem. Can anybody confirm? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=466275 User pmorreale@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=466275#c25 --- Comment #25 from Peter Morreale <pmorreale@novell.com> 2009-03-27 08:41:46 MST --- (In reply to comment #24)
Well I had the same problem as described here. Furthermore the update icon spammed the desktop with notifications. I observed (on three different physical machines) that this only happens if you choose "install all updates automatically" in the update settings. Only installing security or no updates at all prevents this problem. Can anybody confirm?
I can only confirm that I have not seen the issue again and my updates config is set to "no updates". I have installed multiple updates since that time. I'm unsure as to whether I originally had the update configed to "install all updates". The pk-backend-zypp log is still getting hammered with log messages every ~5 minutes with approximately 10MB of text every 22 hours. This is beyond ridiculous. <sigh> -- Configure bugmail: https://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