[SNAPSHOT] Scheduled backup not running

There are a couple of cron jobs that do not appear to be running. It may be that the snapshot cron is also affected.

I can see an error on the cron panel.

There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

cURL error 28: Operation timed out after 3001 milliseconds with 0 bytes received

When working with WP-Engine we temporarily deactivated the WP-Defender plugin and this error disappeared.

But the cron job still didn’t seem to run for Snapshot.

  • Adam
    • Support Gorilla

    Hello weshinckes

    I hope you’re well today and thank you for your question!

    I see that you have already installed WP Crontrol plugin and that’s great as it helps check cron events and schedules. I took a look there and it seems all the necessary schedules are actually set so that part is fine. However, there’s quite a lot of events scheduled (from WP itself and various plugins) and the more of them are there, the bigger the chance some might be skipped.

    I believe your site is currently using the default WP Cron, is that right? Could you please contact WP Engine’s live support again and ask them if they could enable their alternate real cron for you for the site?

    According to this doc, they should be able to do this for you and that cron, as far as I understand it, should be a real server cron – so if that’s it, it would be a very reliable solution.

    If they can do this, please after they do clear all caches on your site and save Snapshot schedule again and then wait until the time the backup should be created to see if it works.

    Let’s see if that helps. If not, let me know, please, and I’ll continue investigating it to find a solution.

    Best regards,

    Adam

  • Adam
    • Support Gorilla

    Hello weshinckes

    Thank you for response!

    I checked the site again and it seems that the Cron is now running fine indeed. I can see that Snapshot related events are also triggered as expected.

    However, you’re right about backups not being run. I tried to run “Full Backup” snapshot manually and it completed fine and quite fast actually. But when I changed the schedule so I could see if it’s triggered, it didn’t seem to be run automatically.

    I’ll need to dig a bit deeper then but it seems that SFTP access that you shared during the chat is not working, unfortunately – connections are rejected due to “current directory set to .” (the dot means usually the parent-most folder in the folder structure).

    Could you please double-check these credentials and provide me with working ones?

    Note: Don’t leave your login details in this ticket.

    Instead, you can send me your details using our contact form https://wpmudev.com/contact/#i-have-a-different-question and the template below:

    Subject: “Attn: Adam Czajczyk

    – Site login URL

    – WordPress admin username

    – WordPress admin password

    – FTP credentials (host/username/password)

    – Folder path to site in question

    – Link back to this thread for reference

    – Any other relevant urls/info

    I’ll then do some more “in-depth” testing and include our developers in the case if necessary.

    Best regards,

    Adam

  • Adam
    • Support Gorilla

    Hello weshinckes

    Thank you, that worked and I was able to access FTP.

    The weird thing that I found out is that the snapshot internal logs are created and rotated and it seems that the backup process… is actually fired up. But there’s no further clue what happens, what might be causing it to break and so on. I checked what I could think of but I must say I don’t see any reason for this – especially that manually started snapshot runs perfectly fine.

    That said, I’ve passed all the information to our developers (along with access credentials so if you could please keep those active and unchanged for now) and asked them to help me investigate and solve this.

    Please keep an eye on this ticket and we’ll be updating you as soon as we get to know more from them.

    Kind regards,

    Adam

  • Tho Bui
    • SLS

    Hi weshinckes,

    I am glad you were able to resolve it on your end. If you have any doubts or need any help further, feel free to reply in the thread here and we would be very happy to help you with it. Also If you do not require any help regarding this, you can also mark this as resolved.

    Cheers,

    Tho Bui

  • weshinckes
    • Flash Drive

    Hi Tho,

    That’s not quite the case.

    The Managed Backups now appear to be running fine. Whether that is due to an update or some other reason I cannot tell you.

    The normal daily local backups to the server are still not running though. It would be good if you could take a look.

    Many thanks,

    Wes

  • Tho Bui
    • SLS

    Hello weshinckes,

    Apologies for the delay, I saw you excluded one table and the normal daily local backup is working fine now. Also before I tried to add an MU to your site to test the backup, it’s mu-plugins/snapshot-sync-backup.php file. It’s an old version and its conflict with the new version of Snapshot. In that case, can you help me to remove it, because I can’t access the FTP now?

    Kind Regards,

    Tho Bui

  • weshinckes
    • Flash Drive

    Hi,

    I’m sorry I must have missed the previous reply. The file has ‘mu-plugins/snapshot-sync-backup.php’ now been renamed

    I have updated this week to the latest Snapshot Pro.

    Now I’m not able to execute any backup manual or automatic!

    Could you take a look or should I open a new ticket?

    Many thanks,

    Wes

  • Jorge Berenguer
    • The Bug Hunter

    Hi weshinckes,

    The file within the /mu-plugins should be removed from the /mu-plugins directory or the code commented out. Renaming an mu-plugin file won’t stop it from executing it, like it does with the normal plugins. Could you try that and see if Snapshot Pro works?

    Let us know how this goes.

    Kind regards,
    Jorge.

  • weshinckes
    • Flash Drive

    Hi Jorge,

    I didn’t know that about the /mu-plugins directory, it’s useful to know!

    I have deleted the file but backups a manual backup still doesn’t execute. It doesn’t even seem to get past the ‘Initiating Backup’ 0/4 step.

    Thanks,

    Wes

  • Jorge Berenguer
    • The Bug Hunter

    Hi there,

    Could you please send me the access details?

    You can share your details using our safe contact form

    https://wpmudev.com/contact/#i-have-a-different-question

    with the following template.

    Please create a new admin account with the contact+delegate@wpmudev.org email and provide the login details. Also, go to WPMU DEV > Settings > Permissions panel and add this new user there as well.

    Subject: “Attn: Jorge Berenguer

    – Admin login ( if Multisite please provide Super Admin details ):
    Login URL:
    Admin Username:
    Admin Password:

    – FTP credentials
    Hostname:
    Username:
    Password:
    Port:
    Key-File ( and password ) if needed

    Keep in mind the subject line as it ensures that it gets assigned to me.

    Kind regards,
    Jorge.

  • Jorge Berenguer
    • The Bug Hunter

    Hi weshinckes,

    I’ve tried to run several backups with different sets of exclusions but with no success. They all got stuck at 0%. This suggests the plugin might be blocked by a firewall. Could you check with your hosting provider and make sure the Snapshot Pro IPs are whitelisted?

    
    35.157.144.199
    34.196.51.17
    18.204.159.253
    

    Once we make sure those IPs are not being blocked by your server, we’ll be able to troubleshoot further.

    Kind regards,
    Jorge.

  • glaubersilva
    • Ex Staff

    Hi weshinckes

    I double-checked with the Snapshot dev team and they confirm that the IPs are whitelisted.

    So, what can explain this behavior (backup gets stuck on 0%) is the following: seems that your host use bitninja.io as an extra security layer, and that’s blocking Snapshot requests.

    Could you forward our API IPs list from here https://wpmudev.com/docs/getting-started/wpmu-dev-ip-addresses/ to your host and hopefully those can be unblocked.

    Once those get unblocked from Bitninja, please give it another try and let us know how it goes.

    Kind regards,
    Glauber Silva

  • glaubersilva
    • Ex Staff

    Hi weshinckes

    Thanks for trying this workaround! This should have worked, so we’ll need to check the response on the API side deeper to understand what is happening. As soon we have some news I came back to update this thread.

    But just confirm one thing: you (or the host company) did follow the instruction of this tutorial:

    https://knowledgebase.bitninja.io/kb/bulk-adding-ips-to-the-grey-black-and-whitelist/

    Right?

    If you already try this tutorial that I mentioned above and even so the problem still persists, I would like to know if you also can try this another one:

    https://knowledgebase.bitninja.io/kb/false-positive-catch/

    For now, we’ll continue the investigation and we’ll wait for your feedback about the two tutorials above.

    Thanks in advance! :slight_smile:

    Kind regards,
    Glauber Silva

  • weshinckes
    • Flash Drive

    Hi Glauber,

    It’s hard to get better support than at WPEngine.

    I asked for the IP’s to be whitelisted once prior to knowledge of BitNinja and once afterwards just to cover all the bases. As you can understand I am personally only able to field requests between you both and I don’t have full visibility.

    If you can please check the API responses at your end and I will be happy to go back to the support team should there be an action they still need to complete.

    Many thanks,

    Wes

  • Predrag Dubajic
    • Support

    Hi weshinckes ,

    Apologies for the delay here, our developers are still investigating this, it seems that it’s related to redirects and API communication and they are looking into it further to see how to apply a global fix with a plugin update and also if possible a workaround for your case prior to that.
    Hopefully we will have more news soon.

    Best regards,
    Predrag

  • Predrag Dubajic
    • Support

    Hi Wes,

    Apologies for not updating you here, our developers were working on improvements to the plugin, some things done were based on your issue and we recently released version 4.3.2 which I installed on your site and was able to finish with the backup process.

    I have scheduled a daily backup so could you please check up on that when the next schedule runs and let us know if it worked.

    Best regards,
    Predrag