#23402: duplicity: OverflowError: signed integer is greater than maximum -----------------------------------+---------------------------------------- Reporter: trejkaz@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: -----------------------------------+---------------------------------------- Running duplicity to restore a backup, I reliably get this error at the same file every try, whether I run as a normal user or as root: {{{ bernkastel:Recovered Morden trejkaz$ sudo duplicity restore --no- encryption scp://trejkaz@192.168.1.100//raid/backups/morden ./root ... Error '[Errno 1] Operation not permitted: 'root/var/lib/nfs/etab'' processing var/lib/nfs/etab Error '[Errno 1] Operation not permitted: 'root/var/lib/nfs/rmtab'' processing var/lib/nfs/rmtab Error '[Errno 1] Operation not permitted: 'root/var/lib/nfs/rpc_pipefs'' processing . Error '[Errno 1] Operation not permitted: 'root/var/lib/nfs/sm/.keep_net- fs_nfs-utils-0'' processing var/lib/nfs/sm/.keep_net-fs_nfs-utils-0 Traceback (most recent call last): File "/opt/local/bin/duplicity", line 1236, in <module> with_tempdir(main) File "/opt/local/bin/duplicity", line 1229, in with_tempdir fn() File "/opt/local/bin/duplicity", line 1183, in main restore(col_stats) File "/opt/local/bin/duplicity", line 538, in restore restore_get_patched_rop_iter(col_stats)): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/patchdir.py", line 520, in Write_ROPaths ITR(ropath.index, ropath) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/lazy.py", line 329, in __call__ if self.finish_branches(index) is None: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/lazy.py", line 276, in finish_branches to_be_finished.call_end_proc() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/lazy.py", line 366, in call_end_proc robust.check_common_error(self.on_error, self.end_process) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/robust.py", line 38, in check_common_error return function(*args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/patchdir.py", line 560, in end_process self.dir_diff_ropath.copy_attribs(self.dir_new_path) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/path.py", line 435, in copy_attribs util.maybe_ignore_errors(lambda: os.chown(other.name, self.stat.st_uid, self.stat.st_gid)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/util.py", line 62, in maybe_ignore_errors return fn() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/duplicity/path.py", line 435, in <lambda> util.maybe_ignore_errors(lambda: os.chown(other.name, self.stat.st_uid, self.stat.st_gid)) OverflowError: signed integer is greater than maximum bernkastel:~ trejkaz$ }}} This effectively prevents restoring backups, making duplicity a write-only backup solution. :-D I have commented out the call to os.chown as a workaround. There are mentions around the net that there was a Python bug like this, but the version being run is newer than the version in which it was fixed. -- Ticket URL: <http://trac.macports.org/ticket/23402> MacPorts <http://www.macports.org/> Ports system for Mac OS