[Bug 1612600] Re: backuppc 3.3.1-2ubuntu3 breaks pool graphs on the Status page
Launchpad Bug Tracker
1612600 at bugs.launchpad.net
Wed Dec 14 23:30:40 UTC 2016
This bug was fixed in the package backuppc - 3.3.1-4ubuntu1
---------------
backuppc (3.3.1-4ubuntu1) zesty; urgency=low
* Merge from Debian unstable. Remaining changes:
- debian/backuppc.init, debian/rules: Do not call init script on shutdown
and reboot (TearDown) (Closes: #488660).
- (Inline) apply patch to add support for ipv6. (LP: #54918). Depend and
Build-Depend on libsocket6-perl for that. (LP: #1515986)
- debian/rules: installing setuid wrapper with setuid bit set, and no
permissions granted to other (mode 4750).
* Dropped changes:
- Dropping par2 from build-deps. We can b-d on universe packages now.
- Versioned dep on libcgi-pm-perl. The last LTS has the version we need.
- Escaping braces in Perl regex. Debian added this too.
- Depending on default-mta instead of enumerated list. Debian did similar.
- Moving config.pl.diff. Makes it hard to stay in sync with Debian and
doesn't add any benefit except cleanliness of the path.
* debian/patches/setuid.patch:
- Fix status page pool graphs by running rddtool as the backuppc user.
(LP: #1612600)
-- Michael Terry <mterry at ubuntu.com> Wed, 14 Dec 2016 15:44:17 -0500
** Changed in: backuppc (Ubuntu)
Status: Triaged => Fix Released
--
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:
Fix Released
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