On Mon, Oct 31, 2011 at 06:46:43AM +0200, Teodor MICU wrote: > severity 645919 grave > stop
Thanks for your bugreport. I think I found the issue now and fixed it in trunk. The issue is that the init scripts are run on upgrade, but they really should only run on actual shutdown. Its a bit confusing why this is happening as the header of the init script says that it should not run in any runlevel and only stop in runlevel 0 6. So there might be a bug in the init system here as well. Which one do you use? With the fix there will be one more hang on upgrade because the old (and buggy) prerm is run that will try to stop unattended-upgrades. But from that point on it should be fixed. Cheers, Michael > 2011/10/19 Teodor <mteo...@gmail.com>: > > I guess the only option is to kill u-a and upgrade manually. Severity set to > > 'important' instead of 'grave' just because it might have to be specific to > > my > > custom config for automatic reboot after u-a runs (if needed). > > Well, my assumtion was wrong. It happened again today (u-a 0.73.1 > migrated to testing) on my laptop were I don't have any automatic > reboot configured for u-a. Thus raising severity since it affects > normal configurations too. > > These are all the u-a processes running now: > 1715 /bin/sh /usr/sbin/invoke-rc.d unattended-upgrades stop > 1735 /bin/sh /etc/init.d/unattended-upgrades stop > 1736 python /usr/share/unattended-upgrades/unattended-upgrade-shutdown > 28040 /usr/bin/python /usr/bin/unattended-upgrade > 28144 /usr/bin/python /usr/bin/unattended-upgrade > 28205 /usr/bin/dpkg --status-fd 132 --unpack --auto-deconfigure > /var/cache/apt/archives/[..] > /var/cache/apt/archives/unattended-upgrades_0.73.1_all.deb [..] > > The pstree looks like this: > init─┬─NetworkManager─┬─dhclient > │ └─2*[{NetworkManager}] > ├─acpi_fakekeyd > ├─acpid > > ├─anacron───sh───run-parts───apt───unattended-upgr───unattended-upgr───dpkg───prerm───invoke-rc.d───unattended-upgr───python > > 27381 ? Ss 0:00 /usr/sbin/anacron -s > 27893 ? S 0:00 \_ /bin/sh -c nice run-parts --report > /etc/cron.daily > 27894 ? SN 0:00 \_ run-parts --report /etc/cron.daily > 27938 ? SN 0:00 \_ /bin/sh /etc/cron.daily/apt > 28040 ? SN 0:29 \_ /usr/bin/python > /usr/bin/unattended-upgrade > 28144 ? SN 0:00 \_ /usr/bin/python > /usr/bin/unattended-upgrade > 28205 ? SN 0:03 \_ /usr/bin/dpkg > --status-fd 132 --unpack --auto-deconfigure /var/cache/apt/archives > 1714 ? SN 0:00 \_ /bin/sh > /var/lib/dpkg/tmp.ci/prerm failed-upgrade 0.72.3 > 1715 ? SN 0:00 \_ /bin/sh > /usr/sbin/invoke-rc.d unattended-upgrades stop > 1735 ? SN 0:00 \_ /bin/sh > /etc/init.d/unattended-upgrades stop > 1736 ? SN 0:00 \_ > python /usr/share/unattended-upgrades/unattended-upgrade-shutdown > ro > > After "kill 1736" it goes to: > 28205 ? SN 0:03 \_ /usr/bin/dpkg > --status-fd 132 --unpack --auto-deconfigure /var/cache/apt/archives > 1923 ? SN 0:00 \_ /usr/bin/perl > -w /usr/share/debconf/frontend /var/lib/dpkg/info/unattended-up > 1926 ? SN 0:00 \_ /bin/sh > /var/lib/dpkg/info/unattended-upgrades.postinst abort-upgrade 0.7 > 1929 ? SN 0:00 \_ /bin/sh > /usr/sbin/invoke-rc.d unattended-upgrades start > 1945 ? SN 0:00 \_ > /bin/sh /etc/init.d/unattended-upgrades start > 1946 ? SN 0:00 \_ > python /usr/share/unattended-upgrades/unattended-upgrade-shut > > A final "kill 1946" made it stop all u-a processes and > /etc/cron.daily/apt (the other cron daily tasks continued to run). > > A manual "apt-get dist-upgrade" completed the upgrade and > configuration of all packages left: > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > The following packages have been kept back: > gnome-utils metacity > The following packages will be upgraded: > aptitude unattended-upgrades > 2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. > 39 not fully installed or removed. > Need to get 3,909 kB/3,945 kB of archives. > After this operation, 64.5 kB disk space will be freed. > Do you want to continue [Y/n]? > Get:1 http://ftp.ro.debian.org/debian/ unstable/main aptitude amd64 > 0.6.4-1.2 [3,909 kB] > Fetched 3,909 kB in 1s (2,151 kB/s) > Reading changelogs... Done > Preconfiguring packages ... > (Reading database ... 185672 files and directories currently installed.) > Preparing to replace unattended-upgrades 0.72.3 (using > .../unattended-upgrades_0.73.1_all.deb) ... > Checking for running unattended-upgrades: Unpacking replacement > unattended-upgrades ... > Preparing to replace aptitude 0.6.4-1.1 (using > .../aptitude_0.6.4-1.2_amd64.deb) ... > Unpacking replacement aptitude ... > Processing triggers for man-db ... > Processing triggers for menu ... > Setting up libavutil51 (4:0.7.2-1+b1) ... > Setting up libx264-118 (2:0.118.2085+git8a62835-1) ... > Setting up libavcodec53 (4:0.7.2-1+b1) ... > Setting up libavformat53 (4:0.7.2-1+b1) ... > Setting up libavdevice53 (4:0.7.2-1+b1) ... > Setting up libswscale2 (4:0.7.2-1+b1) ... > Setting up libavfilter2 (4:0.7.2-1+b1) ... > Setting up libcogl5 (1.8.2-1) ... > Setting up libcogl-pango0 (1.8.2-1) ... > Setting up gir1.2-cogl-1.0 (1.8.2-1) ... > Setting up gir1.2-coglpango-1.0 (1.8.2-1) ... > Setting up libclutter-1.0-0 (1.8.2-1) ... > Setting up gir1.2-clutter-1.0 (1.8.2-1) ... > Setting up libgmp10 (2:5.0.2+dfsg-2) ... > Setting up libpostproc52 (4:0.7.2-1+b1) ... > Setting up dctrl-tools (2.19) ... > Setting up dnsmasq-base (2.59-2) ... > Setting up dnsmasq (2.59-2) ... > Restarting DNS forwarder and DHCP server: dnsmasq. > Setting up ffmpeg (4:0.7.2-1+b1) ... > Setting up gnome-icon-theme (3.2.1.2-1) ... > Setting up gstreamer0.10-plugins-ugly (0.10.18-3+b1) ... > Setting up libclutter-1.0-common (1.8.2-1) ... > Setting up libcogl-common (1.8.2-1) ... > Setting up libgadu3 (1:1.11.0+r1184-2) ... > Setting up libgladeui-common (3.10.2-1) ... > Setting up libgladeui-2-0 (3.10.2-1) ... > Setting up liborbit2 (1:2.14.19-0.1) ... > Setting up libquicktime2 (2:1.2.3-4+b2) ... > Setting up libvlccore4 (1.1.12-2+b1) ... > Setting up libvlc5 (1.1.12-2+b1) ... > Setting up mplayer (2:1.0~rc4.dfsg1+svn33713-5) ... > Setting up rsync (3.0.9-1) ... > Installing new version of config file /etc/init.d/rsync ... > Setting up telepathy-salut (0.6.0-1) ... > Setting up unattended-upgrades (0.73.1) ... > Installing new version of config file /etc/init.d/unattended-upgrades ... > update-rc.d: warning: unattended-upgrades start runlevel arguments (2 > 3 4 5) do not match LSB Default-Start values (none) > update-rc.d: warning: unattended-upgrades stop runlevel arguments (0 1 > 6) do not match LSB Default-Stop values (0 6) > Checking for running unattended-upgrades: > Setting up vlc-nox (1.1.12-2+b1) ... > Setting up vlc-plugin-notify (1.1.12-2+b1) ... > Setting up vlc (1.1.12-2+b1) ... > Setting up vlc-plugin-pulse (1.1.12-2+b1) ... > Setting up x11-utils (7.6+4) ... > Setting up aptitude (0.6.4-1.2) ... > > Thanks > > > -- System Information: > Debian Release: wheezy/sid > APT prefers testing > APT policy: (500, 'testing'), (200, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.0.0-2-amd64 (SMP w/2 CPU cores) > Locale: LANG=ro_RO.utf8, LC_CTYPE=ro_RO.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages unattended-upgrades depends on: > ii apt 0.8.15.9 > ii apt-utils 0.8.15.9 > ii debconf [debconf-2.0] 1.5.41 > ii lsb-release 3.2-28 > ii python 2.7.2-9 > ii python-apt 0.8.0 > ii ucf 3.0025+nmu2 > > unattended-upgrades recommends no packages. > > Versions of packages unattended-upgrades suggests: > pn bsd-mailx <none> > > -- Configuration Files: > /etc/apt/apt.conf.d/50unattended-upgrades changed: > // Automatically upgrade packages from these (origin, archive) pairs > Unattended-Upgrade::Origins-Pattern { > "o=Debian,a=testing"; > // "origin=Debian,label=Debian-Security,archive=stable"; > // "o=Debian,a=stable"; > // "o=Debian,a=oldstable"; > // "o={distro_id},a=${distro_codename}-proposed-updates"; > }; > // List of packages to not update > Unattended-Upgrade::Package-Blacklist { > // "vim"; > // "libc6"; > // "libc6-dev"; > // "libc6-i686"; > }; > // This option allows you to control if on a unclean dpkg exit > // unattended-upgrades will automatically run > // dpkg --force-confold --configure -a > // The default is true, to ensure updates keep getting installed > //Unattended-Upgrade::AutoFixInterruptedDpkg "false"; > // Split the upgrade into the smallest possible chunks so that > // they can be interrupted with SIGUSR1. This makes the upgrade > // a bit slower but it has the benefit that shutdown while a upgrade > // is running is possible (with a small delay) > //Unattended-Upgrades::MinimalSteps "true"; > // Send email to this address for problems or packages upgrades > // If empty or unset then no email is sent, make sure that you > // have a working mail setup on your system. The package 'mailx' > // must be installed or anything that provides /usr/bin/mail. > Unattended-Upgrade::Mail "root"; > // Set this value to "true" to get emails only on errors. Default > // is to always send a mail if Unattended-Upgrade::Mail is set > Unattended-Upgrade::MailOnlyOnError "true"; > // Do automatic removal of new unused dependencies after the upgrade > // (equivalent to apt-get autoremove) > Unattended-Upgrade::Remove-Unused-Dependencies "true"; > // Automatically reboot *WITHOUT CONFIRMATION* if a > // the file /var/run/reboot-required is found after the upgrade > //Unattended-Upgrade::Automatic-Reboot "false"; > // Use apt bandwidth limit feature, this example limits the download > // speed to 70kb/sec > Acquire::http::Dl-Limit "6144"; > > > -- debconf information: > * unattended-upgrades/enable_auto_updates: true > > -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org