Package: backuppc
Version: 3.2.1-4
Severity: normal

Dear Ludovic,

on a BackupPC server newly installed a few months ago with Wheezy, and
then merged in /etc/backuppc/config.pl, /etc/backuppc/hosts and some
more configuration files from the previously used hardware, I've see
the following strange message for quite some hosts (29 out of 116) on
their BackupPC home page:

Last email sent to <main user for that host> was at <today's date> <current 
time>, subject "". 

It always shows the current time and date and claims that the subject
has been empty.

But according to the mail log, no mail has been sent for as long as
the mail logs are available. (Which means that it's possible that
there was never sent any mail to that user for that host.)

Since showing an empty string as well as showing the current date are
the result of an undefined value being interpreted as string
respectively passed to time() or localtime(), I checked
/var/lib/backuppc/log/UserEmailInfo.pl for the users and hosts in
question. They all seem to have an empty hashref where other hosts
have a hashref containing a hash with lastSubj lastTime as keys:

------------------------------------------------------------------------
[...]
  '<some user>' => {
    '<host with strange e-mail message>' => {},
    '<host with normal e-mail message>' => {
      'lastSubj' => 'BackupPC: no recent backups on <host with normal e-mail 
message>',
      'lastTime' => 1357183205
    }
  },
[...]
------------------------------------------------------------------------

So I suspect that either the case where no mail has been sent ever is
not handled properly or that something unexpectedly filled
/var/lib/backuppc/log/UserEmailInfo.pl with empty hashes for some hosts.

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages backuppc depends on:
ii  adduser                         3.113+nmu3
ii  apache2                         2.2.22-12
ii  apache2-mpm-worker [httpd]      2.2.22-12
ii  bzip2                           1.0.6-4
ii  debconf [debconf-2.0]           1.5.49
ii  dpkg                            1.16.9
ii  iputils-ping                    3:20101006-1+b1
ii  libarchive-zip-perl             1.30-6
ii  libc6                           2.13-37
pn  libcompress-zlib-perl           <none>
ii  libtime-modules-perl            2011.0517-1
ii  libwww-perl                     6.04-1
ii  perl [libdigest-md5-perl]       5.14.2-17
ii  postfix [mail-transport-agent]  2.9.3-2.1
ii  samba-common-bin                2:3.6.6-5
ii  smbclient                       2:3.6.6-5
ii  tar                             1.26+dfsg-0.1
ii  ucf                             3.0025+nmu3

Versions of packages backuppc recommends:
ii  libfile-rsyncp-perl          0.70-1
ii  libio-dirent-perl            0.05-1
ii  openssh-client [ssh-client]  1:6.0p1-3
ii  rrdtool                      1.4.7-2
ii  rsync                        3.0.9-4

Versions of packages backuppc suggests:
ii  links2 [www-browser]    2.7-1
ii  lynx-cur [www-browser]  2.8.8dev.12-2
pn  par2                    <none>
ii  w3m [www-browser]       0.5.3-8

-- Configuration Files:
/etc/backuppc/apache.conf [Errno 13] Permission denied: 
u'/etc/backuppc/apache.conf'
/etc/backuppc/config.pl [Errno 13] Permission denied: u'/etc/backuppc/config.pl'
/etc/backuppc/hosts [Errno 13] Permission denied: u'/etc/backuppc/hosts'
/etc/backuppc/localhost.pl [Errno 13] Permission denied: 
u'/etc/backuppc/localhost.pl'

[I don't want to publish the whole configuration, but I can send most
of it to you in private or publish selected configuration values.]

-- debconf information:
* backuppc/configuration-note:
  backuppc/restart-webserver: true
* backuppc/reconfigure-webserver: apache2

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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to