rsync server IP not parsed correctly from commandline

Bug #1400115 reported by MarkZ
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

My System: Arch linux x86_64

Using 0.6.24 (on arch linux): everything works fine
using 0.7.0-1 the rsync-server IP is not parsed correctly to 'None'

e.g.:

[woody@lappi ~]$ sudo /usr/bin/duplicity collection-status -vd rsync://root@192.168.2.1::Backup/woody
[sudo] password for woody:
Benutze Archiv-Verzeichnis: /root/.cache/duplicity/7fc41e482dbe017d49c1aaf578c35b4d
Benutze Sicherungs-Namen: 7fc41e482dbe017d49c1aaf578c35b4d
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Hauptaufgabe: collection-status
================================================================================
duplicity 0.7.0 (October 23, 2014)
Args: /usr/bin/duplicity collection-status -vd rsync://root@192.168.2.1::Backup/woody
Linux lappi 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64
/usr/bin/python2 2.7.8 (default, Sep 24 2014, 18:26:21)
[GCC 4.9.1 20140903 (prerelease)]
================================================================================
Lese Ergebnisse von 'rsync None::Backup/woody/'
Backtrace of previous error: Traceback (innermost last):
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 368, in inner_retry
    return fn(self, *args)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 567, in list
    return [tobytes(x) for x in self.backend._list()]
  File "/usr/lib/python2.7/site-packages/duplicity/backends/rsyncbackend.py", line 127, in _list
    result, stdout, stderr = self.subprocess_popen(commandline)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 488, in subprocess_popen
    (private, result, stdout + '\n' + stderr))
 BackendException: Error running 'rsync None::Backup/woody/': returned 10, with output:

rsync: getaddrinfo: None 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.1]

Attempt 1 failed. BackendException: Error running 'rsync None::Backup/woody/': returned 10, with output:

rsync: getaddrinfo: None 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.1]

^CReleasing lockfile <LinkLockFile: '/root/.cache/duplicity/7fc41e482dbe017d49c1aaf578c35b4d/lappi.43994204920714514438984' -- '/root/.cache/duplicity/7fc41e482dbe017d49c1aaf578c35b4d/lockfile'>
Benutze temporäres Verzeichnis /tmp/duplicity-_ieCL9-tempdir
INT abgefangen...beende.
[woody@lappi ~]$

Revision history for this message
Jens Kadenbach (ubuntu-dax) wrote :

This problem was introduced here: http://bazaar.launchpad.net/~duplicity-team/duplicity/0.7-series/revision/981?remember=1033#duplicity/backend.py

If you put "rsync" back in the uses_netloc list, it works again.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.01
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.