Please wrap output from apt-acher-ng cron job

Bug #1074474 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have run into a problem, where dma (a sendmail replacement) refuses to accept the output from anacron, because it contains lines longer that 1000 bytes.

The line that is causing the problem is from:

  /etc/cron.daily/apt-cacher-ng:
  Error(s) occured while updating volatile index files for apt-cacher-ng.
  Please visit http://lenny:3142/acng-report.html to rerun the
  expiration manually or check the error message(s) in the current log file(s).

  Check error messages in /var/log/apt-cacher-ng/maint_1340793800.log /var/log/apt-cacher-ng/maint_1340881914.log [...] /var/log/apt-cacher-ng/maint_1351765343.log /var/log/apt-cacher-ng/maint_1351860019.log

The untrimmed line is almost 5000 characters long.

apt-cacher-ng should probably wrap the lines after ~80 characters or put the filenames on a single line (as a dash-prefixed list).

The output appears to come from the /etc/cron.daily/apt-cacher-ng script:

    perl /usr/lib/apt-cacher-ng/expire-caller.pl || echo Check error messages in /var/log/apt-cacher-ng/maint_*.log

When executing the "expire-caller" script which is failing I get this output:

    $ sudo perl /usr/lib/apt-cacher-ng/expire-caller.pl
    Error(s) occured while updating volatile index files for apt-cacher-ng.
    Please visit http://lenny:3142/acng-report.html to rerun the
    expiration manually or check the error message(s) in the current log file(s).

Daniel Hahler (blueyed)
description: updated
description: updated
Daniel Hahler (blueyed)
Changed in apt-cacher-ng (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.7.10-1ubuntu1

---------------
apt-cacher-ng (0.7.10-1ubuntu1) raring; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - debian/apt-cacher-ng.logrotate:
      Comment out the "su" lines as this requires logrotate 3.8.1 which isn't
      in Ubuntu yet.
    - drop conflict on logrotate < 3.8.1

apt-cacher-ng (0.7.10-1) unstable; urgency=medium

  * New upstream release

apt-cacher-ng (0.7.9-1) unstable; urgency=low

  * New upstream release
    + fixes regular downloads in ForceManaged mode, closes: #692373)

apt-cacher-ng (0.7.8-1) unstable; urgency=low

  * New upstream release
    + improved redirection handling (closes: #683803)
    + workarounds for stuck download descriptors (now probably really
      closes:#677983)
  * Cron jobs displays max. 5 recent operation logs (LP: #1074474)

apt-cacher-ng (0.7.7-2) unstable; urgency=low

  * Unstable upload (no changes, hope that it closes: #677983)
 -- Daniel Hahler <email address hidden> Fri, 09 Nov 2012 17:47:23 +0100

Changed in apt-cacher-ng (Ubuntu):
status: Triaged → Fix Released
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.