Forum

Thread tagged as: Problem, Error, Runway

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

Rene Vogt

Rene Vogt 1 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Could you post your diagnostic report?

here we go:

Perch information

Perch Runway: 3.0
Production mode: Production (100)
Installed apps: content (3.0), assets (3.0), categories (3.0), perch_forms (1.9), perch_shop_orders (1.1), perch_shop_products (1.1), perch_shop (1.1), perch_members (1.6)
DB driver: PDO
DB tables: perch2_backup_plans (1), perch2_backup_resources (61), perch2_backup_runs (75), perch2_categories (6), perch2_category_counts (0), perch2_category_sets (2), perch2_collection_index (0), perch2_collection_items (1), perch2_collection_revisions (1), perch2_collections (0), perch2_content_index (1115), perch2_content_items (125), perch2_content_locks (0), perch2_content_regions (16), perch2_forms (1), perch2_forms_responses (0), perch2_members (3), perch2_members_forms (1), perch2_members_member_tags (3), perch2_members_sessions (5), perch2_members_tags (3), perch2_menu_items (13), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (4), perch2_page_templates (33), perch2_pages (21), perch2_resource_log (239), perch2_resource_tags (0), perch2_resources (51), perch2_resources_to_tags (0), perch2_scheduled_tasks (10), perch2_settings (29), perch2_shop_addresses (18), perch2_shop_admin_index (30), perch2_shop_brands (1), perch2_shop_cart (231), perch2_shop_cart_data (18), perch2_shop_cart_items (9), perch2_shop_countries (250), perch2_shop_currencies (148), perch2_shop_customers (7), perch2_shop_emails (1), perch2_shop_index (15514), perch2_shop_option_values (0), perch2_shop_options (0), perch2_shop_order_items (4), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (2), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (0), perch2_shop_product_options (0), perch2_shop_product_tags (0), perch2_shop_products (243), perch2_shop_promotions (0), perch2_shop_search (243), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (1), perch2_shop_tax_exhibits (6), perch2_shop_tax_group_rates (1), perch2_shop_tax_groups (1), perch2_shop_tax_locations (1), perch2_shop_tax_rates (1), perch2_shop_variants (0), perch2_user_passwords (0), perch2_user_privileges (70), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
    $apps_list = [ 
        'perch_forms',
        'perch_members',
        'perch_shop',
    ];
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins: ckeditor, markitup
H1: 9ea45c6e6a9151c738fc6b2f2bc9e817
L1: b0fff3243b1d648df9b41b536b16f883
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
content_collapseList: 1
content_frontend_edit: 1
content_hideNonEditableRegions: 0
content_singlePageEdit: 1
dashboard: 0
headerColour: #f9c623
headerScheme: light
helpURL:
hideBranding: 0
hide_pwd_reset: 0
lang: dede2
latest_version:
logoPath: /perch/resources/logo-lb.png
on_sale_version:
perch_members_login_page: /members/login.php?r={returnURL}
perch_members_update: 1.4
perch_shop_default_currency: 44
perch_shop_invoice_number_format: 17-%d
perch_shop_price_tax_mode: inc
perch_shop_product_url: /veranstaltungen/{slug}
perch_shop_reporting_currency: 44
perch_shop_site_url: https://ferienspass-ludwigsburg.de
perch_shop_trade_price_tax_mode: inc
perch_shop_update: 1.0.12
siteOffline: 0
siteURL: /
update_2.8.34: done
update_runway_2.8.34: done
update_runway_3.0: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /mnt/web023/d0/78/5477578/htdocs/ferienspass
PERCH_SCHEDULE_SECRET: bxretSldmuLwekpf
PERCH_DB_USERNAME: XXX
PERCH_DB_SERVER: XXX
PERCH_DB_DATABASE: XXX
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: rv@r-grafik.de
PERCH_EMAIL_FROM_NAME: Rene Vogt
PERCH_LOGINPATH: /perch
PERCH_PATH: /mnt/web023/d0/78/5477578/htdocs/ferienspass/perch
PERCH_CORE: /mnt/web023/d0/78/5477578/htdocs/ferienspass/perch/core
PERCH_RESFILEPATH: /mnt/web023/d0/78/5477578/htdocs/ferienspass/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/Berlin
PERCH_RWD: 1
PERCH_GMAPS_API_KEY: XXXXX
PERCH_RUNWAY: 1
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: c4c70b856b16830782ef
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /mnt/web023/d0/78/5477578/htdocs/ferienspass/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SHOP_VERSION: 1.1
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 7.0.16
Zend: 3.0.0
OS: SunOS
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.52
MySQL server: 5.6.35-log
Free disk space: 0.00 B
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dbase, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, id3, idn, session, json, lzf, mailparse, mbstring, mcrypt, ming, mysql, mysqli, pcntl, standard, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, yats, zip, cgi-fcgi, Zend OPcache
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 76M
PHP memory limit: 256M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
REMOTE_ADDR: 2003:6:114d:8943:cd39:96bb:3395:4689
HTTP_HOST: ferienspass-ludwigsburg.de
TZ: MET
PHP_FCGI_MAX_REQUESTS: 100
PHP_FCGI_CHILDREN: 12
PHP_FCGI_STARTUP_REQUESTS: 2
PHP_FCGI_CACHE: 1
DOCUMENT_ROOT: /home/strato/http/premium/rid/75/78/5477578/htdocs
SCRIPT_FILENAME: /home/strato/http/premium/rid/75/78/5477578/htdocs/ferienspass/perch/core/settings/diagnostics/index.php
PHPRC: /home/strato/http/premium/rid/75/78/5477578/htdocs/ferienspass/
PHP_FCGI_IDLE: 1
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 53164
SERVER_ADMIN: service@webmailer.de
SERVER_PORT: 443
SERVER_NAME: ferienspass-ludwigsburg.de
SERVER_SOFTWARE: Apache/2.2.31 (Unix)
PATH: /usr/bin:/bin
HTTP_CONNECTION: close
HTTP_COOKIE: p_m=f77a7bdf1595632a575dfebfb3884a6cc5703a01; cmsa=1; PHPSESSID=ohk9cq6aoq42unvmconj06r6m6; _pk_id.4.51e7=81ce467594aa93b2.1490395710.18.1490901346.1490898595.; _pk_ses.4.51e7=*
HTTP_ACCEPT_LANGUAGE: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch, br
HTTP_REFERER: https://ferienspass-ludwigsburg.de/perch/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
RZ_php: 70
HTTPS: on
SCRIPT_URI: https://ferienspass-ludwigsburg.de/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
RZ_path: web023/d0/78/5477578
RZ_a: :fcgi=1:media:php=70:forcessl=301:crt=743023:tpl=strato-standard:Rproxy:Cpremium:quota=122880MB:
RZ_n: 5477578
UNIQUE_ID: WN1ZpMCoKC0AACs2074AAAG9
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1490901412.9188
REQUEST_TIME: 1490901412
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is your buckets.php still in place?

yeah, it’s still in perch > config

Drew McLellan

Drew McLellan 2638 points
Perch Support

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.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Leave it with me, I'll do some investigation.

Thanks Drew, I appreciate your support – even in the evening.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me the entry from your buckets.php file?

It should have options set for:

  • type
  • region
  • web_path
  • file_path