TritonDataCenter / python-manta

Python SDK for Manta (community maintained)
MIT License
25 stars 18 forks source link

InvalidSignature on `ls` #2

Closed trentm closed 4 years ago

trentm commented 11 years ago

This from John Shuping:

With the InvalidSignature error, below are a few more datapoints. BTW I'm still running code from commit SHA 21d600d, but will upgrade soon and retry these steps.

100% repro with this:

$ rm -r enron
^C
$ ls
mantash: ERROR: (InvalidSignature) The signature we calculated does not match the one you sent (/home/john/python-manta/lib/manta/client.py:223 in list_directory2)

50% repro with this (half the time it works, half the time it fails)

$ find enron
…
^C
$ ls # sometimes ok, sometimes InvalidSignature
jshuping commented 11 years ago

Scratch the '100% repro' on the rm -r, I was able to get the subsequent 'ls' to work one time. I am emailing you the debug logs of a working case and 2 failing cases right now. Thanks!

trentm commented 11 years ago

@jshuping Do you use an ssh-agent?

Your logs show that the failing 'ls' is re-using a signature (for the "Authorization" header) from the last request (the ListDirectory). The Date header being signed has changed however, so the signature is invalid.

I don't yet see in the mantash code path where this is happening. Also I cannot reproduce.

I've added an extra log statement to try to narrow it down a little bit more. If you get a chance: please update to the latest in git, repro with '-d' and send me the failing log again.

Thanks.