Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#903217: backuppc: Web interface status page doesn't show graphs

50 views
Skip to first unread message

Dominique Brazziel

unread,
Jul 7, 2018, 5:10:03 PM7/7/18
to
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

sixerjman

unread,
Aug 19, 2018, 7:40:02 AM8/19/18
to
Even after applying the above mentioned patch. The fact that the pool size
shows at 0 bytes on the status page (pool size is several gigabytes) probably
has some bearing.

sixerjman

unread,
Aug 19, 2018, 9:50:02 AM8/19/18
to
After pool size registered as non-zero I have graphs.

Axel Beckert

unread,
Oct 21, 2018, 8:30:03 PM10/21/18
to
Hi,

Dominique Brazziel wrote:
> No graphs shown, images broken

This might be the same as
https://bugs.launchpad.net/ubuntu/+source/backuppc/+bug/1612600 in
Ubuntu. A fix for that is part of
https://patches.ubuntu.com/b/backuppc/backuppc_3.3.1-4ubuntu1.patch

We should try to reproduce the issue and see if the according hunks of
the Ubuntu patch fixes it.

Regards, Axel
--
,''`. | Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
0 new messages