Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#842136: atop: /run/pacct_shadow.d: File exists on restarting atopacctd on upgrade

196 views
Skip to first unread message

Martin Steigerwald

unread,
Oct 26, 2016, 4:40:03 AM10/26/16
to
Package: atop
Version: 2.2.4-1~exp1
Severity: normal

Dear Marc,

During upgrade of atop 2.2.3 to 2.2.4 I got this.

This might be an issue that needs a principal fix. If its just related
to the last experimental version however, feel free to close the bug
report.

There is also a non aborting error with deb-systemd-helper, I file
another bug report about that if you want.

merkaba:~#100> LANG=C apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up atop (2.2.4-1~exp1) ...
Failed to preset unit: File /etc/systemd/system/multi-user.target.wants/atop.service already exists.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on atop.service: No such file or directory
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 10:18:11 CEST; 6ms ago
Docs: man:atopacctd(8)
Process: 31310 ExecStart=/usr/sbin/atopacctd (code=exited, status=0/SUCCESS)
Main PID: 1592 (code=killed, signal=KILL)

Oct 26 10:18:11 merkaba systemd[1]: Starting Atop process accounting daemon...
Oct 26 10:18:11 merkaba atopacctd[31310]: /run/pacct_shadow.d: File exists
Oct 26 10:18:11 merkaba systemd[1]: atopacct.service: PID file /run/atopacctd.pid not readable (yet?) after start: No such file or directory
Oct 26 10:18:11 merkaba systemd[1]: Failed to start Atop process accounting daemon.
Oct 26 10:18:11 merkaba systemd[1]: atopacct.service: Unit entered failed state.
Oct 26 10:18:11 merkaba systemd[1]: atopacct.service: Failed with result 'resources'.
dpkg: error processing package atop (--configure):
subprocess installed post-installation script returned error exit status 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 -----
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


merkaba:~#100> systemctl status atopacct.service
● atopacct.service - Atop process accounting daemon
Loaded: loaded (/lib/systemd/system/atopacct.service; enabled; vendor preset: enabled)
Active: failed (Result: resources) since Mi 2016-10-26 10:18:11 CEST; 1min 25s ago
Docs: man:atopacctd(8)
Process: 31310 ExecStart=/usr/sbin/atopacctd (code=exited, status=0/SUCCESS)
Main PID: 1592 (code=killed, signal=KILL)

Okt 26 10:18:11 merkaba systemd[1]: Starting Atop process accounting daemon...
Okt 26 10:18:11 merkaba atopacctd[31310]: /run/pacct_shadow.d: File exists
Okt 26 10:18:11 merkaba systemd[1]: atopacct.service: PID file /run/atopacctd.pid not readable (yet?) after start: No such file or directory
Okt 26 10:18:11 merkaba systemd[1]: Failed to start Atop process accounting daemon.
Okt 26 10:18:11 merkaba systemd[1]: atopacct.service: Unit entered failed state.
Okt 26 10:18:11 merkaba systemd[1]: atopacct.service: Failed with result 'resources'.

merkaba:~#3> systemctl stop atopacctd.service
Failed to stop atopacctd.service: Unit atopacctd.service not loaded.

merkaba:~> find /run/pacct_shadow.d -ls
20541 0 drwxr-xr-x 2 root root 80 Okt 25 08:57 /run/pacct_shadow.d
20543 4 -rw-r--r-- 1 root root 7 Okt 25 08:57 /run/pacct_shadow.d/current
20542 0 -rw-r--r-- 1 root root 0 Okt 25 08:57 /run/pacct_shadow.d/0000000000.paf

merkaba:~> LANG=C apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up atop (2.2.4-1~exp1) ...
Failed to preset unit: File /etc/systemd/system/multi-user.target.wants/atop.service already exists.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on atop.service: No such file or directory
====== 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 -----
Scanning processes...
Scanning candidates...
Scanning linux images...
Running kernel seems to be up-to-date.
Restarting services...

Thanks,
Martin

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages atop depends on:
ii init-system-helpers 1.45
ii initscripts 2.88dsf-59.8
ii libc6 2.24-5
ii libncurses5 6.0+20160917-1
ii libtinfo5 6.0+20160917-1
ii lsb-base 9.20161016
ii zlib1g 1:1.2.8.dfsg-2+b1

Versions of packages atop recommends:
ii cronie [cron-daemon] 1.4.8-1~exp1

atop suggests no packages.

-- no debconf information

Marc Haber

unread,
Oct 26, 2016, 4:50:03 AM10/26/16
to
On Wed, Oct 26, 2016 at 10:26:47AM +0200, Martin Steigerwald wrote:
> There is also a non aborting error with deb-systemd-helper, I file
> another bug report about that if you want.

Please.

Greetings
Marc

--
-----------------------------------------------------------------------------
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

Martin Steigerwald

unread,
Dec 23, 2016, 3:20:02 PM12/23/16
to
Am Mittwoch, 26. Oktober 2016, 10:26:47 CET schrieben Sie:
> There is also a non aborting error with deb-systemd-helper, I file
> another bug report about that if you want.
>
> merkaba:~#100> LANG=C apt dist-upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... Done
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n]
> Setting up atop (2.2.4-1~exp1) ...
> Failed to preset unit: File
> /etc/systemd/system/multi-user.target.wants/atop.service already exists.
> /usr/bin/deb-systemd-helper: error: systemctl preset failed on
> atop.service: No such file or directory Job for atopacct.service failed
> because of unavailable resources or another system error. See "systemctl
> status atopacct.service" and "journalctl -xe" for details.

Reported as bug#849226 atop: reinstallation fails

(might make sense to retitle that bug report…)

Thanks,
--
Martin

Marc Haber

unread,
Jan 18, 2017, 2:10:04 PM1/18/17
to
Does it make sense to keep this open? We do have language in
debian/NEWS to explain this issue and how to get out of it. Should we
retitle this issue to something like "upgrading from experimental atop
versions <numbers> to current unstable fails" to indicate that it is
not related to stable upgrades?

Greetings
Marc

Martin Steigerwald

unread,
Jan 18, 2017, 3:30:03 PM1/18/17
to
Hi Marc,
I´d retitle it and then close the bug.

Thanks,
--
Martin
0 new messages