Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569972 - app-backup/obnam-1.18.2 operations to sftp:// repository fail
Summary: app-backup/obnam-1.18.2 operations to sftp:// repository fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-28 14:01 UTC by Martin Dummer
Modified: 2015-12-28 22:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dummer 2015-12-28 14:01:56 UTC
With app-backup/obnam-1.18.2 it is not possible any more to backup to an sftp:// target (at least, I did not test other configurations). Other operations like "generations" "ls" etc, fail with the same messages

martin@bln9716n ~ $ obnam --config /home/martin/.obnam.bln9716w.conf ls
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/cliapp/app.py", line 190, 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/lib64/python2.7/site-packages/cliapp/app.py", line 567, in process_args
    method(args[1:])
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/show_plugin.py", line 233, in ls
    self.traverse(self.show_hdr_ls, self.show_item_ls, args)
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/show_plugin.py", line 184, in traverse
    self.open_repository()
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/show_plugin.py", line 92, in open_repository
    clients = self.repo.get_client_names()
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_fmt_6.py", line 149, in get_client_names
    return self._client_list.list_clients()
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/clientlist.py", line 78, in list_clients
    if self.init_forest() and self.forest.trees:
  File "/usr/lib64/python2.7/site-packages/obnamlib/fmt_6/repo_tree.py", line 63, in init_forest
    allow_writes=allow_writes)
  File "/usr/lib64/python2.7/site-packages/larch/forest.py", line 199, in open_forest
    check_size('key_size', key_size, BadKeySize)
  File "/usr/lib64/python2.7/site-packages/larch/forest.py", line 193, in check_size
    if keyname not in ns.get_metadata_keys():
  File "/usr/lib64/python2.7/site-packages/larch/nodestore_disk.py", line 167, in get_metadata_keys
    self._load_metadata()
  File "/usr/lib64/python2.7/site-packages/larch/nodestore_disk.py", line 148, in _load_metadata
    data = self.journal.cat(self.metadata_name)
  File "/usr/lib64/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 91, in cat
    data = self.fs.cat(filename)
  File "/usr/lib64/python2.7/site-packages/obnamlib/plugins/sftp_plugin.py", line 558, in cat
    f.prefetch()
TypeError: prefetch() takes exactly 2 arguments (1 given)


After some research, I found this problem described on
https://aur.archlinux.org/packages/obnam/

"paramiko-1.16.0 appears to break this pacakge.

...

Documentation confirms this:
http://docs.paramiko.org/en/1.15/api/sftp.html
http://docs.paramiko.org/en/1.16/api/sftp.html
"

I also had dev-python/paramiko-1.16.0 on my system, after downgrading to dev-python/paramiko-1.15.4 I can backup to a sftp:// repository again


There is a also a patch referred, but I did not check it.

"Patch for obnam to workaround this:
https://gist.github.com/kylemanna/cc951490b992050f86ac "
Comment 1 Marc Schiffbauer gentoo-dev 2015-12-28 16:54:46 UTC
Hi Martin,

please test the new -r1 ebuild and let me know if this fixes the issue.

I applied the patch you mentioned in the bug.
Comment 2 Martin Dummer 2015-12-28 22:56:59 UTC
Hello Marc,

app-backup/obnam-1.18.2-r1 and dev-python/paramiko-1.16.0 work well together.
I Will close this bug and continue to backup to sfto://<my_home_server>....
THX for the quick response!