[Bug 985260] New: zypper up hangs in "Applying delta"
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 Bug ID: 985260 Summary: zypper up hangs in "Applying delta" Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: leroy.nick@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- "zypper up" hangs while "Applying delta". The hang is for hours / days (i.e. infinite). I've only observed this on VMs (running under kvm / qemu) running Leap. The VMs in question are all running ext4 for the root file system (not btrfs). When this happens, 'ps auxwf' shows that several child processes are running. /usr/bin/python /usr/lib/zypp/plugins/commit/btrfs-defrag-plugin.py /usr/bin/python /usr/lib/zypp/plugins/commit/snapper.py Killing the snapper process seems to allow things to continue (after "applydeltarpm check failed."), but it will usually hang again several deltas later. Killing the defrag will usually allow it to continue again, but it will usually hang again at some point, in which case I have to hit ctrl-c a couple times to stop zypper entirely, and re-run it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c1 Dave Plater <davejplater@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |davejplater@gmail.com --- Comment #1 from Dave Plater <davejplater@gmail.com> --- IMHO snapper shouldn't be installed with file systems it doesn't work with. I've an xfs root, I get frequent power failures and it handles it well, uninstalling snapper speeds up my zypper up -t patch operations and I killed the cron job soon after installing Leap:42.1. This bug will likely be converted to a feature request. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c2 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |leroy.nick@gmail.com Flags| |needinfo?(leroy.nick@gmail. | |com) --- Comment #2 from Michael Andres <ma@suse.com> --- I don't know if the btrfs tools can cause 'applydeltarpm' to hang (if this is what actually happened). To be sure - if you don't use btrfs - remove the btrfsmaintenance and snapper-zypp-plugin packages (or just remove the /usr/lib/zypp/plugins/commit/ pluginscripts). Zypp itself does not depend on any of these commit plugins. They are started if they are present, and receive some notifications while they are up and installation proceeds. If this resolves the problem, we should forward the bug to the btrfs maintainers to investigate. If it still hangs without the plugins, I'd need to see the zypper.log to get an impression of what actually happens. If it's still in "Applying delta", try to set 'download.use_deltarpm = false' in /etc/zypp/zypp.conf:
## ## Whether to consider using a .delta.rpm when downloading a package ## ## Valid values: boolean ## Default value: true ## ## Using a delta rpm will decrease the download size for package updates ## since it does not contain all files of the package but only the binary ## diff of changed ones. Recreating the rpm package on the local machine ## is an expensive operation (memory,CPU). If your network connection is ## not too slow, you benefit from disabling .delta.rpm. ## # download.use_deltarpm = true download.use_deltarpm = false
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c3 --- Comment #3 from Nick LeRoy <leroy.nick@gmail.com> --- OK, I'll do that and watch for the next couple of weeks to see if it keeps happening. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c4 --- Comment #4 from Nick LeRoy <leroy.nick@gmail.com> --- Removing the btrfsmaintenance and snapper-zypp-plugin packages seems to have resolved the issue. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c5 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|libzypp |Basesystem Assignee|zypp-maintainers@forge.prov |dsterba@suse.com |o.novell.com | Summary|zypper up hangs in |[btrfsmaintenance?] zypper |"Applying delta" |up hangs in "Applying | |delta" Flags|needinfo?(leroy.nick@gmail. | |com) | --- Comment #5 from Michael Andres <ma@suse.com> --- @David: JFYI as the 'hang' appears to be related to the btrfs-defrag-plugin. If it's a known problem or there's nothing to investigate here, please close as FIXED. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c6 --- Comment #6 from David Sterba <dsterba@suse.com> --- The defrag plugin should be safe on non-btrfs filesystems, it detects the underlying filesystem on /var/lib/rpm and exits if necessary. The plugin runs the defragmentation only at the end, but is otherwise visible in the process list. I don't know if the delta rpms call the plugin callbacks out of order or if there are changes in the API that could cause the hangs. There's a debugging option in the plugin file (has to be switched on manually), so it would be good to get debugging logs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985260 http://bugzilla.opensuse.org/show_bug.cgi?id=985260#c7 --- Comment #7 from Nick LeRoy <leroy.nick@gmail.com> --- OK, I'll stand up a new VM over the next couple of days, and gather logs. How do I enable the debugging? Thanks -Nick -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com