No internet connection
  1. Home
  2. Support

Local export success, exporting to S3 fails

By Ebin Issac @ebin2019-07-03 13:38:44.218Z

Whenever I try to export to S3, it fails with the below error:

Failed during "Deploying files to S3", please consult the Help tab for where to get assistance.

However, the permissions in S3 is correctly set, and the upload test is always successful. Apache error logs shows this :

[Wed Jul 03 21:28:11.037718 2019] [proxy_fcgi:error] [pid 4083:tid 140687097857792] [client] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: Exception: BAD RESPONSE STATUS FROM API (403) in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/WP2Static/SitePublisher.php:2\nStack trace:\n#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/deployers/S3.php(2): WP2Static_SitePublisher->checkForValidResponses(403, Array)\n#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/deployers/S3.php(2): WP2Static_S3->put_s3_object('2017/01/20/how-...', '<?xml version="...', 'text/html')\n#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/deployers/S3.php(2): WP2Static_S3->upload_files()\n#3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/deployers/S3.php(8): WP2Static_S3->__construct()\n#4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/static-html-output-plugin/plugin/WP2Static/Dispatcher.php(2): require_once('/opt/bitnam...', referer:

In Chrome developer tools, network tab, it shows the below message before failure:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Now, If I export it to a directory in the local server, it is success. So where do I start troubleshooting this ?

  • 2 replies
  1. D
    Dan @dan27052020-03-06 14:18:14.113Z

    Same problem here - permissions validated and test successful. Also seeing the 500 error in console.
    Ebin - were you able to resolve the issue?

    1. In reply toebin:
      Leon Stafford @leonstafford2020-03-11 06:15:24.669Z

      False positive on the S3 test in V6.

      Early alpha build of V7 works with S3 + CloudFront and worth a try: