Forum
Perch 3: error with Backup to S3
Hi there,
after Upgrading a site to Runway 3 perch doesn’t write the Backup on the AWS S3. I followed the upgrade instruction and deleted the app from config > apps.php and also updated the perch/config/runway.php:
'amazon_s3' => [
'access_key_id' => 'XXXXXXXX',
'secret_access_key' => 'XXXXXXXX',
'handler' => 'PerchS3_ResourceBucket',
'handler_path' => PERCH_CORE.'/runway/apps/perch_s3/PerchS3_ResourceBucket.class.php',
],
a look on my PHP log file gives me back the following error logs:
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] PHP Fatal error: Uncaught InvalidArgumentException: Missing required client configuration options:
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] in /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/ClientResolver.php:350
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] Stack trace:
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] #0 /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/ClientResolver.php(246): Aws\\ClientResolver->throwRequired(Array)
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] #1 /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/AwsClient.php(151): Aws\\ClientResolver->resolve(Array, Object(Aws\\HandlerList))
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] #2 /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/S3/S3Client.php(243): Aws\\AwsClient->__construct(Array)
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] #3 /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/AwsClient.php(315): Aws\\S3\\S3Client->__construct(Array)
30.03.2017 20:30:24 ferienspass-ludwigsburg.de [client 2003:6:1100::] #4 /xxx/ferienspass/perch/core/runway/apps/perch_s3/PerchS3_ResourceBucket.class.php(24): Aws\\Aws in /xxx/ferienspass/perch/core/runway/apps/perch_s3/lib/aws/aws-sdk-php/src/ClientResolver.php on line 350
Anyone knows a solution?
Thanks
Could you post your diagnostic report?
here we go:
Is your
buckets.php
still in place?yeah, it’s still in perch > config
Have there been any other changes other than upgrading the software?
No, I just followed the instructions here on the site and didn’t make any other changes. Everything went very smooth and fast without any problems :) – except the backup on AWS.
The last successful backup was yesterday before I made the update.
Leave it with me, I'll do some investigation.
Thanks Drew, I appreciate your support – even in the evening.
Can you show me the entry from your
buckets.php
file?It should have options set for: