BackupPC-users

Re: [BackupPC-users] Incremental dumps hanging with 'Can't get rsync digests' & 'Can't call method "isCached"'

2008-10-27 04:02:02
Subject: Re: [BackupPC-users] Incremental dumps hanging with 'Can't get rsync digests' & 'Can't call method "isCached"'
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: "backuppc-users AT lists.sourceforge DOT net" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 27 Oct 2008 04:00:27 -0400
Craig Barratt wrote at about 00:46:47 -0700 on Monday, October 27, 2008:
 > Jeffrey writes:
 > 
 > > Can't call method "isCached" on an undefined value at
 > >   /usr/share/BackupPC/lib/BackupPC/Xfer/RsyncFileIO.pm line 165.
 > 
 > That isn't good.  This is the case where it is doing a random check
 > of the cached checksums (based on $Conf{RsyncCsumCacheVerifyProb}).
 > I am missing an error check just prior to this line of code.   An
 > error will occur if there is some problem open/reading the cached
 > checksum information.  A possible cause might be some file system
 > corruption.
 > 
 > I'd be curious what the error is.  Just prior to this line
 > you could add this code:
 > 
 >     if ( $err ) {
 >         $fio->log("Can't get rsync digests from $attr->{fullPath}"
 >                 . " (err=$err, name=$f->{name})");
 >         $fio->{stats}{errorCnt}++;
 >         return -1;
 >     }
 > 
 > Alternatively, just set $Conf{RsyncCsumCacheVerifyProb} to 0.  This
 > code will be skipped, and I suspect it will fail further down and
 > there is an error check there.  Seeing the error number would be
 > helpful.
 > 
 > I would also try removing the --checksum-seed=32761 option from
 > $Conf{RsyncArgs} and trying the backup again.  This will disable
 > the use of cached checksums.
 > 
 > Craig

Interesting -- I ended up having to reboot (which of course required a
restart of the backuppc service) and the problem went away.

This is the second time this has happened to me.
I suspect (in a fuzzy type of way) that somehow this may have been
caused by my rebooting the nfs server (which is mounted on
/var/lib/BackupPC) without doing something like restarting the
backuppc service - the result was that for some time there may have
been a stale nfs link hanging around and it is possible that this
occurred during the middle of a backup. I also may have killed the
BackupPC_dump process using 'kill -9' when I was unable to kill it
from the web interface.

I wish I could replicate this better so I could confirm the
cause/effect here but I have definitely been doing a lot of
starting/stopping of both nfs and backuppc as I learn and get it set
up.

Still... it would be nice to get some type of email or other warning
when a backup freezes up because conceivably one could be unaware of
this issue for days...

I will keep your troubleshooting patch in mind and will use it next
time I see this problem.

THANKS!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>