• Resolved jthNET

    (@jthnet)


    Hi. I have a problem between development and production. On local development, I can use the plugin to post and delete content from the media library, and it uploads to S3 as expected, and deletes as expected.

    When moving to production, I’m unable to figure out why deletes fail with a 500 error from the server. I’ve checked permissions locally, against recommended settings several times. I’m presuming that permissions on S3 are correct, since I’m able to delete from development.

    On the development environment, I’m using a EC2 instances, running the AMI – Amazon Linux 2. I’m using an access key tied to an account which is a member of a group, which has the permissions attached. I’m using this same access key and bucket for both development and production.

    I have another site, which runs this same plugin, but uses a role attached to the EC2 instance, and the AMI is Amazon Linux (not 2). It is able to delete thru to the S3 bucket.

    I’m grateful for any suggestions anyone may have. I’ve been reviewing this configuration for the last week. Clearly I’m overlooking something. Hopefully, someone else has come across this problem. Thanks for reviewing!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jthNET

    (@jthnet)

    Correction: The EC2 instance running Amazon Linux 2 is in production environment (not dev). Thought I had proofed this thoroughly last night.

    Thread Starter jthNET

    (@jthnet)

    Any ideas? Could I be missing a library? It seems unlikely a permission problem, since I am able to delete files when this plugin is not enabled in production.

    From what I’ve read, Amazon Linux 2 is a more basic platform than the previous edition, requiring the addition of more extras or libraries.

    Thread Starter jthNET

    (@jthnet)

    Well, this is bizarre, and embarrassing. After trying to enable WP_DEBUG settings, the problem disappeared. During that process, I found two calls for WP_DEBUG, and removed one of them. I tested with debug on, and then off, and all works now. (shrug)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What could prevent delete from S3 from succeeding?’ is closed to new replies.