(copying from another similar thread this week - I'm betting this is your
problem):
Your ~/.s3cfg file has bucket_location = EU (which would be eu-west-1), but
your bucket is in eu-central-1. It fails the initial call because the
Authorization header has "EU" instead of "eu-central-1" in it. But it's a
new failure to me that we aren't handling properly (we should just fail at
this point; there's no new information we can get from the request). Then
we fall back to signature v2, and send the request, but that also then
fails, only this time it tells us that we sent the request to the wrong
region (see the x-amz-region header).
The simple solution is to put bucket_location = eu-central-1 into your
~/.s3cfg file, or use --region eu-central-1 on the command line. Trying to
keep a default of EU while really wanting requests to go to a different
region is what's screwing this up. And S3 doesn't tell us why it's a Bad
Request, as it normally does when sending a request to the wrong region.
:-( I think that's an S3 bug.
Thanks,
Matt
On Fri, Feb 20, 2015 at 2:01 PM, Puchparoch Vladimir <lumi...@mail.ru>
wrote:
> Hello,
>
> I try with master branch but it's same problem :
>
> INFO: Receiving file './test.text', please wait...
> DEBUG: get_hostname(toto-supplier-stock):
> toto-supplier-stock.s3.amazonaws.com
> DEBUG: ConnMan.get(): creating new connection:
> https://toto-supplier-stock.s3.amazonaws.com
> DEBUG: Using ca_certs_file None
> DEBUG: non-proxied HTTPSConnection(toto-supplier-stock.s3.amazonaws.com)
> DEBUG: format_uri(): /test.text
> DEBUG: Response: {'status': 400, 'headers': {'x-amz-id-2':
> '1tH3mSW2WOqndhNx72Y2wS5W7TNuarQtS+2ZwOsYivSv7DQqDu72FLRtSq5OPOH6R1XFLrzvris=',
> 'server': 'AmazonS3', 'transfer-encoding': 'chunked', 'connection':
> 'close', 'x-amz-request-id': '1037C2AA53593533', 'date': 'Fri, 20 Feb 2015
> 19:54:42 GMT', 'content-type': 'application/xml'}, 'reason': 'Bad Request'}
> DEBUG: Falling back to signature v2
> DEBUG: Using signature v2
> DEBUG: SignHeaders:
> 'GET\n\n\n\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nx-amz-date:Fri,
> 20 Feb 2015 19:54:42 +0000\n/toto-supplier-stock/test.text'
> INFO: Receiving file './test.text', please wait...
> DEBUG: get_hostname(toto-supplier-stock):
> toto-supplier-stock.s3.amazonaws.com
> DEBUG: ConnMan.get(): creating new connection:
> https://toto-supplier-stock.s3.amazonaws.com
> DEBUG: non-proxied HTTPSConnection(toto-supplier-stock.s3.amazonaws.com)
> DEBUG: format_uri(): /test.text
> DEBUG: Response: {'status': 400, 'headers': {'x-amz-region':
> 'eu-central-1', 'x-amz-id-2':
> 'UcGaObb9EW1uFzJ6FYtEVctRqAwNs6voU4XI32NfMkBj6xV/uPio17HkYPwLn5ixYwgIiFBXEVk=',
> 'server': 'AmazonS3', 'transfer-encoding': 'chunked', 'connection':
> 'close', 'x-amz-request-id': 'CD127B3624106377', 'date': 'Fri, 20 Feb 2015
> 19:54:43 GMT', 'content-type': 'application/xml'}, 'reason': 'Bad Request'}
> ERROR: S3 error: Unknown error
>
> Why it's signature v2 ? Normaly it's not a signature v4 ?
>
> Best regards
>
>
> Пятница, 20 февраля 2015, 8:41 -06:00 от Matt Domsch <m...@domsch.com>:
>
> Please run with --debug and report the results. There are a couple
> additional fixes on github.com/s3tools/s3cmd master branch which may be
> relevant too.
>
> Thanks,
> Matt
>
>
> On Fri, Feb 20, 2015 at 8:35 AM, Puchparoch Vladimir <lumi...@mail.ru
> <https://e.mail.ru/compose/?mailto=mailto%3alumi...@mail.ru>> wrote:
>
> Hello,
>
> When i try to download from franckfurt i have this problem :
>
> s3cmd get s3://isupplier-stock/test.text
> s3://supplier-stock/test.text -> ./test.text [1 of 1]
> s3://supplier-stock/test.text -> ./test.text [1 of 1]
> ERROR: S3 error: Unknown error
>
> For upload i dont have problem.
>
> Did you have any idea please ? For upload it's works.
>
> Best Regards
>
>
>
> --
> Puchparoch Vladimir
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> <https://e.mail.ru/compose/?mailto=mailto%3as3tools%2dgene...@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> <https://e.mail.ru/compose?To=s3tools%2dgene...@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
>
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general