Front page

does obnam change file system permissions?

19026f8028024775ba123b598d589059
BEDLAMP AFTERMATH GREMLIN

From: Christian Hoefer <ch.hoefer@gmx.de>
Date: Thu, 14 Jul 2016 15:03:05 +0200

   I use a very simple obnam setup: USB attached HDD, one repository with 
   one client in it, no encryption
   It worked well for some month.
   Now it exits with write permission error at random points in the 
   beginning phase, typically any lock file.
   
   log sample:
   
    > 2016-07-14 12:15:18 DEBUG Initializing Journal for clientlist
    > 2016-07-14 12:15:18 DEBUG Automatically rolling back remaining changes
    > 2016-07-14 12:15:19 DEBUG LRUCache <larch.lru.LRUCache object at 
   0x7fb37f4d6050>: hits=0 misses=2
    > 2016-07-14 12:15:19 DEBUG LRUCache <larch.lru.LRUCache object at 
   0x7fb37f4d6c50>: hits=3 misses=2
    > 2016-07-14 12:15:19 DEBUG opening repository (create=False)
    > 2016-07-14 12:15:19 DEBUG Initializing Journal for clientlist
    > 2016-07-14 12:15:19 DEBUG Not committing/rolling back since read-only
    > 2016-07-14 12:15:19 DEBUG Initializing Journal for 12189116981377346669
    > 2016-07-14 12:15:19 DEBUG Not committing/rolling back since read-only
    > 2016-07-14 12:16:20 CRITICAL Traceback (most recent call last):
    >   File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 190, in 
   _run
    >     self.process_args(args)
    >   File "/usr/lib/python2.7/dist-packages/obnamlib/app.py", line 175, 
   in process_args
    >     cliapp.Application.process_args(self, args)
    >   File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 539, in 
   process_args
    >     method(args[1:])
    >   File 
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py", 
   line 287, in backup
    >     self.repo.lock_shared()
    >   File "/usr/lib/python2.7/dist-packages/obnamlib/repo.py", line 385, 
   in lock_shared
    >     self.lockmgr.lock(self.shared_dirs)
    >   File "/usr/lib/python2.7/dist-packages/obnamlib/lockmgr.py", line 
   81, in lock
    >     self._lock_one(dirname)
    >   File "/usr/lib/python2.7/dist-packages/obnamlib/lockmgr.py", line 
   68, in _lock_one
    >     raise obnamlib.LockFail('Lock timeout: %s' % lock_name)
    > LockFail: Lock timeout: chunks/lock
   
   
   
   The file modes and umask lock as usual. I can delete the remaining lock 
   files manually. But the problem persists with the next run.
   Can anyone help?
   
   Thanks
   Chris
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: Lars Wirzenius <liw@liw.fi>
Date: Thu, 14 Jul 2016 20:12:12 +0300

   On Thu, Jul 14, 2016 at 03:03:05PM +0200, Christian Hoefer wrote:
   > The file modes and umask lock as usual. I can delete the remaining lock
   > files manually. But the problem persists with the next run.
   > Can anyone help?
   
   In the log file snippet you posted, there was nothing to indicate this
   is due to Obnam changing file permissions. My guess is the problem is
   that the previous run of Obnam crashes for some reason and leaves a
   lock file behind. Do you have a log file from a previous run?