Bug 13972 - Missing require in duplicity to use ssh/sftp
Summary: Missing require in duplicity to use ssh/sftp
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA4-32-OK MGA4-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-08-22 14:25 CEST by Nicolas Pomarède
Modified: 2019-12-03 11:16 CET (History)
6 users (show)

See Also:
Source RPM: duplicity-0.6.22-4
CVE:
Status comment:


Attachments

Description Nicolas Pomarède 2014-08-22 14:25:28 CEST
Description of problem:

When trying to sync files with duplicity on a remote server using sftp or ssh protocol, there's an error :

eg : duplicity test_dir ssh://user@some_ip/backup/duplicity

Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
BackendException: Could not initialize backend: No module named paramiko

The import of dropbox is harmless if you don't use dropbox in the url.
But the lack of paramiko module prevents from using ssh/sftp and duplicity will exit.

Installing python-paramiko manually solves the problem.

As duplicity already requires openssh-client, a require for "python-paramiko" should be added too.

Problem might be present too in cauldron version 0.6.24

Reproducible: 

Steps to Reproduce:
Comment 1 Philippe Makowski 2014-08-22 15:47:11 CEST
Advisory:
========================

Updated duplicity  package to fix a missing dependency:

the lack of paramiko module prevents from using ssh/sftp and duplicity will exit.

References:
https://bugs.mageia.org/show_bug.cgi?id=13972
========================

Updated packages in core/updates_testing:
========================
duplicity-0.6.22-5.mga4

Assignee: makowski.mageia => qa-bugs

Comment 2 Rémi Verschelde 2014-08-23 13:54:31 CEST
Does that fix the bug for you Nicolas?

I tried it but I seem to hit a paramiko bug: https://github.com/paramiko/paramiko/issues/220
It might also be that I'm not using duplicity correctly though.

$ duplicity test_dir ssh://akien@git.mageia.org/web/hugs/
Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
The authenticity of host 'git.mageia.org' can't be established.
SSH-RSA key fingerprint is ad:34:4d:3f:37:73:91:51:9b:af:80:ce:e9:d6:2a:a4.
Are you sure you want to continue connecting (yes/no)? yes
BackendException: ssh connection to akien@git.mageia.org:22 failed: 'SSHClient' object has no attribute 'known_hosts'

CC: (none) => remi
Whiteboard: (none) => has_procedure

Rémi Verschelde 2014-08-23 13:54:39 CEST

Whiteboard: has_procedure => (none)

Comment 3 Nicolas Pomarède 2014-08-25 11:59:23 CEST
Under mageia4, installing python-paramiko fixes the problem.

I also removed all packages from main and installed duplicity-0.6.22-5.mga4.i586.rpm from core / update_testing and it correctly installed python-paramiko. Backups with duplicity worked correctly.

for #2, I think your problem is more related to ssh and your keys on the remote host than to duplicity itself, I don't have this error message.

For me, rpm can go from testing to main update.

BTW, I see cauldron suggests python-dropbox. Maybe it could be added to mageia4 too ? It's not really a bug fix, but I guess dropbox is often used as a backup media and mageia 4 doesn't have the python-dropbox rpm.
Rémi Verschelde 2014-08-25 12:05:20 CEST

Whiteboard: (none) => MGA4-32-OK

Comment 4 Samuel Verschelde 2014-09-04 10:47:27 CEST
In mga4 64, installing is fine, pulls the needed deps, and rpmdiff shows there's no other change than that added dep, so validating.

CC: (none) => stormi
Whiteboard: MGA4-32-OK => MGA4-32-OK MGA4-64-OK validated_update

Samuel Verschelde 2014-09-04 10:48:13 CEST

Whiteboard: MGA4-32-OK MGA4-64-OK validated_update => MGA4-32-OK MGA4-64-OK
CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 5 Rémi Verschelde 2014-09-05 18:37:12 CEST
Advisory uploaded.

Whiteboard: MGA4-32-OK MGA4-64-OK => MGA4-32-OK MGA4-64-OK advisory

Comment 6 Mageia Robot 2014-09-07 11:56:46 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2014-0169.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 play game 2019-07-06 08:03:31 CEST Comment hidden (spam)

CC: (none) => pikachu17997

Dave Hodgins 2019-07-06 08:21:51 CEST

CC: (none) => davidwhodgins

trace win 2019-12-03 11:16:19 CET

CC: (none) => tracewin


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