Bug 1351760 - obnam fails: TypeError: prefetch() takes exactly 2 arguments (1 given)
Summary: obnam fails: TypeError: prefetch() takes exactly 2 arguments (1 given)
Keywords:
Status: CLOSED DUPLICATE of bug 1279916
Alias: None
Product: Fedora
Classification: Fedora
Component: obnam
Version: 24
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-30 18:38 UTC by James Patterson
Modified: 2016-07-03 07:26 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-03 07:26:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description James Patterson 2016-06-30 18:38:32 UTC
Description of problem:
All of my backups are now in fail mode because of a change in the Paramiko library which the Fedora version of obnam is not compatible with.

So this is very urgent!

Version-Release number of selected component (if applicable):
obnam-1.17-2.fc24.x86_64

Related: http://distix.obnam.org/obnam-dev/e21786a47a674589abdcee9b03f811da.html
Related: https://aur.archlinux.org/packages/obnam/

Additional info:
00h00m01s 0 files 0 B scanned: adding clientTraceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 189, in _run
    self.process_args(args)
  File "/usr/lib64/python2.7/site-packages/obnamlib/app.py", line 207, in process_args
    cliapp.Application.process_args(self, args)
  File "/usr/lib/python2.7/site-packages/cliapp/app.py", line 589, in process_args
    method(args[1:])
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/backup_plugin.py", line 163, in backup
    self.start_backup()
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/backup_plugin.py", line 202, in start_backup
    self.prepare_repository_for_client()
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/backup_plugin.py", line 229, in prepare_repository_for_client
    self.add_client(self.client_name)
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/backup_plugin.py", line 349, in add_client
    self.repo.lock_client_list()
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_fmt_6.py", line 125, in lock_client_list
    self._raw_lock_client_list()
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_fmt_6.py", line 111, in _raw_lock_client_list
    self._client_list.start_changes()
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_tree.py", line 84, in start_changes
    self.init_forest(allow_writes=True)
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_tree.py", line 63, in init_forest
    allow_writes=allow_writes)
  File "/usr/lib/python2.7/site-packages/larch/forest.py", line 199, in open_forest
    check_size('key_size', key_size, BadKeySize)
  File "/usr/lib/python2.7/site-packages/larch/forest.py", line 193, in check_size
    if keyname not in ns.get_metadata_keys():
  File "/usr/lib/python2.7/site-packages/larch/nodestore_disk.py", line 167, in get_metadata_keys
    self._load_metadata()
  File "/usr/lib/python2.7/site-packages/larch/nodestore_disk.py", line 148, in _load_metadata
    data = self.journal.cat(self.metadata_name)
  File "/usr/lib/python2.7/site-packages/larch/journal.py", line 162, in cat
    return self.fs.cat(filename)
  File "/usr/lib64/python2.7/site-packages/obnamlib/repo_fs.py", line 58, in cat
    data = self.fs.cat(filename)
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py", line 588, in cat
    f.prefetch()
TypeError: prefetch() takes exactly 2 arguments (1 given)

Comment 1 Michel Lind 2016-07-03 06:40:06 UTC
Thanks for the heads up, will push a fix ASAP

Comment 2 Michel Lind 2016-07-03 07:26:52 UTC
The release candidate currently in testing includes the fix for this; releasing

*** This bug has been marked as a duplicate of bug 1279916 ***


Note You need to log in before you can comment on or make changes to this bug.