GithubHelp home page GithubHelp logo

Comments (9)

mushbrain666 avatar mushbrain666 commented on July 21, 2024

Cleared the cURL error, indeed had to do with localhost. Needed to add cacert.pem to php.ini:

curl.cainfo = C:/wamp64/bin/php/php7.1.16/cacert.pem

I guess my issue is solved, but I would like to keep this open to receive advice or submit my solution for what I'm presented with now:

Upload Sample File
There was an error trying to upload a sample file.

    Error executing "PutObject" on "https://stretcheveryday.s3.ca-central-1.amazonaws.com/_troubleshooter/sample.txt"; AWS HTTP error: Client error: `PUT https://stretcheveryday.s3.ca-central-1.amazonaws.com/_troubleshooter/sample.txt` resulted in a `403 Forbidden` response: AccessDeniedAccess DeniedF54A13 (truncated...) AccessDenied (client): Access Denied - AccessDeniedAccess DeniedF54A137EE26B258FI1fZu6F4uoDLgFIFyk5+PRoJZItB14l12QMyL3c46+mYecWN2xWOpVT9aCyDuf4d72OCfuoK9EE=

I see approval for PUT in the CORS setting and I have that added - do I also need a bucket policy?

IMGIX is connected to S3 and subdomain is showing an image I uploaded through AWS console with same user I am trying to use for Media Cloud. If I try and access this img through S3 I get denied. I think this is expected behavior? Or should my bucket be public?

I feel like this has something to do with localhost again.

from ilab-media-tools.

mushbrain666 avatar mushbrain666 commented on July 21, 2024

Tried on a live server; Digital Ocean LAMP droplet. Not getting a 403 any more, not getting anything really, just a spinning wheel.

I adjusted default_socket_timeout and max_execution_time to clear the prompt, but to no avail.

Any advice greatly appreciated. Debug log.

from ilab-media-tools.

jawngee avatar jawngee commented on July 21, 2024

In the bucket permissions in the S3 console, make sure the following are unchecked:

  • Block new public ACLs and uploading public objects
  • Remove public acess granted through public ACLs
  • Block public and cross-account access if bucket has public policies
  • Block new public bucket policies

It should look like this:

screenshot of safari 1-29-19 4-14-20 pm

from ilab-media-tools.

mushbrain666 avatar mushbrain666 commented on July 21, 2024

Thank you!

When I selected the bucket from the S3 bucket archive and hit 'edit public access settings' the boxes were unchecked, however when I went into the bucket itself > permissions > public access settings they were checked. Strange considering I actually had to select the bucket on the archive page to see the unchecked settings, didn't seem like a setting 'for all buckets'. This is what I saw on the bucket archive page:

s3-settings

Confusing, however unchecking the boxes from the deeper dialog solved my 403.

Now I have a warning with a small typo (*this may not be matter)

troubleshooter

I see the s3 file is hidden, while the imgix file is visible - is this expected behavior? Also I see no sample .txt file, I guess it gets deleted right away?

On localhost the Troubleshooter gets as far as testing the IMGIX image, but on dev server its an endless spinning wheel after testing bulk importer.

The storage importer appears to work, through admin on both local and dev I see the cool animation of images going into the cloud, but upon completion nothing happens. If I use WP-CLI it is lightning fast, the images all appear to import, but I see nothing in my bucket or on IMGIX.

I tried upload a few times and noticed locally a failure in between false-positives:

console-error

Here are my settings:

storage-tools

Stumped again! I see the image Media Cloud uploaded being served by IMGIX, which is encouraging, but not sure where to go from here. Any advice greatly appreciated, thank you very much.

from ilab-media-tools.

mushbrain666 avatar mushbrain666 commented on July 21, 2024

So the bucket policies are a bit complicated (S3 Blog). Changing bucket and object permissions post-creation was murky, so I created a new bucket. Same name, same CORS config, with public settings enabled on creation.

I can access the image from the S3 server and IMGIX subdomain, so things are clearly working between S3 and IMGIX.

Now the troubleshooter passes locally:

test-pass

But hangs on live dev - whether or not background processing is enabled, and the image is clearly on IMGIX so not sure what to make of it:

test-fail

The console shows an admin-ajax.php POST 500. Referer admin.php?page=media-tools-troubleshooter.

500

I have the CORS set in S3 bucket, have crossdomain.xml enabled in IMGIX, and have entered the IMGIX token into Media Cloud IMGIX settings.

I also don't understand the Privacy ACL settings. "Leave it as public-read unless you are using imgix" infers it should be authenticed:

privacy-acl

However unless its public the troubleshooter doesn't pass:

privacy-acl-error

The importer runs through wp-admin and through CLI with no errors, or dialog at all when it finishes.

Can anybody confirm that they actually have currently working Media Cloud setup?

I am happy to pay for a solution and can provide access to live dev.

from ilab-media-tools.

jawngee avatar jawngee commented on July 21, 2024

You should set it to public-read unless you are using Imgix. The troubleshooter error is a bit of a red herring as it doesn't check if you've specified public or private default ACL for uploads, it just tries to read the file regardless and shows the error if it can't.

This plugin is in use on over 3000+ websites. Every client website my company builds uses it (for clients like Nike, AT&T, etc.).

I just posted a guide on configuring S3 here: https://discourse.interfacelab.io/t/amazon-s3-setup/123

from ilab-media-tools.

jawngee avatar jawngee commented on July 21, 2024

Drop me an email at [email protected]

from ilab-media-tools.

mushbrain666 avatar mushbrain666 commented on July 21, 2024

Great guide hadn't seen that, but yes I did all the steps. Went through and double checked.

Thanks for the encouragement. Emailed you.

from ilab-media-tools.

mushbrain666 avatar mushbrain666 commented on July 21, 2024

Still haven't got full upload working but at this point this thread is a mess. I did solve my initial issue though and things are sort or working so closing this issue.

from ilab-media-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.