Public bug reported:

The Debian people tell me this bug was fixed Upstream six months ago.

Ubuntu 20.04 LTS systems have the atop/acct conflict problem where if
you install acct it wants the pacct file in one place
(/var/log/account/pacct) and then if you install atop it starts
atopacctd that decides it should be in a different place
(/run/pacct_source) and the two fight it out every time the accounting
reloads, making a real mess.

If you disable atopacctd to stop it from stealing the pacct file, then
if you ever run atop as root, atop itself will steal the pacct file and
start storing it in /var/cache/atop.d/atop.acct, because atop expects to
find the pacct file under /var/account/pacct and that directory doesn't
exist on Ubuntu, so atop thinks no accounting is in use and creates its
own location, breaking the acct package again.  Disabling atopacctd
isn't sufficient.

The Debian people tell me this bug was fixed Upstream six months ago.

Please install the Debian fix.

As a work-around on Ubuntu 20.04, I replaced /usr/sbin/atopacctd with a
"sleep 9999d" script that will prevent it from ever grabbing the
accounting file (at least until the next atop package update), and I
made a symlink so that atop finds the Ubuntu accounting file and doesn't
itself grab the accounting file:

    # ln -s log/account /var/account

Now atop and acct coexist on Ubuntu LTS, at least until the next package
update.

Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922224

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: atop 2.4.0-3 [modified: usr/sbin/atopacctd]
ProcVersionSignature: Ubuntu 5.8.0-59.66~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-59-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Jul 21 10:43:28 2021
EcryptfsInUse: Yes
InstallationDate: Installed on 2020-10-07 (286 days ago)
InstallationMedia: Lubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: atop
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: atop (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1937097

Title:
  atopacctd and atop break acct by moving pacct file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/atop/+bug/1937097/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to