Support » Plugin: Backup Migration » Backup won’t start

  • Resolved dgebel

    (@dgebel)


    Tried Backup on an existing site for the first time.

    System is still in “scan for files” mode after 12 hours so I can’t start the backup.

    There’s no progress indicator in the What to backup section. Just says NaN for the backup size.

    This is on Bluehost. Tried it on another site of mine and it worked well.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    Looks like Bluehost is shared hosting.
    They probably don’t have everything correctly configured.

    Could you please send us your site info?
    Troubleshooting Section -> Advanced options -> Site info -> Download log

    And send it via email to us?: [ support (at) backupbliss dot com ]

    It’s quite unusual tho, after 12 hours you definitely should get some error not only via server response but also from browser side after connection lost.

    Waiting for you e-mail 🙂

    Thread Starter dgebel

    (@dgebel)

    You’re right, it’s a Bluehost shared account.
    Email sent. Actually 2 files. The configuration debug file and the log.
    Thanks so much for your help!

    Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    Thank you for the logs!

    Looks like this folder:
    /home3/ebeltech/public_html/rbc/wp-content/cache

    Has wrong permissions, also it’s cache folder should be excluded from the backup.
    Nevertheless it’s quite important to fix the permissions, even for WordPress.

    So, please as it’s cache file it can be 777;
    Command: chmod -R 777 /home3/ebeltech/public_html/rbc/wp-content/cache

    Then you can try two different backup techniques (you can find them in „other options” section) at the bottom:
    “Bypass web server timeout directive – backup process may be slower”
    …or “Bypass web server limits – it will disable automatic backup and possibility to run it in the background”
    Don’t forget to save the settings 🙂

    Let me know if that helps.
    Thank you

    Thread Starter dgebel

    (@dgebel)

    Bypass webserver limits worked – the issue seemed to be the site size. It was over 1 gb.

    I deleted a wack of backups from another program and suddenly it started working, says it successfully backed it up.

    Switching to the other settings however did not, still having issues with that, so can’t use scheduled backups. 🙁

    Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    Could you please send us some logs?
    It’s quite possible that it can be fixed with adjusting PHP CLI.

    (first method you can select in other options)

    Thank you

    Thread Starter dgebel

    (@dgebel)

    Not positive which option you mean:

    This is the results of the “do not change the plugin defaults”

    [STEP] [2021-03-15 00:00:53] Initializing backup…
    [INFO] [2021-03-15 00:00:53] Backup & Migration version: 1.0.9
    [INFO] [2021-03-15 00:00:53] Site which will be backed up: https://example.com
    [INFO] [2021-03-15 00:00:53] PHP Version: 7.4.16
    [INFO] [2021-03-15 00:00:53] Web server: Apache
    [INFO] [2021-03-15 00:00:53] Max execution time (in seconds): 259200
    [INFO] [2021-03-15 00:00:53] Checking if backup dir is writable…
    [INFO] [2021-03-15 00:00:53] Initializing custom error handler
    [SUCCESS] [2021-03-15 00:00:53] Yup it is writable…
    [INFO] [2021-03-15 00:00:53] PHP CLI is available – plugin will try to run server script.
    [STEP] [2021-03-15 00:00:53] Scanning files…
    [STEP] [2021-03-15 00:00:53] Checking free space, reserving…
    [INFO] [2021-03-15 00:00:53] Requires at least 541346682 bytes. [516.27 MB]
    [INFO] [2021-03-15 00:00:53] Disk free space function is not disabled – using…
    [INFO] [2021-03-15 00:00:53] Checking this path/partition: /home/username/backupwordpress/site/backups
    [SUCCESS] [2021-03-15 00:00:53] There is 231,276.53 MB free. [225.86 GB]
    [SUCCESS] [2021-03-15 00:00:53] Great! We have enough space.
    [SUCCESS] [2021-03-15 00:00:53] Confirmed, there is more than enough space, checked: 541346682 bytes
    [INFO] [2021-03-15 00:00:53] Scanning done – found 8995 files…
    [SUCCESS] [2021-03-15 00:00:53] Backup initialized…
    [STEP] [2021-03-15 00:00:53] Initializing archiving system…
    [SUCCESS] [2021-03-15 00:00:53] Archive system initialized…
    [STEP] [2021-03-15 00:00:53] Preparing map of files…
    [SUCCESS] [2021-03-15 00:00:53] Files prepared.
    [INFO] [2021-03-15 00:00:53] Starting compression process…
    [STEP] [2021-03-15 00:00:53] Smart memory calculation…
    [INFO] [2021-03-15 00:00:53] There is 384 MBs of memory to use
    [INFO] [2021-03-15 00:00:53] WordPress memory limit: 256 MBs
    [SUCCESS] [2021-03-15 00:00:53] Setting the safe limit to 86 MB
    [STEP] [2021-03-15 00:00:53] Making database backup
    [INFO] [2021-03-15 00:00:53] Iterating database…
    [INFO] [2021-03-15 00:00:54] Database size: 11.68 MB
    [SUCCESS] [2021-03-15 00:00:54] Database backup finished
    [STEP] [2021-03-15 00:00:54] Making archive
    [INFO] [2021-03-15 00:00:54] Compressing…
    [INFO] [2021-03-15 00:00:54] Using PclZip module to create the backup
    [INFO] [2021-03-15 00:00:54] Legacy setting: Using server-sided script and cURL based loop for better capabilities
    [INFO] [2021-03-15 00:00:54] Starting background process on server-side…
    [SUCCESS] [2021-03-15 00:00:54] Request sent successfully, without error returned.
    [WARN] [2021-03-15 00:00:56] Could not find any response from the server, trying again in 3 seconds.
    [WARN] [2021-03-15 00:00:59] Still nothing backup probably is not running.
    [STEP] [2021-03-15 00:00:59] Reverting backup, removing file…
    [ERROR] [2021-03-15 00:00:59] There was an error during backup…
    [ERROR] [2021-03-15 00:00:59] Backup could not run on your server, please check global logs.
    [STEP] [2021-03-15 00:00:59] Aborting backup…
    [DOWNLOAD GENERATED] File downloaded on (server time): 2021-03-15 00:01:01
    [DOWNLOAD GENERATED] Last update (seconds): 8 seconds ago
    [DOWNLOAD GENERATED] Last update (date): 2021-03-15 00:00:53`

    This is the results of the “bypass webserver timeout directive” run

    [STEP] [2021-03-14 23:54:24] Initializing backup…
    [INFO] [2021-03-14 23:54:24] Backup & Migration version: 1.0.9
    [INFO] [2021-03-14 23:54:24] Site which will be backed up: https://riversidebaptistchurch.ca
    [INFO] [2021-03-14 23:54:24] PHP Version: 7.4.16
    [INFO] [2021-03-14 23:54:24] Web server: Apache
    [INFO] [2021-03-14 23:54:24] Max execution time (in seconds): 259200
    [INFO] [2021-03-14 23:54:24] Checking if backup dir is writable…
    [INFO] [2021-03-14 23:54:24] Initializing custom error handler
    [SUCCESS] [2021-03-14 23:54:24] Yup it is writable…
    [INFO] [2021-03-14 23:54:24] PHP CLI is available – plugin will try to run server script.
    [STEP] [2021-03-14 23:54:24] Scanning files…
    [STEP] [2021-03-14 23:54:24] Checking free space, reserving…
    [INFO] [2021-03-14 23:54:24] Requires at least 541346682 bytes. [516.27 MB]
    [INFO] [2021-03-14 23:54:24] Disk free space function is not disabled – using…
    [INFO] [2021-03-14 23:54:24] Checking this path/partition: /home3/ebeltech/backupwordpress/rbc/backups
    [SUCCESS] [2021-03-14 23:54:24] There is 231,301.53 MB free. [225.88 GB]
    [SUCCESS] [2021-03-14 23:54:24] Great! We have enough space.
    [SUCCESS] [2021-03-14 23:54:24] Confirmed, there is more than enough space, checked: 541346682 bytes
    [INFO] [2021-03-14 23:54:24] Scanning done – found 8995 files…
    [SUCCESS] [2021-03-14 23:54:24] Backup initialized…
    [STEP] [2021-03-14 23:54:24] Initializing archiving system…
    [SUCCESS] [2021-03-14 23:54:24] Archive system initialized…
    [STEP] [2021-03-14 23:54:25] Preparing map of files…
    [SUCCESS] [2021-03-14 23:54:25] Files prepared.
    [INFO] [2021-03-14 23:54:25] Starting compression process…
    [STEP] [2021-03-14 23:54:25] Smart memory calculation…
    [INFO] [2021-03-14 23:54:25] There is 384 MBs of memory to use
    [INFO] [2021-03-14 23:54:25] WordPress memory limit: 256 MBs
    [SUCCESS] [2021-03-14 23:54:25] Setting the safe limit to 86 MB
    [STEP] [2021-03-14 23:54:25] Making database backup
    [INFO] [2021-03-14 23:54:25] Iterating database…
    [INFO] [2021-03-14 23:54:31] Database size: 11.68 MB
    [SUCCESS] [2021-03-14 23:54:31] Database backup finished
    [STEP] [2021-03-14 23:54:31] Making archive
    [INFO] [2021-03-14 23:54:31] Compressing…
    [INFO] [2021-03-14 23:54:31] Using PclZip module to create the backup
    [INFO] [2021-03-14 23:54:31] Legacy setting: Using server-sided script and cURL based loop for better capabilities
    [INFO] [2021-03-14 23:54:31] Starting background process on server-side…
    [SUCCESS] [2021-03-14 23:54:31] Request sent successfully, without error returned.
    [WARN] [2021-03-14 23:54:33] Could not find any response from the server, trying again in 3 seconds.
    [WARN] [2021-03-14 23:54:36] Still nothing backup probably is not running.
    [STEP] [2021-03-14 23:54:36] Reverting backup, removing file…
    [ERROR] [2021-03-14 23:54:36] There was an error during backup…
    [ERROR] [2021-03-14 23:54:36] Backup could not run on your server, please check global logs.
    [STEP] [2021-03-14 23:54:36] Aborting backup…
    [DOWNLOAD GENERATED] File downloaded on (server time): 2021-03-14 23:54:38
    [DOWNLOAD GENERATED] Last update (seconds): 14 seconds ago
    [DOWNLOAD GENERATED] Last update (date): 2021-03-14 23:54:24

    Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    The third option also failed (backup method)?

    ––––

    You can also try to disable PHP CLI (then don’t change above method mentioned):

    • Pick default Backup Method (in other settings section)
    • Add this define(“BMI_CLI_ENABLED”, false); to your wp-config.php
    • Make sure quotes are not copied and type them manually (WP forum replaces them)
    • Once you do that default method will switch to one-request backup which depends on your web server timeout.

    ––––

    Or if you want to use PHP CLI:

    • Update your default “php” command on your server
    • You can check current version with “php –version”
    • The version has to match at least 5.6 or above.
    • In future version we will try to detect new version automatically.

    ––––

    Depending on last logs you sent, looks like you don’t have cURL installed or the extension is not loaded. This library allows PHP and WordPress work much more efficient. That may be the reason why second option didn’t work for you.

    Please try above
    Thank you

    Thread Starter dgebel

    (@dgebel)

    Ok… so one other issue I found. Big one actually. Couple minor ones.

    None of the menus or hyperlinks work when moved to another URL. I took the backup that seemed to work from example.com and did a quick restore to subdomain.example2.com

    1. Main page worked fine and the menu links were modified correctly, eg https://example.com/about is changed to https://subdomain.example2.com/about, but there are no pages found, naught but 404 errors. However, the pages ARE there in the editor, so not sure why they can’t be found.

    2. All of the other on-page hyperlinks to other pages go back to the original URL instead of the new URL.

    That’s okay for a backup. Not any use for migration of anything other than a single page site, maybe. I was hoping to use this for off-line testing and potentially setting up a quick “default configuration” pre-development tool. Also makes it hard to verify if the backup actually worked or not.

    3. A bunch of little configuration settings, look like they get “reset” to the default values instead of saved values, especially in plugins. Some of the back-end images apparently didn’t get transferred, there’s a broken link instead of the image.

    • This reply was modified 1 year, 3 months ago by dgebel.
    • This reply was modified 1 year, 3 months ago by dgebel.
    • This reply was modified 1 year, 3 months ago by dgebel.
    Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    Could you please try with this plugin (regarding the download issue):
    https://backupbliss.com/downloads/plugins/bmi-betas/backup-backup-1.0.9.21.zip

    It’s beta and allows to download backups (insecure default way).

    For the hyperlinks and URLs it highly depends on your VHost configuration.
    We will work on improving our search and replace engine.

    For now you can simply use “Better Find & Replace” plugin which will replace all URLs after migration on live database (we’re doing it in the runtime of the restore process).

    If you’re using elementor they recommend to use their regenerate-css option.
    You can find it in Elementor -> Tools -> Regenerate.

    Thread Starter dgebel

    (@dgebel)

    Thanks for the beta… still not working though. I’ll check that Replace plugin out, thanks!
    Here’s the hickup log. Is there another log that would give more details?

    [STEP] [2021-03-15 15:43:51] Initializing backup...
    [INFO] [2021-03-15 15:43:51] Backup & Migration version: 1.0.9.21
    [INFO] [2021-03-15 15:43:51] Site which will be backed up: https://example.com
    [INFO] [2021-03-15 15:43:51] PHP Version: 7.4.16
    [INFO] [2021-03-15 15:43:51] Web server: Apache
    [INFO] [2021-03-15 15:43:51] Max execution time (in seconds): 259200
    [INFO] [2021-03-15 15:43:51] Checking if backup dir is writable...
    [INFO] [2021-03-15 15:43:51] Initializing custom error handler
    [SUCCESS] [2021-03-15 15:43:51] Yup it is writable...
    [INFO] [2021-03-15 15:43:51] PHP CLI is available – plugin will try to run server script.
    [STEP] [2021-03-15 15:43:51] Scanning files...
    [STEP] [2021-03-15 15:43:52] Checking free space, reserving...
    [INFO] [2021-03-15 15:43:52] Requires at least 543233414 bytes. [518.07 MB]
    [INFO] [2021-03-15 15:43:52] Disk free space function is not disabled - using...
    [INFO] [2021-03-15 15:43:52] Checking this path/partition: /home/user/backupwordpress/site/backups
    [SUCCESS] [2021-03-15 15:43:52] There is 223,554.24 MB free. [218.31 GB]
    [SUCCESS] [2021-03-15 15:43:52] Great! We have enough space.
    [SUCCESS] [2021-03-15 15:43:52] Confirmed, there is more than enough space, checked: 543233414 bytes
    [INFO] [2021-03-15 15:43:52] Scanning done - found 8996 files...
    [SUCCESS] [2021-03-15 15:43:52] Backup initialized...
    [STEP] [2021-03-15 15:43:52] Initializing archiving system...
    [SUCCESS] [2021-03-15 15:43:52] Archive system initialized...
    [STEP] [2021-03-15 15:43:52] Preparing map of files...
    [SUCCESS] [2021-03-15 15:43:52] Files prepared.
    [INFO] [2021-03-15 15:43:52] Starting compression process...
    [STEP] [2021-03-15 15:43:52] Smart memory calculation...
    [INFO] [2021-03-15 15:43:52] There is 384 MBs of memory to use
    [INFO] [2021-03-15 15:43:52] WordPress memory limit: 256 MBs
    [SUCCESS] [2021-03-15 15:43:52] Setting the safe limit to 86 MB
    [STEP] [2021-03-15 15:43:52] Making database backup
    [INFO] [2021-03-15 15:43:52] Iterating database...
    [INFO] [2021-03-15 15:43:54] Database size: 11.71 MB
    [SUCCESS] [2021-03-15 15:43:54] Database backup finished
    [STEP] [2021-03-15 15:43:54] Making archive
    [INFO] [2021-03-15 15:43:54] Compressing...
    [INFO] [2021-03-15 15:43:54] Using PclZip module to create the backup
    [INFO] [2021-03-15 15:43:54] Legacy setting: Using server-sided script and cURL based loop for better capabilities
    [INFO] [2021-03-15 15:43:54] Starting background process on server-side...
    [SUCCESS] [2021-03-15 15:43:55] Request sent successfully, without error returned.
    [WARN] [2021-03-15 15:43:57] Could not find any response from the server, trying again in 3 seconds.
    [WARN] [2021-03-15 15:44:00] Still nothing backup probably is not running.
    [STEP] [2021-03-15 15:44:00] Reverting backup, removing file...
    [ERROR] [2021-03-15 15:44:00] There was an error during backup...
    [ERROR] [2021-03-15 15:44:00] Backup could not run on your server, please check global logs.
    [STEP] [2021-03-15 15:44:00] Aborting backup...
    [DOWNLOAD GENERATED] File downloaded on (server time): 2021-03-15 15:44:02
    [DOWNLOAD GENERATED] Last update (seconds): 11 seconds ago
    [DOWNLOAD GENERATED] Last update (date): 2021-03-15 15:43:51
    Plugin Support backupsupport

    (@backupsupport)

    Hi @dgebel

    These logs tells me that you don’t have cURL installed on the server.
    It can be easily installed by:
    sudo apt-get install curl php7-curl -y (install system curl & php 7 curl)
    sudo apt-get install php7.4-curl -y (install php 7.4 curl dedicated build)
    systemctl restart apache2 (restart web server)

    That should allow you to run the cURL method (2nd from the list)

    Thread Starter dgebel

    (@dgebel)

    Oh sorry! I had completely missed one of your replies. I think I still had the page open and it didn’t get refreshed on my screen before I posted.

    `The third option also failed (backup method)?

    No, that one DOES mostly work, with the caveats I mentioned about the 404 errors. But as you know, can’t use automatics.

    You can also try to disable PHP CLI (then don’t change above method mentioned):

    Pick default Backup Method (in other settings section)
    Add this define(“BMI_CLI_ENABLED”, false); to your wp-config.php
    Make sure quotes are not copied and type them manually (WP forum replaces them)
    Once you do that default method will switch to one-request backup which depends on your web server timeout.

    Oh! I forgot about this, I had to do this once before!

    Or if you want to use PHP CLI:

    Update your default “php” command on your server
    You can check current version with “php –version”
    The version has to match at least 5.6 or above.

    Not sure about this one, but I have php 7.4 enabled

    Depending on last logs you sent, looks like you don’t have cURL installed or the extension is not loaded. This library allows PHP and WordPress work much more efficient. That may be the reason why second option didn’t work for you.

    Odd… I actually DO have cURL enabled, version 7.76 I think phpinfo said.

    Running out of time right now, will add that config file change later.
    Thanks again!

    • This reply was modified 1 year, 3 months ago by dgebel.
    Thread Starter dgebel

    (@dgebel)

    And I missed your just posted reply too. Will try those edits in sequence!

    Plugin Support backupsupport

    (@backupsupport)

    Hmm @dgebel

    PHP CLI version isn’t the same as enabled PHP.
    It’s your default system PHP.
    CLI = Command line interface / command line tool

    To check current version enabled use this command: php --version via SSH
    It should be at least 5.6

    PHP CLI allows us to run the backup in another process on your server which can completely run in the background independently to WordPress.

    For the cURL thing I’d check for errors.
    You can find some cURL errors in the backup folder / or parent folder.
    The name should be something like background-errors.log

    Please let me know if you can find any and send them via email (as they can contain private data / or be quite too large for forum).

    E-mail: [ support (At) backupbliss dot com ]

    Thank you!

    • This reply was modified 1 year, 3 months ago by backupsupport. Reason: More info about php cli
    Thread Starter dgebel

    (@dgebel)

    @backupsupport
    Ok, so php --version gives PHP 7.4.16 (cli)
    curl --version gives 7.19.7

    However… Adding to wp-config.php:

    define('BMI_CLI_ENABLED', false);

    just before

    if ( ! defined( 'ABSPATH' ) )
    	define( 'ABSPATH', dirname( __FILE__ ) . '/' );

    has set things working, even with “do not change default options” selection.
    So yay! Thanks again!

    Now if I could just get the scheduler working…

    • This reply was modified 1 year, 3 months ago by dgebel.
    • This reply was modified 1 year, 3 months ago by dgebel.
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Backup won’t start’ is closed to new replies.