rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Problems with file permissions (was: Network error?


From: Ralph Lehmann
Subject: [rdiff-backup-users] Problems with file permissions (was: Network error?)
Date: Mon, 09 Jul 2007 10:31:46 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.0

Hi Andrew!

Andrew Ferguson schrieb:
> Mikkel Høgh wrote:

>> Once in a while, it just breaks, spewing my e-mail with the attached
>> error, and it has me wondering. Only way I've managed to fix it is by
>> removing the backup files from the backup server and starting anew
>> with a (multi-gigabyte) full backup.
> 
> Mikkel,
> 
> I have just fixed this bug in CVS (what will become rdiff-backup
> 1.1.12). Until backupninja upgrades to the latest version, a workaround
> is to use the --force option with --check-destination-dir.

After including the three new files from CVS I've a permission problem
now with the mirror-metadata files on Cygwin:
----------------------------------------------------------------------
address@hidden ~/test/bar/rdiff-backup-data
$ ls -l
total 44
-rw-------  1 Administrator Kein 13502 Jul  9 09:01 backup.log
-rw-------  1 Administrator Kein    15 Jul  8 18:31 chars_to_quote
-rw-------  1 Administrator Kein     9 Jul  9 09:01
current_mirror.2007-07-09T09;05801;05828+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  8 18:31
error_log.2007-07-08T18;05831;05821+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  8 18:31
error_log.2007-07-08T18;05831;05835+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  8 18:31
error_log.2007-07-08T18;05831;05846+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  8 18:31
error_log.2007-07-08T18;05831;05856+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  9 09:01
error_log.2007-07-09T09;05801;05806+02;05800.data
-rw-------  1 Administrator Kein     0 Jul  9 09:01
error_log.2007-07-09T09;05801;05828+02;05800.data
-rw-------  1 Administrator Kein   205 Jul  8 18:31
file_statistics.2007-07-08T18;05831;05821+02;05800.data.gz
-rw-------  1 Administrator Kein   207 Jul  8 18:31
file_statistics.2007-07-08T18;05831;05835+02;05800.data.gz
-rw-------  1 Administrator Kein   208 Jul  8 18:31
file_statistics.2007-07-08T18;05831;05846+02;05800.data.gz
-rw-------  1 Administrator Kein   209 Jul  8 18:31
file_statistics.2007-07-08T18;05831;05856+02;05800.data.gz
-rw-------  1 Administrator Kein   209 Jul  9 09:01
file_statistics.2007-07-09T09;05801;05806+02;05800.data.gz
-rw-------  1 Administrator Kein   209 Jul  9 09:01
file_statistics.2007-07-09T09;05801;05828+02;05800.data.gz
drwx------+ 2 Administrator Kein     0 Jul  9 09:01 increments
-rwxr-xr-x  1 Administrator Kein     0 Jul  8 18:30
increments.2007-07-08T18;05831;05821+02;05800.dir
-rwxr-xr-x  1 Administrator Kein     0 Jul  8 18:31
increments.2007-07-08T18;05831;05835+02;05800.dir
-rwxr-xr-x  1 Administrator Kein     0 Jul  8 18:31
increments.2007-07-08T18;05831;05846+02;05800.dir
-rwxr-xr-x  1 Administrator Kein     0 Jul  8 18:31
increments.2007-07-08T18;05831;05856+02;05800.dir
-rwxr-xr-x  1 Administrator Kein     0 Jul  9 09:00
increments.2007-07-09T09;05801;05806+02;05800.dir
-rw-------  1 Administrator Kein   259 Jul  8 18:31
mirror_metadata.2007-07-08T18;05831;05821+02;05800.diff.gz
-rw-------  1 Administrator Kein   259 Jul  8 18:31
mirror_metadata.2007-07-08T18;05831;05835+02;05800.diff.gz
-rw-------  1 Administrator Kein   259 Jul  8 18:31
mirror_metadata.2007-07-08T18;05831;05846+02;05800.diff.gz
----------  1 Administrator Kein   258 Jul  9 09:01
mirror_metadata.2007-07-08T18;05831;05856+02;05800.diff.gz
----------  1 Administrator Kein   260 Jul  9 09:01
mirror_metadata.2007-07-09T09;05801;05806+02;05800.diff.gz
----------  1 Administrator Kein   263 Jul  9 09:01
mirror_metadata.2007-07-09T09;05801;05828+02;05800.snapshot.gz
-rw-------  1 Administrator Kein  5449 Jul  9 09:03 restore.log
-rw-------  1 Administrator Kein   462 Jul  8 18:31
session_statistics.2007-07-08T18;05831;05821+02;05800.data
-rw-------  1 Administrator Kein   470 Jul  8 18:31
session_statistics.2007-07-08T18;05831;05835+02;05800.data
-rw-------  1 Administrator Kein   470 Jul  8 18:31
session_statistics.2007-07-08T18;05831;05846+02;05800.data
-rw-------  1 Administrator Kein   470 Jul  8 18:31
session_statistics.2007-07-08T18;05831;05856+02;05800.data
-rw-------  1 Administrator Kein   470 Jul  9 09:01
session_statistics.2007-07-09T09;05801;05806+02;05800.data
-rw-------  1 Administrator Kein   470 Jul  9 09:01
session_statistics.2007-07-09T09;05801;05828+02;05800.data
---------------------------------------------------------------
Note that nobody have any permission on
mirror_metadata.2007-07-08T18;05831;05846+02;05800.diff.gz
mirror_metadata.2007-07-08T18;05831;05856+02;05800.diff.gz
mirror_metadata.2007-07-09T09;05801;05806+02;05800.diff.gz

now.

Regular users cannot longer backup their own files:
---------------------------------------------------------------
address@hidden ~/test
$ rdiff-backup -v9 -b foo/ bar/
Mon Jul  9 09:58:11 2007  Unable to import module xattr.
Extended attributes not supported on filesystem at foo
Mon Jul  9 09:58:11 2007  Unable to import module posix1e from pylibacl
package.
ACLs not supported on filesystem at foo
Mon Jul  9 09:58:11 2007  escape_dos_devices required by filesystem at foo
Mon Jul  9 09:58:11 2007
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Escape DOS devices                           On
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Mon Jul  9 09:58:11 2007  Making directory
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/:\ á"%
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/A
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/a
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/foo
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/foo
Mon Jul  9 09:58:11 2007  Making directory
bar/rdiff-backup-data/rdiff-backup.tmp.0/hl
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
Mon Jul  9 09:58:11 2007  Hard linking
bar/rdiff-backup-data/rdiff-backup.tmp.0/hl/hardlinked_file2 to
bar/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
Mon Jul  9 09:58:11 2007  Unable to import module xattr.
Extended attributes not supported on filesystem at
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007  Unable to import module posix1e from pylibacl
package.
ACLs not supported on filesystem at bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/regfile
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/regfile
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/high_perms
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/high_perms
Mon Jul  9 09:58:11 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file2
Mon Jul  9 09:58:11 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
Mon Jul  9 09:58:11 2007  escape_dos_devices required by filesystem at
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007  Deleting bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007  Removing directory
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 09:58:11 2007
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Symlink permissions                          Off
  Extended filenames                           Off
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             Off
  Escape DOS devices                           On
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Mon Jul  9 09:58:11 2007  Backup: must_escape_dos_devices = 1
Mon Jul  9 09:58:11 2007  Previous backup seems to have failed,
regressing destination now.
Mon Jul  9 09:58:11 2007  Regressing to Mon Jul  9 09:21:00 2007
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in <module>
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line
319, in Main
    take_action(rps)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line
275, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line
332, in Backup
    backup_final_init(rpout)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line
432, in backup_final_init
    checkdest_if_necessary(rpout)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line
827, in checkdest_if_necessary
    dest_rp.conn.regress.Regress(dest_rp)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/regress.py", line
71, in Regress
    for rf in iterate_meta_rfs(mirror_rp, inc_rpath): ITR(rf.index, rf)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/regress.py", line
195, in iterate_meta_rfs
    collated = rorpiter.Collate2Iters(raw_rfs, yield_metadata())
  File "/usr/lib/python2.5/site-packages/rdiff_backup/regress.py", line
181, in yield_metadata
    metadata_iter = metadata.ManagerObj.GetAtTime(regress_time)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/metadata.py", line
505, in GetAtTime
    cur_iter = self.get_meta_at_time(time, restrict_index)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/metadata.py", line
628, in get_meta_at_time
    for rp in self.relevant_meta_incs(time)]
  File "/usr/lib/python2.5/site-packages/rdiff_backup/metadata.py", line
379, in __init__
    self.fileobj = self.rp.open("rb", compress)
  File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line
1033, in open
    if compress: return GzipFile(self.path, mode)
  File "/usr/lib/python2.5/gzip.py", line 95, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 13] Permission denied:
'bar/rdiff-backup-data/mirror_metadata.2007-07-09T09;05821;05800+02;05800.snapshot.gz'
--------------------------------------------------------------------------------------

On Slackware, backup fails too:
--------------------------------------------------------------------------------------
Mon Jul  9 10:27:01 2007  Unable to import module xattr.
Extended attributes not supported on filesystem at foo
Mon Jul  9 10:27:01 2007  Unable to import module posix1e from pylibacl
package.
ACLs not supported on filesystem at foo
Mon Jul  9 10:27:01 2007  escape_dos_devices not required by filesystem
at foo
Mon Jul  9 10:27:01 2007
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             On
  Escape DOS devices                           Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Mon Jul  9 10:27:01 2007  Making directory
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/:\ ᄉ
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/:\ ᄉ
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/A
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/A
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/foo
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/foo
Mon Jul  9 10:27:01 2007  Making directory
bar/rdiff-backup-data/rdiff-backup.tmp.0/hl
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
Mon Jul  9 10:27:01 2007  Hard linking
bar/rdiff-backup-data/rdiff-backup.tmp.0/hl/hardlinked_file2 to
bar/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
Mon Jul  9 10:27:01 2007  Unable to import module xattr.
Extended attributes not supported on filesystem at
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007  Unable to import module posix1e from pylibacl
package.
ACLs not supported on filesystem at bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/regfile
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/regfile
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/high_perms
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/high_perms
Mon Jul  9 10:27:01 2007  Touching
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file2
Mon Jul  9 10:27:01 2007  Deleting
bar/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
Mon Jul  9 10:27:01 2007  escape_dos_devices not required by filesystem
at bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007  Deleting bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007  Removing directory
bar/rdiff-backup-data/rdiff-backup.tmp.0
Mon Jul  9 10:27:01 2007
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Symlink permissions                          Off
  Extended filenames                           On
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             On
  Escape DOS devices                           Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Mon Jul  9 10:27:01 2007  Backup: must_escape_dos_devices = 0

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 23, in ?
    rdiff_backup.Main.Main(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
319, in Main
    take_action(rps)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
275, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
332, in Backup
    backup_final_init(rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
432, in backup_final_init
    checkdest_if_necessary(rpout)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
823, in checkdest_if_necessary
    need_check = checkdest_need_check(dest_rp)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line
794, in checkdest_need_check
    curmir_incs = restore.get_inclist(curmirroot)
  File "/usr/lib/python2.4/site-packages/rdiff_backup/restore.py", line
43, in get_inclist
    basename = FilenameMapping.unquote(basename)
  File
"/usr/lib/python2.4/site-packages/rdiff_backup/FilenameMapping.py", line
104, in unquote
    return unquoting_regexp.sub(unquote_single, path)
AttributeError: 'NoneType' object has no attribute 'sub'
------------------------------------------------------------------------

ciao Ralph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]