search for libreadline5.* crashes daily run

Bug #1036751 reported by NoVA Guru
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
aide (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Subject: Anacron job 'cron.daily' on Ubuntu1204

/etc/cron.daily/aide:
ls: cannot access /var/lib/dpkg/info/libreadline5.*: No such file or directory
run-parts: /etc/cron.daily/aide exited with return code 2

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: aide 0.15.1-5
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Tue Aug 14 12:56:49 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: aide
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
NoVA Guru (restonguru) wrote :
Revision history for this message
Nathan Kinkade (nath) wrote :

I'm seeing this issue as well. It seems to have to do with the fact that files in /var/lib/dpkg/info/ now contain near the end ":<arch>" which causes ls to fail since, apparently, AIDE wasn't expecting there to be a colon in the filename, but dot. AIDE should be looking for <filename>.<ext> as well as <filename>:<arch>.<ext>, but the globbing for the ls command only looks like <filename>.* and so can't find the new file naming convention for files in that directory. In any case, AIDE probably shouldn't exit upon such an error, but simply make note of it for the report and continue.

Revision history for this message
Thorsten Kunz (sfire) wrote :

Is there any workaround to get this fixed since even if I exclude the directory in the configuration like this AIDE dies.

!/var/lib/dpkg/info/.*

Thanks

Revision history for this message
Nathan Kinkade (nath) wrote :

I'll have to wait for the AIDE job to automatically kick off, but I suspect that the following patch to /etc/cron.daily/aide will fix this issue. It simply removes the dot before the glob so that it will match a bit more liberally:

--- aide 2012-01-09 09:15:28.000000000 +0000
+++ aide.new 2012-09-27 21:47:19.817061493 +0000
@@ -355,7 +355,7 @@
                     if dpkg-query -L ${BASH_REMATCH[3]} > /dev/null 2>&1; then
                         pkgs+="${BASH_REMATCH[3]} (${BASH_REMATCH[2]})\n"
                         dpkg-query -L ${BASH_REMATCH[3]} | sed -e "/^$/d" -e "/\/\./d" >> "$PKG_FILE_LIST"
- ls /var/lib/dpkg/info/${BASH_REMATCH[3]}.* >> "$PKG_FILE_LIST"
+ ls /var/lib/dpkg/info/${BASH_REMATCH[3]}* >> "$PKG_FILE_LIST"
                     fi
                 fi
             done < "$DPKGLOG"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in aide (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.