Hi Vincent, can you try stopping the atop daemons, verifying that they're really dead, and restart?
Btw, this is a new issue, we should have a dedicated bug report for this. Failed with result 'resources' looks like a local issue though. Is your system under load, runing with resource limits, having limited resources? Can you reproduce the issue after rebooting? Greetings Marc On Wed, Oct 26, 2016 at 09:16:11AM +0200, Vincent Lefevre wrote: > From: Vincent Lefevre <[email protected]> > Subject: Re: Bug#834226: atop: prevents clean and fast shutdown > To: Marc Haber <[email protected]> > Cc: [email protected] > Date: Wed, 26 Oct 2016 09:16:11 +0200 > X-Mailer-Info: https://www.vinc17.net/mutt/ > User-Agent: Mutt/1.7.1-6826-vl-r91193 (2016-10-20) > X-Spam-Score: (---) -3.2 > X-Spam-Report: torres.zugschlus.de Content analysis details: (-3.2 > points, 5.0 required) pts rule name description ---- > ---------------------- ------------------------------------------- -1.3 > RP_MATCHES_RCVD Envelope sender domain matches handover relay > domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% > [score: 0.0000] > > On 2016-10-26 08:38:10 +0200, Marc Haber wrote: > > This: > > > > On Wed, Oct 26, 2016 at 02:18:24AM +0200, Vincent Lefevre wrote: > > > Oct 26 02:15:36 cventin systemd[1]: atopacct.service: Failed with result > > > 'r...'. > > > Hint: Some lines were ellipsized, use -l to show in full. > > > > unfortunately stops when it gets interesting. Can you still obtain the > > -l output? > > Here I just need to increase the terminal window size. > With a reinstallation of 2.2.4-1~exp1 just after reboot: > > root@cventin:/home/vlefevre# apt install atop/experimental --reinstall > Reading package lists... Done > Building dependency tree > Reading state information... Done > Selected version '2.2.4-1~exp1' (Debian:experimental [amd64]) for 'atop' > The following package was automatically installed and is no longer required: > linux-image-4.5.0-2-amd64 > Use 'apt autoremove' to remove it. > 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 96 not upgraded. > Need to get 0 B/138 kB of archives. > After this operation, 0 B of additional disk space will be used. > (Reading database ... 508278 files and directories currently installed.) > Preparing to unpack .../atop_2.2.4-1~exp1_amd64.deb ... > Unpacking atop (2.2.4-1~exp1) over (2.2.4-1~exp1) ... > Setting up atop (2.2.4-1~exp1) ... > Job for atopacct.service failed because of unavailable resources or another > system error. > See "systemctl status atopacct.service" and "journalctl -xe" for details. > invoke-rc.d: initscript atopacct, action "start" failed. > ● atopacct.service - Atop process accounting daemon > Loaded: loaded (/lib/systemd/system/atopacct.service; enabled; vendor > preset: enabled) > Active: failed (Result: resources) since Wed 2016-10-26 08:59:31 CEST; 7ms > ago > Docs: man:atopacctd(8) > Process: 1987 ExecStart=/usr/sbin/atopacctd (code=exited, status=0/SUCCESS) > Main PID: 933 (code=killed, signal=KILL) > > Oct 26 08:59:31 cventin systemd[1]: Starting Atop process accounting daemon... > Oct 26 08:59:31 cventin atopacctd[1987]: /run/pacct_shadow.d: File exists > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: PID file > /run/atopacctd.pid not readable (yet?) after start: No such file or directory > Oct 26 08:59:31 cventin systemd[1]: Failed to start Atop process accounting > daemon. > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: Unit entered failed > state. > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: Failed with result > 'resources'. > dpkg: error processing package atop (--configure): > subprocess installed post-installation script returned error exit status 1 > Processing triggers for systemd (231-9) ... > Processing triggers for man-db (2.7.5-1) ... > Errors were encountered while processing: > atop > ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) > ====== > > ----- Show old opportunities as well as new ones: how-can-i-help --old ----- > E: Sub-process /usr/bin/dpkg returned an error code (1) > > In the "journalctl -xe" output: > > Oct 26 08:59:09 cventin systemd[1]: Reloading. > Oct 26 08:59:10 cventin systemd[1]: apt-daily.timer: Adding 5h 45min > 58.793544s random time. > Oct 26 08:59:10 cventin systemd[1]: Stopping Atop process accounting daemon... > -- Subject: Unit atopacct.service has begun shutting down > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atopacct.service has begun shutting down. > Oct 26 08:59:13 cventin systemd-timesyncd[831]: Synchronized to time server > 212.83.158.83:123 (2.debian.pool.ntp.org). > Oct 26 08:59:30 cventin systemd[1]: atopacct.service: State 'stop-sigterm' > timed out. Killing. > Oct 26 08:59:30 cventin systemd[1]: atopacct.service: Killing process 933 > (atopacctd) with signal SIGKILL. > Oct 26 08:59:30 cventin systemd[1]: atopacct.service: Main process exited, > code=killed, status=9/KILL > Oct 26 08:59:30 cventin systemd[1]: Stopped Atop process accounting daemon. > -- Subject: Unit atopacct.service has finished shutting down > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atopacct.service has finished shutting down. > Oct 26 08:59:30 cventin systemd[1]: atopacct.service: Unit entered failed > state. > Oct 26 08:59:30 cventin systemd[1]: atopacct.service: Failed with result > 'signal'. > Oct 26 08:59:30 cventin systemd[1]: Reloading. > Oct 26 08:59:30 cventin systemd[1]: apt-daily.timer: Adding 11h 47min > 2.925555s random time. > Oct 26 08:59:30 cventin systemd[1]: Stopping Atop advanced performance > monitor... > -- Subject: Unit atop.service has begun shutting down > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atop.service has begun shutting down. > Oct 26 08:59:30 cventin systemd[1]: Stopped Atop advanced performance monitor. > -- Subject: Unit atop.service has finished shutting down > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atop.service has finished shutting down. > Oct 26 08:59:30 cventin systemd[1]: Reloading. > Oct 26 08:59:30 cventin systemd[1]: apt-daily.timer: Adding 2h 45min > 11.176686s random time. > Oct 26 08:59:30 cventin systemd[1]: Reloading. > Oct 26 08:59:30 cventin systemd[1]: apt-daily.timer: Adding 1h 57min > 59.195702s random time. > Oct 26 08:59:31 cventin systemd[1]: Reloading. > Oct 26 08:59:31 cventin systemd[1]: apt-daily.timer: Adding 5h 8min > 37.093277s random time. > Oct 26 08:59:31 cventin systemd[1]: Reloading. > Oct 26 08:59:31 cventin systemd[1]: apt-daily.timer: Adding 8h 3min > 58.122730s random time. > Oct 26 08:59:31 cventin systemd[1]: Started Atop advanced performance monitor. > -- Subject: Unit atop.service has finished start-up > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atop.service has finished starting up. > -- > -- The start-up result is done. > Oct 26 08:59:31 cventin systemd[1]: Reloading. > Oct 26 08:59:31 cventin systemd[1]: apt-daily.timer: Adding 2h 34min > 46.595823s random time. > Oct 26 08:59:31 cventin systemd[1]: Reloading. > Oct 26 08:59:31 cventin systemd[1]: apt-daily.timer: Adding 11h 55min > 21.691117s random time. > Oct 26 08:59:31 cventin systemd[1]: Starting Atop process accounting daemon... > -- Subject: Unit atopacct.service has begun start-up > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atopacct.service has begun starting up. > Oct 26 08:59:31 cventin atopacctd[1987]: /run/pacct_shadow.d: File exists > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: PID file > /run/atopacctd.pid not readable (yet?) after start: No such file or directory > Oct 26 08:59:31 cventin systemd[1]: Failed to start Atop process accounting > daemon. > -- Subject: Unit atopacct.service has failed > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit atopacct.service has failed. > -- > -- The result is failed. > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: Unit entered failed > state. > Oct 26 08:59:31 cventin systemd[1]: atopacct.service: Failed with result > 'resources'. > Oct 26 08:59:31 cventin systemd[1]: Reloading. > Oct 26 08:59:31 cventin systemd[1]: apt-daily.timer: Adding 11h 28min > 22.894057s random time. > > -- > Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> > 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> > Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

