WebDAV PROPFIND attempt #1 failed: 200

Asked by Tobias Wichtrey on 2011-04-17

I am using duplicity to backup my data via WEBDAV, which worked fine until recently. But now I keep getting this error:

WebDAV PROPFIND attempt #1 failed: 200

And this traceback:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1245, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1238, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1139, in main
    sync_archive()
  File "/usr/bin/duplicity", line 916, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.7/site-packages/duplicity/backends/webdavbackend.py", line 181, in list
    log.Info("%s" % (document,))
UnboundLocalError: local variable 'document' referenced before assignment

I am using duplicity 0.6.11 on an OpenSuse 11.4 system.

What can I do to continue my backups?

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
2011-04-17
Last reply:
2011-05-02

Same problem here with 0.6.13:

================================================

# /usr/bin/duplicity \
  --encrypt-key ${KEYID} \
  --sign-key ${KEYID} \
  --archive-dir /var/cache/duplicity \
  --exclude-globbing-filelist /etc/duplicity/exclude-list.cfg \
  --num-retries 5 \
  / \
  webdav://<email address hidden>:<email address hidden>/host/subdir

Reading globbing filelist /etc/duplicity/exclude-list.cfg
Traceback (most recent call last):
  File "/usr/bin/duplicity-2.7", line 1250, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity-2.7", line 1243, in with_tempdir
    fn()
  File "/usr/bin/duplicity-2.7", line 1144, in main
    sync_archive()
  File "/usr/bin/duplicity-2.7", line 919, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.7/site-packages/duplicity/backends/webdavbackend.py", line 181, in list
    log.Info("%s" % (document,))
UnboundLocalError: local variable 'document' referenced before assignment

================================================

Is it possibly related to the @ in the user name?

Here the output with verbosity=9

##################################################

Using archive dir: /var/cache/duplicity/ab656df5729abab979d79f2d2c50d2d6
Using backup name: ab656df5729abab979d79f2d2c50d2d6
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.giobackend Failed: No module named gio
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Using WebDAV host dav.disk.alice.de
Using WebDAV directory /host/subdir/
Using WebDAV protocol http
Reading globbing filelist /etc/duplicity/exclude-list.cfg
Main action: full
================================================================================
duplicity 0.6.13 (April 02, 2011)
Args: /usr/bin/duplicity full -v9 --encrypt-key 086924C3 --sign-key 086924C3 --archive-dir /var/cache/duplicity --exclude-globbing-filelist /etc/duplicity/exclude-list.cfg --num-retries 5 --volsize 200 --log-file /var/log/duplicity.log / webdav://mnagl\@alice.de:<email address hidden>/host/subdir
Linux host 2.6.37-hardened-r7 #1 SMP Sun May 1 10:19:09 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz
/usr/bin/python2.7 2.7.1 (r271:86832, Mar 30 2011, 10:22:03)
[GCC 4.4.4]
================================================================================
Using temporary directory /tmp/duplicity-XZsqVH-tempdir
Registering (mkstemp) temporary file /tmp/duplicity-XZsqVH-tempdir/mkstemp-H02dlV-1
Temp has 35921014784 available, backup will use approx 272629760.
Listing directory /host/subdir/ on WebDAV server
WebDAV PROPFIND attempt #1 failed: 200
Listing directory /host/subdir/ on WebDAV server
WebDAV PROPFIND attempt #2 failed: 200
Listing directory /host/subdir/ on WebDAV server
WebDAV PROPFIND attempt #3 failed: 200
Listing directory /host/subdir/ on WebDAV server
WebDAV PROPFIND attempt #4 failed: 200
Listing directory /host/subdir/ on WebDAV server
WebDAV PROPFIND attempt #5 failed: 200
Removing still remembered temporary file /tmp/duplicity-XZsqVH-tempdir/mkstemp-H02dlV-1
Traceback (most recent call last):
  File "/usr/bin/duplicity-2.7", line 1250, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity-2.7", line 1243, in with_tempdir
    fn()
  File "/usr/bin/duplicity-2.7", line 1144, in main
    sync_archive()
  File "/usr/bin/duplicity-2.7", line 919, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.7/site-packages/duplicity/backends/webdavbackend.py", line 181, in list
    log.Info("%s" % (document,))
UnboundLocalError: local variable 'document' referenced before assignment

edso (ed.so) said : #3

On 02.05.2011 14:16, Matthias Nagl wrote:
> Question #153143 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/153143
>
> Matthias Nagl posted a new comment:
> Same problem here with 0.6.13:
>
> ================================================
>
> # /usr/bin/duplicity \
> --encrypt-key ${KEYID} \
> --sign-key ${KEYID} \
> --archive-dir /var/cache/duplicity \
> --exclude-globbing-filelist /etc/duplicity/exclude-list.cfg \
> --num-retries 5 \
> / \
> webdav://<email address hidden>:<email address hidden>/host/subdir
>
> Reading globbing filelist /etc/duplicity/exclude-list.cfg
> Traceback (most recent call last):
> File "/usr/bin/duplicity-2.7", line 1250, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity-2.7", line 1243, in with_tempdir
> fn()
> File "/usr/bin/duplicity-2.7", line 1144, in main
> sync_archive()
> File "/usr/bin/duplicity-2.7", line 919, in sync_archive
> remlist = globals.backend.list()
> File "/usr/lib64/python2.7/site-packages/duplicity/backends/webdavbackend.py", line 181, in list
> log.Info("%s" % (document,))
> UnboundLocalError: local variable 'document' referenced before assignment
>
> ================================================
>
> Is it possibly related to the @ in the user name?
>

possible, try to use an encoded @ (%40) instead. e.g. user%40alice.de:<email address hidden>...

ede/duply.net

Thank you very much. This seems to solve the reported problem.

Strangely enough yesterday it worked with "@" on the same server :-o

edso (ed.so) said : #5

On 02.05.2011 16:43, Matthias Nagl wrote:
> Question #153143 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/153143
>
> Matthias Nagl proposed the following answer:
> Thank you very much. This seems to solve the reported problem.
>
> Strangely enough yesterday it worked with "@" on the same server :-o
>

maybe it is something totally unrelated to the @ sign. Could be that the servers are simply unreliably (at specific times)?

good luck ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Tobias Wichtrey for more information if necessary.

To post a message you must log in.