literalice / gradle-aws-s3-sync

The gradle task for synchronizing a local directory with a AWS S3 bucket.
37 stars 23 forks source link

Worked for a long time, now I'm getting SignatureDoesNotMatch #29

Open nedtwigg opened 5 years ago

nedtwigg commented 5 years ago

Thanks very much for this plugin! It's served me well for a very long time - steady and stable :)

Of my 3 uploading tasks, 2 are now failing, while 1 continues to work. The error message is

org.jets3t.service.ServiceException: Service Error Message. -- ResponseCode: 403, ResponseStatus: Forbidden, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>REDACTED</AWSAccessKeyId><StringToSign>PUTbinary/octet-streamThu, 28 Mar 2019 15:13:07 GMTx-amz-acl:public-readx-amz-meta-jets3t-original-file-date-iso8601:2019-03-28T14:43:32.000Z/docs.diffplug.com/2.0.2/assets/</StringToSign><SignatureProvided> REDACTED

I'm baffled because:

I think my best option is try a different plugin and see if that fixes anything. My only guess is that AWS deprecated something and because jets3t hasn't updated in a long time there's some mismatch. Just leaving this here for others who might bump into the same thing.

mhuebner commented 3 years ago

Might be related to: https://github.com/mondain/jets3t/issues/4