• Resolved danrancan

    (@danrancan)


    I posted an issue on github. Hopefully you guys check that. In any event, My S3 is connected via WP Offload Media, However, when uploading media to wordpress, no file ever reach amazon S3. Here is the debug log. Also, please check my github bug post for much more detailed information.

    DEBUG:
    [04-Jan-2022 04:52:38 UTC] AS3CF: Error offloading /var/www/mcmo.is/wp-content/uploads/2022/01/www.McMo_.is-landing-page-video-background-UHD-30fps-Shortented.m4v to provider: Error executing "PutObject" on "https://myvideostorage-s3-bucket.s3.us-east-2.amazonaws.com/wp-content/uploads/2022/01/03225237/www.McMo_.is-landing-page-video-background-UHD-30fps-Shortented.m4v"; AWS HTTP error: Client error:PUT https://myvideostorage-s3-bucket.s3.us-east-2.amazonaws.com/wp-content/uploads/2022/01/03225237/www.McMo_.is-landing-page-video-background-UHD-30fps-Shortented.m4vresulted in a400 Bad Request` response:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <Error><Code>AccessControlListNotSupported</Code><Message>The bucket does not all (truncated…)
    AccessControlListNotSupported (client): The bucket does not allow ACLs – <?xml version=”1.0″ encoding=”UTF-8″?>
    <Error><Code>AccessControlListNotSupported</Code><Message>The bucket does not allow ACLs</Message><RequestId>3GMWC852C208YTJ9</RequestId><HostId>43tODY4U6d5OPazlRY8VoGBLPoJXx0zrLB64vJlssn+xSzOjqYsXXLwlTpgSg7pOjjAEZjV7ITs=</HostId></Error>`

    • This topic was modified 2 years, 10 months ago by danrancan.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Delicious Brains

    (@deliciousbrains)

    Amazon S3 introduced a new “Object Ownership” setting in the bucket permissions late last year.

    From the error message it looks like the bucket’s Object Ownership has been set to “ACLs disabled”, but Block All Public Access is not turned on.

    With Block All Public Access turned off, WP Offload Media needs to be able to set ACLs on the objects it offloads so that it can make objects private or public as needed.

    If you’re not ready to use Block All Public Access, then you’ll need to set the bucket’s “Object Ownership” to “ACLs enabled” in the bucket’s “Permissions” tab.

    If you are using CloudFront and prepared to use Block All Public Access, you can follow our guide to enable it and keep ACLs disabled.

    https://deliciousbrains.com/wp-offload-media/doc/cloudfront-setup/#block-public-access

    If a bucket is created and managed via WP Offload Media then this kind of error will not happen, it only happens with manually created buckets that now default to ACLs disabled, or where the bucket’s permissions or Block All Public Access status have been manually changed.

    -IJ

    Thread Starter danrancan

    (@danrancan)

    If a bucket is created and managed via WP Offload Media then this kind of error will not happen, it only happens with manually created buckets that now default to ACLs disabled, or where the bucket’s permissions or Block All Public Access status have been manually changed.

    This last part helped tremendously. I guess I must have made a mistake in the tutorial for WP offload media, and somehow didn’t create a bucket within wordpress, but instead used S3 to create the bucket, thus leading me to a lack of proper permissions/acls/etc.

    After slowly walking myself through the tutorial laid out on the documentation, i managed to get it working. I must have just missed a step in the tutorial. Now it all works fine. Thank you for the long explanation! This really helped me understand things!

    Plugin Author Delicious Brains

    (@deliciousbrains)

    Excellent, glad you got it all working.

    There’s a good chance that in a future release we’ll put in some checks for the new settings to try and help debug this kind of thing. There’s some wrinkles in the way you get that sort of information unfortunately, so we’ll have to see what we can do.

    -IJ

    Just to add I’ve just fell into the same trap with the ACL’s. After reading this quickly created a new bucket via the plugin and it now works like a charm. Thanks guys.

    Plugin Author Delicious Brains

    (@deliciousbrains)

    Glad you found this thread useful @halydris.

    We now have a help doc for S3 Object Ownership too.

    https://deliciousbrains.com/wp-offload-media/doc/amazon-s3-bucket-object-ownership/

    In a future release of WP Offload Media we’ll likely try to handle Object Ownership issues on existing buckets more cleanly too.

    -IJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Files not uploading to S3’ is closed to new replies.