Support » Plugin: WP-Stateless - Google Cloud Storage » How to reverse WP Stateless

  • evowrap

    (@evowrap)


    A lot of my images are still being served from my websie but some are being served from google cloud. How do I reverse what this plugin has done. restore all the files back to my server and start serving my images from my own website again?

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Eric Sopp

    (@ideric)

    Try adjusting the mode into “Backup” and running the Sync process.

    evowrap

    (@evowrap)

    Thanks

    It says:

    Backup: Upload media files to Google Storage and serve local file urls.

    But I want to download the files back from google cloud as I deleted the files from my media folder

    Plugin Author Eric Sopp

    (@ideric)

    Yea, this should bring them back locally and update the attachment meta to reference the local disk.

    evowrap

    (@evowrap)

    thanks, any idea why this would happen? It was working fine when I first synched it

    Plugin Author Eric Sopp

    (@ideric)

    any idea why this would happen?

    What happened?

    • This reply was modified 10 months ago by Eric Sopp.
    evowrap

    (@evowrap)

    I done the sync and deleted the files that were serving from google cloud from my wordpress. All was good and I tested some files and they were being served succesfully from google cloud. But then a few days later my sites all messed up. Some are being served from google cloud and others are from my website so the images are missing which are being served from my webste. My home page has most the images missing. Seems like I was so close. Id saved a load of space and the migration to my new server was booked for tonight. Seems a shame Ive had to cancel the migration and stay where i am.

    Plugin Author Eric Sopp

    (@ideric)

    My guess is that certain thumbnails were not processed completely. Identify the image and run regeneration on that particular image from the Media Library.

    It could also be that your theme is not accessing the image via proper wordpress functions. Hard to tell, there are lots of reasons. You just have to troubleshoot to see the underlying problem.

    evowrap

    (@evowrap)

    Ok Ill have a look before I revert everything back.

    On one image which isnt getting served it is trying to fetch from google cloud but I get this error:

    <Error>
    AccessDenied
    <Message>Access denied.</Message>
    <Details>
    Anonymous caller does not have storage.objects.get access to stateless-www-evowrap-co-uk/2016/11/safety-mother-and-child-larger-1-400×400.jpg.
    </Details>
    </Error>

    So not even sure if the cloud is functioning correctly now.

    Plugin Author Eric Sopp

    (@ideric)

    When you browse the bucket using the Google Cloud Console, do you see the file there? Maybe the thumbnail was not generated correctly.

    evowrap

    (@evowrap)

    no its not there. Maybe Ill try regenerating first. How would I di that as Ive deleted the files from my wordpress media folder? Will I be able to fix this or will I have to restore the site to before I done this?

    Plugin Author Eric Sopp

    (@ideric)

    How would I di that as Ive deleted the files from my wordpress media folder?

    It will download the full-size version from GCS, regenerate the image, and then sync it.

    Will I be able to fix this or will I have to restore the site to before I done this?

    If the full-size does not exist on the local disk or GCS, you can restore that image from a backup locally and run the regeneration.

    evowrap

    (@evowrap)

    The full size on appears to be on google cloud. So is my best bet to do the backup and then try the stateless sync again or just try the stateless sync to see if I can get google cloud to serve my files?

    Plugin Author Eric Sopp

    (@ideric)

    The full size on appears to be on google cloud.

    Just run the regeneration on that image then. In stateless mode, it will download the full-size image to your local disk, regenerate the thumbnails, sync them to Google, and delete them from the local disk.

    The thumbnail regeneration is actually a WordPress function that we use. Unfortunately, it’s not 100% reliable as you can see.

    evowrap

    (@evowrap)

    The probem is theres a lot of images that this has happened to. I just used that as an example. At least half of my site I would say. Is there a way to do this in bulk without individually doing it?

    Plugin Author Eric Sopp

    (@ideric)

    Is there a way to do this in bulk without individually doing it?

    Yes, use the sync tools from the Sync tab within the Stateless Settings area.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘How to reverse WP Stateless’ is closed to new replies.