Bug#903217: backuppc: Web interface status page doesn't show graphs
Package: backuppc
Version: 3.3.1-5
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
Select status page
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
No graphs shown, images broken
* What outcome did you expect instead?
Graph images
*** End of the template - remove these template lines ***
Patch to fix:
--- /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm.orig 2016-09-06
04:04:33.466484120 -0400
+++ /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm 2016-09-06
04:05:34.271384202 -0400
@@ -47,8 +47,11 @@
if ($In{image} ne "") {
$In{image} =~ /([0-9]+)/;
my $weeks = $1;
+ my $real = $<; ### SUID
+ $< = $>; ### SUID
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; ### SUID
return;
}
That was per: https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/1612600
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages backuppc depends on:
ii adduser 3.117
ii apache2 [httpd] 2.4.33-3+b1
ii apache2-utils 2.4.33-3+b1
ii bzip2 1.0.6-8.1
ii debconf [debconf-2.0] 1.5.67
ii dpkg 1.19.0.5+b1
ii exim4-daemon-light [mail-transport-agent] 4.91-5
ii iputils-ping 3:20161105-1
ii libarchive-zip-perl 1.60-1
ii libc6 2.27-3
ii libcgi-pm-perl 4.38-1
pn libdigest-md5-perl <none>
ii libtime-parsedate-perl 2015.103-2
ii libwww-perl 6.34-1
ii lsb-base 9.20170808
ii perl [libio-compress-perl] 5.26.2-6
ii samba-common-bin 2:4.8.2+dfsg-2
ii smbclient 2:4.8.2+dfsg-2
ii tar 1.30+dfsg-2
ii ucf 3.0038
Versions of packages backuppc recommends:
ii libfile-rsyncp-perl 0.74-2.1+b4
ii libio-dirent-perl 0.05-1+b6
ii openssh-client [ssh-client] 1:7.7p1-2
ii rrdtool 1.7.0-1+b2
ii rsync 3.1.2-2.1
Versions of packages backuppc suggests:
ii chromium [www-browser] 67.0.3396.87-1
ii firefox-esr [www-browser] 52.9.0esr-1
ii hv3 [www-browser] 3.0~fossil20110109-6
pn par2 <none>
ii w3m [www-browser] 0.5.3-36+b1
-- Configuration Files:
/etc/backuppc/hosts [Errno 13] Permission denied: '/etc/backuppc/hosts'
/etc/backuppc/localhost.pl [Errno 13] Permission denied:
'/etc/backuppc/localhost.pl'
/etc/default/backuppc changed:
NICE=0
IONICE=idle
-- debconf information:
backuppc/restart-webserver: true
Reply to: