S3 Error with IAM Roles
-
I set up this plugin a long time ago using S3’s IAM Roles. And I’ve been able to use this plugin for months without problems.
But today I noticed that I can’t upload files to S3 using this plugin.
I confirmed that the following error message is displayed on the setting screen of this plugin.Error fetching buckets — Error retrieving credentials from the instance profile metadata service. (cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html))
My settings using IAM Roles worked fine with programs other than WordPress on the same server.
After I changed the authentication method for this plugin to a method that defines Access Keys in wp-config.php, it worked fine.My environment is as follows.
Table Prefix: wp_
WordPress: 5.5.1
Web Server: nginx/1.14.0
PHP: 7.2.24-0ubuntu0.18.04.3
MySQL: 5.7.30
ext/mysqli: yes
PHP Memory Limit: 128M
WP Memory Limit: 40M
Memory Usage: 10 MB
Blocked External HTTP Requests: None
WP Locale: ja
Organize offloads by month/year: Enabled
WP_DEBUG: No
WP_DEBUG_LOG: No
WP_DEBUG_DISPLAY: Yes
SCRIPT_DEBUG: No
WP Max Upload Size: 2 MB
PHP Time Limit: 14400
PHP Error Log:
WP Cron: Enabled
fsockopen: Enabled
allow_url_fopen: Enabled
OpenSSL: OpenSSL 1.1.1 11 Sep 2018
cURL: 7.58.0
Zlib Compression: Enabled
PHP GD: 2.2.5
Imagick: Enabled
Basic Auth: Enabled
Proxy: DisabledMedia Files: 4,128
Offloaded Media Files: 174
Not Offloaded Media Files: 3,954Number of Image Sizes: 6
Names and Dimensions of Image Sizes:
thumbnail (150×150)
medium (300×300)
large (1024×1024)
1536×1536 (1536×1536)
2048×2048 (2048×2048)WP_CONTENT_DIR: /home/corporate-legal/corporate-legal/public/wp-content
WP_CONTENT_URL: https://www.corporate-legal.jp/wp-content
UPLOADS: Not defined
WP_PLUGIN_DIR: /home/corporate-legal/corporate-legal/public/wp-content/plugins
WP_PLUGIN_URL: https://www.corporate-legal.jp/wp-content/pluginsAS3CF_PROVIDER: Not defined
AS3CF_BUCKET: Not defined
AS3CF_REGION: Not defined
AS3CF_SETTINGS: Defined
AS3CF_SETTINGS Keys: access-key-id, provider, secret-access-keyLocal URL:
https://www.corporate?legal.jp/wp?content/uploads/2020/09/photo.jpg
Offload URL:
https://corporate?legal.s3.ap?northeast?1.amazonaws.com/wp?content/uploads/2020/09/07164231/photo.jpgOME Metadata Version: 8
Storage Provider: Amazon S3
Use Server Roles: Off
Key File Path: N/A
Access Keys Set: Yes
Access Key ID Define: Not defined
Secret Access Key Define: Not definedBucket: corporate-legal
Region: ap-northeast-1
Block All Public Access: DisabledCopy Files to Bucket: On
Enable Path: On
Custom Path: wp-content/uploads/
Use Year/Month: On
Object Versioning: OnDelivery Provider: Amazon S3
Rewrite Media URLs: OnForce HTTPS: Off
Remove Files From Server: Off
Active Theme Name: corporate-legal
Active Theme Version: 0.1
Active Theme Folder: corporate-legalActive Plugins:
AdRotate (v5.8.7) by Arnan de Gans
AddQuicktag (v2.5.3) by Frank Bültge
Akismet Anti-Spam (v4.1.6) by Automattic
All In One SEO Pack (v3.7.0) by All in One SEO Team
Auto Featured Image (Auto Post Thumbnail) (v3.7.5) by Creativemotion
Breadcrumb NavXT (v6.5.0) by John Havlik
Broken Link Checker (v1.11.14) by WPMU DEV
Change wp-admin login (v1.0.0) by Nuno Morais Sarmento
Classic Editor (v1.6) by WordPress Contributors
Contact Form 7 (v5.2.2) by Takayuki Miyoshi
Corporate Legal Seminar API Package (v0.1) by K.Tanaka in Changing,LLC.
Custom Post Type UI (v1.8.0) by WebDevStudios
Easy Disable Visual Editor (v1.0) by Matt Martz
Feedly Insight (v0.9.17 beta) by hayashikejinan
Gravity Forms (v2.4.20) by Gravity Forms
Jetpack by WordPress.com (v8.9) by Automattic
Optimize Database after Deleting Revisions (v5.0) by CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
PS Auto Sitemap (v1.1.9) by Hitoshi Omagari
Pixabay Images (v3.4) by Simon Steinberger
Redirection (v4.8) by John Godley
Remove Widget Titles (v1.0) by Stephen Cronin
Search Regex (v2.2.1) by John Godley
Simple Local Avatars (v2.1.1) by Jake Goldman, 10up
Simple Wp Sitemap (v1.2.1) by Webbjocke
WP Fastest Cache (v0.9.1.0) by Emre Vona
WP Fastest Cache Premium (v1.3.1) by Emre Vona
WP Mail SMTP (v2.3.1) by WPForms
WP Multibyte Patch (v2.9) by 倉石 政典
WP Offload Media Lite (v2.4.3) by Delicious Brains
WP Robots Txt (v1.1) by Christopher Davis
WP Total Hacks (v4.7.2) by Takayuki Miyauchi
WP Updates Notifier (v1.6.0) by Scott Cariss
WP Webhooks (v2.0.6) by Ironikus
WPFront User Role Editor (v2.14.4) by Syam Mohan
WordPress Popular Posts (v5.2.4) by Hector Cabrera
- The topic ‘S3 Error with IAM Roles’ is closed to new replies.