• Resolved richy66

    (@richy66)


    Hi,

    i have a strange Problem on my host. I want to transfer a site to dreamhost. usually i always do it with total upkeep without problems.

    on the current site the backup does not start. pre-flight check is without problems and i have enough space/quota free.

    strangly the backup-tool the customer used before (updraft) is backing up without problems (BUT the restore does not work…).

    here is what my log says:
    [2021-05-20 07:28:20 UTC] Cannot add signal handlers, pcntl_async_signals function does not exist. [2021-05-20 07:28:20 UTC] Last error: Array ( [type] => 2 [message] => file_get_contents(/var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/archive-1621495700.log): failed to open stream: No such file or directory [file] => /var/www/html/wp-admin/includes/class-wp-filesystem-direct.php [line] => 39 ) [2021-05-20 07:28:20 UTC] Backup process initialized. [2021-05-20 07:28:20 UTC] Last error: Array ( [type] => 2 [message] => file_get_contents(/var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/retention-local.log): failed to open stream: No such file or directory [file] => /var/www/html/wp-admin/includes/class-wp-filesystem-direct.php [line] => 39 )

    Do you have any idea for me how i can get Upkeep to make the backup start?

    What you can see is that i even tried to use the updraft directory, wich is currently working to avoid any file/folder permisson issues.

    Thx,
    Richy

    • This topic was modified 3 years, 6 months ago by richy66.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brad Markle

    (@bwmarkle)

    Hi @richy66,

    I’m sorry to hear about the issue you’re having creating a backup.

    The last 2 items in the log you provided are Warnings, not fatal errors, so those errors themselves would not cause the backup process to crash.

    Is this the full error log?

    If you look at these two lines in the code:

    https://github.com/BoldGrid/boldgrid-backup/blob/master/admin/class-boldgrid-backup-admin-core.php#L3064-L3065

    $logger->init( 'retention-local.log' );
    $logger->add( 'Beginning core::enforce_retention...' );

    The first line is trying to initialize the “retention-local.log” log file, and the second line is trying to add a message to the log – but that message is not showing in the log you provided.

    At first glance, it does look like a permissions issue. You mentioned Updraft doesn’t restore backups – do you have any error messages from that attempt? I’m curious if both Updraft and Total Upkeep are getting permissions related warnings.

    Thanks!
    – Brad

    Thread Starter richy66

    (@richy66)

    Hi Brad,

    thanks for your fast reply. I thin you are right. If i look in the retention-log it looks like this:

    `[2021-05-20 07:28:20 UTC] Last error: Array
    (
    [type] => 2
    [message] => file_get_contents(/var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/archive-1621495700.log): failed to open stream: No such file or directory
    [file] => /var/www/html/wp-admin/includes/class-wp-filesystem-direct.php
    [line] => 39
    )

    [2021-05-20 07:28:20 UTC] Cannot add signal handlers, pcntl_async_signals function does not exist.
    [2021-05-20 07:28:20 UTC] Last error: Array
    (
    [type] => 2
    [message] => file_get_contents(/var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/retention-local.log): failed to open stream: No such file or directory
    [file] => /var/www/html/wp-admin/includes/class-wp-filesystem-direct.php
    [line] => 39
    )

    [2021-05-20 07:28:20 UTC] Beginning core::enforce_retention…
    [2021-05-20 07:28:20 UTC] Retention count: 5
    [2021-05-20 07:28:20 UTC] Number of archives found: 0
    [2021-05-20 07:28:20 UTC] Number of protected archives found: 0
    [2021-05-20 07:28:20 UTC] No backups to delete at this time due to retention settings.

    I just tried to contact the Hosting-Provider as i do not have any ssh and ftp access to the old server right now. I keep you informed!

    Thanks,
    Richy

    Thread Starter richy66

    (@richy66)

    Hello Brad,

    i have no a idea what is the problem. I have ssh-access. The site i want to backup is running in a docker-image. the folders have access rights, but i don’t know why it is not starting. maybe its a problem of the paths?

    Thx,
    Richard

    Plugin Author Brad Markle

    (@bwmarkle)

    Hi Richard,

    Sometimes I can get stuck going down rabbit holes, and lose my direction when troubleshooting. I think our first focus, instead of “Why is my backup not starting?”, is now “Why am I getting permissions related warnings?”.

    One of the errors you received is:

    file_get_contents(/var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/archive-1621495700.log): failed to open stream: No such file or directory

    The file that has this error message, is it “archive-1621495700.log”? It seems strange that the file that apparently doesn’t exist, actually exists and includes an error message that it does not exist lol.

    —-

    Also, both warnings are referring to the “logs-b729045a-5a6f4f0ff6f73145” folder.

    /var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/archive-1621495700.log
    /var/www/html/wp-content/updraft/logs-b729045a-5a6f4f0ff6f73145/retention-local.log

    You did not create “logs-b729045a-5a6f4f0ff6f73145” correct? If not, Total Upkeep created the folder. That means Total Upkeep can create folders but not files?

    —-

    Can you confirm what the permissions are to that “logs-b729045a-5a6f4f0ff6f73145” folder?

    Also, to rule out whether or not this is a permissions issue, can you please:
    1. Take note of the current permissions for that folder
    2. Change the permissions to 777 and try another backup. Has anything changed?
    3. Revert the permission changes

    Thanks,
    – Brad

    Thread Starter richy66

    (@richy66)

    Hi Brad,

    thanks for the great tipps.

    In the end i had the luck to get full ssh-access to both servers and so i did a full export via mysqldump and transfered it to the new server manually.

    The Problem had for sure to do with the docker-installation.

    I just tried a backup & restore on the new system without problems.

    Thanks,
    Rihcard

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Backup not starting’ is closed to new replies.