Vietyank
(Dennis Gray)
April 8, 2022, 3:49am
1
I created a filestore for an S3 backup. I have verified the keys are correct using the ass s3api but I get the following error from freePBX
```
SignatureDoesNotMatch
```
The request signature we calcul (truncated…) SignatureDoesNotMatch (client): The request signature we calculated does not match the signature you provided. Check your key and signing method. -
SignatureDoesNotMatch
I believe the signing method comes from the freePBX API call
I have read several discussions on different forums. If it is a problem with the clock, I haven’t found a solution.
If the key is wrong, there is a clear error message stating that the key cannot be found in their records.
jfinstrom
(James Finstrom)
April 8, 2022, 4:18pm
2
This uses PHP league flysystem
opened 07:33PM - 22 Jul 17 UTC
closed 07:43AM - 08 Oct 18 UTC
Hello,
I am having an issue where it appears the signing of requests is eithe… r not working correctly or not using v4.
Whenever I try to retrieve or store an object I am getting an S3Exception.
```
Error executing "ListObjects" on "https://s3.us-east-2.amazonaws.com/my.bucket.name?prefix=slide%2F4%2F&delimiter=%2F&encoding-type=url"; AWS HTTP error: Client error: `GET https://s3.us-east-2.amazonaws.com/my.bucket.name?prefix=slide%2F4%2F&delimiter=%2F&encoding-type=url` resulted in a `403 Forbidden` response:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calcul (truncated...)
SignatureDoesNotMatch (client): The request signature we calculated does not match the signature you provided. Check your key and signing method. - <?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>AKIAJMH6XEYVX2K2FL3Q</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256
20170722T190031Z
20170722/us-east-2/s3/aws4_request
```
Here is a simple route that is generating this error:
```php
Route::get('/a', function () {
return Storage::disk('s3')->put('here/f.txt', 'hi my name is bob');
});
```
My bucket is in us-east-2 and I have an IAM user set up with the credentials in the config file.
Please let me know if you have any information about this.
Thank you,
Zach
Looks like possible clock issue
Vietyank
(Dennis Gray)
April 8, 2022, 8:48pm
3
This is a VM on Digitalocean
Timezone is Asia,/Phnom_Penh
Hardware clock is UTC
Vietyank
(Dennis Gray)
April 11, 2022, 1:50am
4
Does anybody have any more ideas about this?
jfinstrom
(James Finstrom)
April 11, 2022, 4:05pm
5
Sorry I went on a long weekend.
Make sure your clock is set correctly. If you are “in the future” or “in the past” it may cause issues. This is nothing set by FreePBX and there are no open bugs on the library. The only thing FreePBX sets is endpoint, credentials and bucket. Everything else is the library’s default.
Vietyank
(Dennis Gray)
April 11, 2022, 4:18pm
6
My clock is set correctly as far as I can see. I do have the timezone set to ICT
Vietyank
(Dennis Gray)
April 11, 2022, 4:50pm
7
[root@freepbx monitor]# hwclock Mon 11 Apr 2022 04:47:38 PM +07 -0.750900 seconds [root@freepbx monitor]# date Mon Apr 11 23:47:41 +07 2022
jfinstrom
(James Finstrom)
April 11, 2022, 5:04pm
8
for giggles make sure php is in line with those:
php -r 'echo date("r");'
Let me double check versions to see if there are any super old bugs with the library
jfinstrom
(James Finstrom)
April 11, 2022, 5:10pm
9
Vietyank:
SignatureDoesNotMatch
opened 09:39AM - 26 Oct 20 UTC
closed 05:39PM - 26 Oct 20 UTC
Hi
Since yesterday we are getting this error "SignatureDoesNotMatch" when tr… ying to upload files to Digital Ocean Spaces.
It may be related to time change from Summer time to Winter time!?
Does anyone know what it can be? And how to fix it?!
Thanks in advance.
This is the only other person who has a report of this on the library and it revolves around paths
Vietyank
(Dennis Gray)
April 11, 2022, 5:41pm
10
[root@freepbx monitor]# date;php -r 'echo date("r");' Tue Apr 12 00:38:40 +07 2022 Tue, 12 Apr 2022 00:38:40 +0700[root@freepbx monitor]#
Same same
I may take this to the AWS community
system
(system)
Closed
May 12, 2022, 5:41pm
11
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.