Connection failed: ValueError too many values to unpack

Asked by Robert

I am getting this error:

Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend 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
Connection failed: ValueError too many values to unpack

Can you help me with debugging this issue? I am on Ubuntu 14.04. I had the latest package installed and was getting this error. I then uninstalled it and installed from source - 0.7.04 and the error persists.

I am using the following command:
duplicity --verbosity debug \
        --encrypt-key "$enc_key" \
        --sign-key "$sign_key" \
        --full-if-older-than 7D \
        --num-retries 3 \
        --asynchronous-upload \
        --volsize 10 \
         "${src}" "${dest}"

the src is a local drive and the destination is a swift container.

Thanks,
Robert

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Robert
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Whitehouse (aaron-whitehouse) said :
#1

Hi Robert,

Does a simple duplicity command work? For example:
cd /tmp
mkdir dup_test
cd dup_test
mkdir src
mkdir dest
echo "test" > src/test.txt
duplicity src/ file://dest/

If so, I'd start removing lines from your duplicity statement to try to isolate which argument is causing it to fail.

Revision history for this message
Robert (robert-beaupre) said :
#2

Hi Aaron,
It is the swift:// endpoint. The rest works with file://

Any ideas on what I can look for to debug this?

Thanks,
Robert

Revision history for this message
edso (ed.so) said :
#3

hey Robert,

please run with max. verbosity '-v9' and send/pastebin the full command line output. check if it contains information you deem private beforehand and obfuscate where necessary!

..ede/duply.net

Revision history for this message
Robert (robert-beaupre) said :
#4

env:
export SWIFT_USERNAME="tenant:email"
export SWIFT_PASSWORD="password"
export SWIFT_AUTHURL="https://domain:port/v2.0/tokens"
export SWIFT_AUTHVERSION="2"

# GnuPG
export PASSPHRASE="passphrase"
export SIGN_PASSPHRASE="passphrase"

command: duplicity -v9 --encrypt-key "xxxxxxx" --sign-key "xxxxxxxx" /vol swift://container_name

Output:
Using archive dir: /home/ubuntu/.cache/duplicity/af31656cdfa62dd4d3f0c032005b67f4
Using backup name: af31656cdfa62dd4d3f0c032005b67f4
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend 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
Connection failed: ValueError too many values to unpack
Using temporary directory /tmp/duplicity-V1Xdp4-tempdir

Revision history for this message
edso (ed.so) said :
#5

this output is _neither_ verbose nor _complete_. it lacks the error stack which i was looking for.

ede/duply.net

Revision history for this message
Robert (robert-beaupre) said :
#6

I understand that there isn't much verbosity there but I followed your directions - using -v9. I copied and pasted the entirety of the output.

Please tell me what to change and I will do it:

duplicity -v9 --encrypt-key "xxxxxxx" --sign-key "xxxxxxxx" /vol swift://container_name

Revision history for this message
Kenneth Loafman (kenneth-loafman) said :
#7

It may be coming from the python-swiftclient module. Have you updated that
recently? Try this:

$ pip show python-swiftclient

And post the results here.

On Mon, Sep 21, 2015 at 2:07 PM, Robert <
<email address hidden>> wrote:

> Question #271470 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/271470
>
> Robert gave more information on the question:
> I understand that there isn't much verbosity there but I followed your
> directions - using -v9. I copied and pasted the entirety of the output.
>
> Please tell me what to change and I will do it:
>
> duplicity -v9 --encrypt-key "xxxxxxx" --sign-key "xxxxxxxx" /vol
> swift://container_name
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~duplicity-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~duplicity-team
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Robert (robert-beaupre) said :
#8

pip show python-swiftclient
---
Name: python-swiftclient
Version: 2.6.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: futures, six, requests

Revision history for this message
edso (ed.so) said :
#9

smells like a swiftclient issue if max. verbosity does not produce a stack.

1. python-swiftclient 2.6 seems to be quite freshly released. can you try to downgrade to 2.5 and see if that changes anything?

2. shot in the dark, do you by any chance have a '=' in values you pass to swift? found this report about python django (yeah not duplicity)
 http://itanswers.xyz/question/27126924/valueerror-too-many-values-to-unpack-while-deploying-django-app-to-aws

..ede/duply.net

Revision history for this message
edso (ed.so) said :
#10

3. does the swift command line client work flawlessly?

..ede/duply.net

Revision history for this message
Robert (robert-beaupre) said :
#11

Thank you very much edso. It was #2 - it wasn't an '=' but a '-' or a '#'. Much appreciated.