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 10.20.1.201:51390] 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: http://10.20.1.247/wp-admin/admin.php?page=wp2static

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 ?

  • 0 replies