Listing of 'default' failed on swift using preauth with hubic API

Bug #1327077 reported by Kartoch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Invalid
Undecided
Unassigned

Bug Description

I'm doing my backup on OVH Hubic service, I've written a small script to set the shell variables
SWIFT_PREAUTHURL and SWIFT_PREAUTHTOKEN. The full backup is ok but finish with the error when duplicity tries to list the default container (see log below). It seems it could be an error from one side or another. How can i print the messages exchanged ?

Duplicity version: duplicity 0.6.24 (May 09, 2014)
Python version: /usr/bin/python2 2.7.6 (default, Feb 26 2014, 12:07:17)
OS Distro and version: latest archlinux
Type of host filesystem: Linux
Type of remote filesystem: swift with preauth

(the following log is the end of a succerssful backup)

AsyncScheduler: running task synchronously (asynchronicity disabled)
Uploading 'default/duplicity-full.20140605T150159Z.vol108.difftar.gpg'
Deleting /tmp/duplicity-IvcICt-tempdir/mktemp-6KKYr2-109
AsyncScheduler: task completed successfully
Processed volume 108
Uploading 'default/duplicity-full-signatures.20140605T150159Z.sigtar.gpg'
Deleting /home/kartoch/.cache/duplicity/documents/duplicity-full-signatures.20140605T150159Z.sigtar.gpg
Uploading 'default/duplicity-full.20140605T150159Z.manifest.gpg'
Deleting /home/kartoch/.cache/duplicity/documents/duplicity-full.20140605T150159Z.manifest.gpg
Listing 'default'
Listing of 'default' failed (attempt 1): ValueError: No JSON object could be decoded
Listing 'default'
Listing of 'default' failed (attempt 2): ValueError: No JSON object could be decoded
Listing 'default'
Listing of 'default' failed (attempt 3): ValueError: No JSON object could be decoded
Listing 'default'
Listing of 'default' failed (attempt 4): ValueError: No JSON object could be decoded
Listing 'default'
Listing of 'default' failed (attempt 5): ValueError: No JSON object could be decoded
Giving up listing of 'default' after 5 attempts
Backend error detail: Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1502, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1496, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1345, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1466, in do_backup
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 558, in full_backup
    col_stats.set_values(sig_chain_warning=None)
  File "/usr/lib/python2.7/site-packages/duplicity/collections.py", line 674, in set_values
    backend_filename_list = self.backend.list()
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 429, in list
    return map(tobytes, self._list())
  File "/usr/lib/python2.7/site-packages/duplicity/backends/swiftbackend.py", line 154, in _list
    % (self.container))
BackendException: Error listing 'default'

BackendException: Error listing 'default'

Revision history for this message
Michael Ott (michaelott) wrote :

I had similar issues with your script on Fedora 20. It turned out that python-swiftclient was not handling the gzip content-encoding properly. The same behavior can be reproduced by using the command line swift client:
# swift --os-storage-url=$SWIFT_PREAUTHURL --os-auth-token=$SWIFT_PREAUTHTOKEN list default

There is already a bug report along with a solution:
https://bugs.launchpad.net/python-swiftclient/+bug/1282861

That did it for me..

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

See comment #1 -- not a duplicity issue

Changed in duplicity:
status: New → Invalid
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.