[Bug 1612600] Re: backuppc 3.3.1-2ubuntu3 breaks pool graphs on the Status page

Michael Terry michael.terry at canonical.com
Wed Dec 14 22:09:15 UTC 2016


Thanks for the patch Tannoiser!  I've uploaded a merge from Debian +
your patch to zesty.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1612600

Title:
  backuppc 3.3.1-2ubuntu3 breaks pool graphs on the Status page

Status in backuppc package in Ubuntu:
  Triaged

Bug description:
  Upgraded system from 14.04 LTS to 16.04.1 LTS.

  As a result, the rrd pool size graphs stopped displaying, instead
  showing "default image" icons.

  Investigation has shown that this is due to the permissions conflict.
  Whatever user executes backuppc/index.cgi cannot run /usr/bin/rrdtool.

  The fix is as per
  https://sourceforge.net/p/backuppc/mailman/message/18724263/.

  Namely, here's a relevant code snapshot in
  /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm:

    $In{image} =~ /([0-9]+)/;
    my $weeks = $1;
    my $real = $<;# NEW
    $< = $>; # NEW
    print "Content-type: image/png\n\n";
    print `/usr/bin/rrdtool graph - --imgformat=PNG --start=end-${weeks}w --end=-300 --title="BackupPC Pool Size (${weeks} weeks)" --base=1000 --height=100 --width=600 --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode --font TITLE:10:Times --font AXIS:8:Times --font LEGEND:8:Times --font UNIT:8:Times -c BACK#FFFFFF DEF:ao="$LogDir/pool.rrd":ckb:AVERAGE CDEF:a=ao,1024,* AREA:a#95B8DB:"CPool in bytes"  GPRINT:a:LAST:"Current\\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\\:%8.2lf %s" GPRINT:a:MAX:"Maximum\\:%8.2lf %s\\n"`;
    $< = $real; # NEW
    return;

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



More information about the Ubuntu-sponsors mailing list