FPoff's picture

My Wordpress appliance has been backing up fine until three days ago... then I noticed no backups so tried to do one manually and recevied the following error: 

root@wordpress /# tklbam-backup
Traceback (most recent call last):
  File "/usr/bin/tklbam-backup", line 366, in <module>
  File "/usr/bin/tklbam-backup", line 311, in main
    b = backup.Backup(conf, registry.profile, credentials, resume=opt_resume)
  File "/usr/lib/tklbam/backup.py", line 159, in __init__
    self._create_extras(extras_paths, profile_paths, conf)
  File "/usr/lib/tklbam/backup.py", line 113, in _create_extras
  File "/usr/lib/tklbam/backup.py", line 94, in _write_whatchanged
    changes = whatchanged(dirindex, paths)
  File "/usr/lib/tklbam/changes.py", line 240, in whatchanged
    changes += [ Change.Overwrite(path) for path in new + edited ]
  File "/usr/lib/tklbam/changes.py", line 72, in __init__
    self.uid = self.stat.st_uid
  File "/usr/lib/tklbam/changes.py", line 47, in stat
    self._stat = os.lstat(self.path)
OSError: [Errno 2] No such file or directory: '/var/spool/postfix/defer/C/C99AC4AF0A'
I tried the advice from this post, which didn't work: http://www.turnkeylinux.org/forum/support/20120202/back-failed-no-such-f...
I restored a snapshot from the last time a backup worked, but I'm still getting the same problem. I can restore an even earlier backup, but that would mean loosing quite a bit of work going to a snapshot that is a week old. 
If anyone has some ideas on what could be going wrong, or how to provide more data on the error it would be greatly appreciated. 
Jeremy Davis's picture

I would have thought that clearing the TKLBAM cache would have made it work out what files needed to be backed up again thus eliminating the issue of it trying to back up files/folders that no longer exist (the folder that it seems to be erroring on is a unsent/deferred email cache).

But I do know that TKLBAM was recently upgraded so you could try ugrading to the new version:

apt-get update && apt-get install tklbam*

And see how that goes...

Another thing that perhaps you could try is adding an override for that location (i.e. exclude it - see the TKLBAM docs). Although it will mean that if unsent mail exists in that folder it will never be backed up...

Add new comment