• Resolved afonseca08

    (@afonseca08)


    Hello, I am testing this plugin for the first time and have followed the instructions for manual setup after configuring the Google Storage bucket. I have configured the plugin in Backup mode. However, after uploading an image to the media library and clicking “Regenerate and sync with GCS” I get a message saying the image was successfully resized but no image is uploaded to Google.

    I don’t see any error messages in the console or server error log. How can I verify if the configuration is correct or am having some other issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @afonseca08,
    You have to save the settings by clicking Save Changes button. It will clear the status cache.
    You should see error message at top of the page if it isn’t configured correctly.

    What do you see in Google Cloud Storage meta box on edit media page?

    If you still have the issue feel free to grab a time to connect with our sales manager for premium support.

    Meet with Marcus | UDX

    Regards.

    I had the same issue. Doing a bit of debugging locally I found that class-gs-client.php is catching exceptions thrown by the google php client. In my case it was this error:
    “Cannot use ACL API to set object policy when object policies are disabled”

    which i fixed by enabling the acl api on the bucket permissions page.

    It would be great if these errors are surfaced up the the wp admin page rather than silently catching them and marking the sync or other commands a success.

    Thread Starter afonseca08

    (@afonseca08)

    @bzadmin Thank you! This was the issue in my case as well and enabling the acl for objects fixed it. Now I see my images backed up to the bucket.

    I agree, this type of error should be surfaced in the UI and written to a log file as currently this is failing silently.

    Furthermore, I had already made the whole bucket public so I’m not sure why it needs object level permissions. However, if these are needed for the plugin to work as designed, then this step should be added to the manual setup instructions as it won’t work without this.

    Thread Starter afonseca08

    (@afonseca08)

    Just a quick follow-up, I added this required step to the manual setup instructions on the github wiki in case others run into this.

    Ah. Got caught by this, as well.

    Plugin doesn’t work with ‘bucket level permissions’, you have to set ACL permissions.

    Maybe it says that somewhere in the doc, but I didn’t catch it.

    Damn, I spent two days debugging

    Unable to create directory 1. Is its parent directory writable by the server?

    error. Changing to object-level permissions really helps (my answer on SO)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not uploading to Google Bucket’ is closed to new replies.