BackupPC-users

Re: [BackupPC-users] Was BackupPC_trashClean ever fixed not to hog CPU

2009-11-18 16:22:32
Subject: Re: [BackupPC-users] Was BackupPC_trashClean ever fixed not to hog CPU
From: "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 18 Nov 2009 16:19:44 -0500
Jeffrey J. Kosowsky wrote at about 15:39:44 -0500 on Wednesday, November 18, 
2009:
 > In the past, people have mentioned that sometimes BackupPC_trashClean
 > seems to get hung and hog almost 100% of CPU.
 > 
 > This is quite insidious since what apparently happens is that when
 > trashClean has trouble removing a file(s), it just continues to loop
 > through trying.
 > 
 > However, no error message is posted to the log or the web
 > interface. In my case, it seems that this had been going on for days
 > without any warning.
 > 
 > Also, Craig mentioned in the past that this could be due to permission
 > error and suggested running "sudo -u backuppc rm -rv trash/*" to
 > check. Well in my case, the 'rm' succeeded suggesting that the problem
 > may lie elsewhere.
 > 
 > But again, I think there are two issues that need to be fixed:
 > 1. trash_Clean should not be allowed to go into a tight endless loop
 > (I think Craig had mentioned inserting a wait in the loop but not sure
 > if it ever was done)
 > 2. Also, errors in trash removal should be logged and added to the
 > regular email error messages that are sent out.
 > 

Let me take some of the above back.
Looking at the code for BackupPC_trashClean I see that it runs every 5
minutes and it does log on failure.

However, in my case, it seems to somehow have gotten 'stuck'. The last
log for trashClean was 9 days ago and just gave the startup message:
        2009-11-09 22:38:11 Running BackupPC_trashClean (pid=17217)
So, somehow it was running for the last 9 days but neither removed the
trash nor logged an error. And hogged almost all my cpu usage.

Restarting backuppc, seems to have removed everything in 'trash' and
fixed the problem at least for now -- but not sure what went wrong to
cause this.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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>