IndexError: list index out of range

Bug #1031435 reported by Tobi Schäfer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Duplicity version: 0.6.18
Python version: 2.7.3
OS Distro: Ubuntu 12.04
Filesystem: Linux

I am getting the error output below when using the following TARGET setting and invoking duply status:

TARGET='ssh://user:<email address hidden>/'

(Note: the ftp:// scheme works.)

# duply localhost status
Start duply v1.5.5.4, time is 2012-07-31 16:53:30.
Using profile '/etc/duply/localhost'.
Using installed duplicity version 0.6.18, python 2.7.3, gpg 1.4.11 (Home: ~/.gnupg), awk 'mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan', bash '4.2.24(1)-release (x86_64-pc-linux-gnu)'.
Autoset found secret key of first GPG_KEY entry '7242A51B' for signing.
Test - Encrypt to 7242A51B & Sign with 7242A51B (OK)
Test - Decrypt (OK)
Test - Compare (OK)
Cleanup - Delete '/tmp/duply.3394.1343746410_*'(OK)

--- Start running command STATUS at 16:53:31.072 ---
Using archive dir: /root/.cache/duplicity/duply_localhost
Using backup name: duply_localhost
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.u1backend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Using temporary directory /tmp/duplicity-rZI9jC-tempdir
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1403, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1396, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1247, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 999, in ProcessCommandLine
globals.backend = backend.get_backend(args[0])
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 158, in get_backend
return _backends[pu.scheme](pu)
File "/usr/lib/python2.7/dist-packages/duplicity/backends/sshbackend.py", line 138, in __init__
dirs[0]= '/' + dirs[0]
IndexError: list index out of range

16:53:33.717 Task 'STATUS' failed with exit code '30'.
--- Finished state FAILED 'code 30' at 16:53:33.717 - Runtime 00:00:02.645 ---

Revision history for this message
Daniel Schoepe (dschoepe) wrote :

It seems that this is caused by using an "empty" path on the server. I haven't tried duply, but `duplicity some-dir scp://some.host/' fails with the same error while `duplicity some-dir scp://some.host/path' doesn't.

Changed in duplicity:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Kenneth Loafman (kenneth-loafman)
milestone: none → 0.8.20
Changed in duplicity:
status: In Progress → Fix Committed
assignee: Kenneth Loafman (kenneth-loafman) → nobody
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

Remote bug watches

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