Sorry, I need urgent help, please (because my users are uploading new images already so the situation get mixed):
By mistake we did use the wrong Access Key ID, hurray, good job
With the wrong key in the options we used the tool to move all attachments and images in gallery to S3 (with CloudFlare). But of course they are not there.
We did keep local copy, all images are still in /data + /internal_data
What is the safest way to switch back? I assume the addon did change something in the database (S3 flag?), because just turning the addon off does not solve the 404.
Yes, I saw this
https://xenforo.com/community/threads/bd-attachment-store-paid.49712/post-1174786, but since the images were not successfully moved I am unsure, what will work/is save. Try to avoid to delete local copy when moving back with "not existent" attachments from S3...
bdattachmentstore_engine and bdattachmentstore_options are all NULL in database in xf_attachment_data
@xfrocks @Jim Boy anybody, please?
As expected the file /internal_data/bdAttachmentStore_ShippableHelper_S3_makeRequest.log shows lots of errors because of the wrong authentification:
Code:
2017-11-29 07:35:28 PUT http://s3-eu-central-1.amazonaws.com:80/removed_for_post/2017/11/226125_fe1128c6822ee0c2fdd7b3e3e5467450.jpg array (
'Content-Type' => 'image/jpeg',
'x-amz-acl' => 'public-read',
'Expect' => '100-continue',
'x-amz-content-sha256' => '75aedef274c0eb19d22267fd9bb6c2d2f6c16ef81a27fa4bf4897e8f03648f83',
'x-amz-date' => '20171129T073528Z',
'Host' => 's3-eu-central-1.amazonaws.com',
'Authorization' => 'AWS4-HMAC-SHA256 Credential=removed_for_post/20171129/eu-central-1/s3/aws4_request,SignedHeaders=content-type;expect;host;x-amz-acl;x-amz-content-sha256;x-amz-date,Signature=removed_for_post',
'Content-type' => 'image/jpeg',
) -> 403 <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.</Message><AWSAccessKeyId>removed_for_post</AWSAccessKeyId><RequestId>ECC4FDCBEA7C6611</RequestId><HostId>/removed_for_post=</HostId></Error>