• Resolved clart

    (@clart)


    The backup runs on schedule but fails.
    I tried it several times manually and it always fails when creating the zip file around 11Mb in size. Heres the screen message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Backup failed!

    Please advise.
    Thank you.

    https://www.ads-software.com/plugins/cyan-backup/

Viewing 15 replies - 16 through 30 (of 76 total)
  • Thread Starter clart

    (@clart)

    Ok, I will look out for the new version.

    Meanwhile, I had a thought..
    It could be its running out of memory ?

    Maybe update the zip file in chunks, e.g. 1000 files a time ?

    Plugin Author Greg Ross

    (@gregross)

    It could be, but the zip routine deals with each file individually so it seems unlikely. Especially since it happens when you include any of the plugin directories.

    1.6.2 is up, you should see it any time.

    Thread Starter clart

    (@clart)

    Ok, got 1.6.2 installed and activated.

    Tried backup with plugins dir included – failed.
    Now theres no “Backup Failed” message, backup button is enabled with red cross image next to it and these;

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Yes, it shows same error twice.

    I dont know if you left in by mistake, but this message at bottom of options page has got the word “winton” in it;

    WARNING: Only check this if no backup is running. This will delete any file in the archive path that starts with “winton” but is not a zip/log file.

    when failed the status.log contained this;
    69
    Archiving SQL dump…
    active
    /homepages/35/d30352212/htdocs/winton
    2014-03-06 23:32:480

    Plugin Author Greg Ross

    (@gregross)

    What were the last few lines in the backup log file?

    “winton” is the directory you have wordpress installed, it will change in that message for each install.

    Internal server error is almost always a missing library of some kind, but for the life of me I can’t see how a directory in the install would cause it.

    Thread Starter clart

    (@clart)

    I had cleaned up from before, so ran it again.
    This time I got the normal Backup failed! message and just one of the Internal Server Error.

    Here is the last few lines of the log file;

    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/default.html…
    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/new.php…
    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/index.php…
    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/backup…
    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/wp-phpinfo.php…
    [2014-03-07 03:02:37] Archiving /homepages/35/d30352212/htdocs/winton/makezip.php…
    [2014-03-07 03:02:37] Archiving SQL dump..

    and here is the status.log ;

    69
    Archiving SQL dump…
    active
    /homepages/35/d30352212/htdocs/winton
    2014-03-07 03:02:370

    Note: when select the option to clean up the temporary files after this fail, the backup directory structure does not get deleted and neither does the log file, although the message at the top of Options page says different;

    CYAN Backup Options

    winton.20140307.030147 deleted from the archive directory.

    winton.20140307.030147.zip.5V79J2 deleted from the archive directory.

    winton.20140307.030148.sql deleted from the archive directory.

    Configuration saved!

    Directory structure “winton.20140307.030147” is still there and so is the log file “winton.20140307.030147.log” 2Mb in size.

    Plugin Author Greg Ross

    (@gregross)

    I’ll have to add some more debug info to the log file, I should have something for you to try later today.

    Thread Starter clart

    (@clart)

    just out of interest, I excluded everything except wp-content/plugins, ran the backup and it was successful.

    Now I will remove the exclusions one by one and keep trying backup to see where it fails.

    Thread Starter clart

    (@clart)

    Ok, I found the problem !

    The webspace for the wordpress site used to contain a joomla site.

    Joomla has been ditched in favour of wordpress and the joomla site has been converted to static html pages to display the old site whilst the new one is completed.
    Although most all the joomla files have gone, there are some remnants, necessary to make the html pages work.
    The one that appears to cauing the problem with the backup is a directory called plugins in the wordpress root.
    With this excluded, all of wordpress backs up fine.
    With it included, the backup fails.

    The root directory structure looks like this;
    winton/.metadata
    winton/backup
    winton/blogs
    winton/plugins <== this is the remnant from joomla
    winton/tmp
    winton/wp-admin
    winton/wp-content
    winton/wp-includes

    That plugins directory looks like this;
    winton/plugins
    winton/plugins/content
    winton/plugins/content/plugin_besps
    winton/plugins/content/plugin_besps/besps.css 2k
    winton/plugins/content/plugin_besps/besps.js 5k
    winton/plugins/content/plugin_besps/besps.png 161

    I cannot see anything in there that should cause the backup to fail, there are only 2 subdirs and 3 files, it must be something to do with the directory name.

    Just to make sure i’ve included and excluded it several times and run the backup, which fails every time its included.. weird !

    The backup is successful every time with that directory excluded, it backs up all of the wordpress site in about 15 secs and the zipfile is 50Mb.

    Plugin Author Greg Ross

    (@gregross)

    Check the directory permissions, otherwise I don’t know why I would fail.

    Plugin Author Greg Ross

    (@gregross)

    Also, if there’s nothing sensitive in the directory you could send it to me and I’ll do some testing with it.

    Thread Starter clart

    (@clart)

    The directory and subdirs are 755, the files are 604 (no group).
    Maybe thats the problem ?

    Theres nothing sensitive in there, I can send you if you want.

    Plugin Author Greg Ross

    (@gregross)

    Try changing the rights to 755 all the way down and see if that works, if it still fails I’ll get you to send the files to me and take a look.

    Thread Starter clart

    (@clart)

    I renamed the “problem” directory to “jplugins” (/winton/jplugins), excluded that, ran the backup and it failed.

    I renamed it back to “plugins” (/winton/plugins), excluded that, ran the backup and it succeeded.

    I noticed that when it fails, the main log file is 2.5Mb, but when it succeeds, the log file is 900k.

    So I did a diff on the two log files and what I found that is that the failed log file contains entries for winton/wp-content/plugins but the successful log file does not.

    Therefore, Im thinking now that the winton/plugins “problem” directory is a red herring and the backup failing is nothing to do with it.

    What is actually happening is that when I exclude winton/plugins, the backup process also exludes winton/wp-content/plugins and thats why the backup succeeds.

    That explains why the backup failed when I renamed winton/plugins to winton/jplugins and excluded it, the backup excluded winton/jplugins and then tried to process winton/wp-content/plugins, which caused it to fail.

    There appears to be a problem with the exclusion matching in that, excluding winton/plugins also excludes winton/wp-content/plugins, when it should not.

    Here are the last few lines of the successful backup log:
    [2014-03-08 06:00:33] Deleting /homepages/35/d30352212/htdocs/winton/backup/winton.20140308.060024/winton.20140308.060024.sql…
    [2014-03-08 06:00:33] Deleting /homepages/35/d30352212/htdocs/winton/backup/winton.20140308.060024…
    [2014-03-08 06:00:33] Elapsed Time: 9 seconds
    [2014-03-08 06:00:33] Backup complete!
    [2014-03-08 06:00:33] Backup size: 47MB

    Here are the last few lines of the failed backup log:
    [2014-03-10 15:34:27] Archiving /homepages/35/d30352212/htdocs/winton/backup…
    [2014-03-10 15:34:27] Archiving /homepages/35/d30352212/htdocs/winton/wp-phpinfo.php…
    [2014-03-10 15:34:27] Archiving /homepages/35/d30352212/htdocs/winton/jplugins…
    [2014-03-10 15:34:27] Archiving SQL dump…

    Plugin Author Greg Ross

    (@gregross)

    I found the bug in the exclusion code and I’ve added some more debug logging, there will be a new version up later tonight you can try.

    It won’t fix the issue but it may give some more info in to the log file to try and track it down.

    The plugin was working untill I updated it tonight to 1.6.3.
    I have 2 instanced of wordpress, both in local (wamp, windows) and remote (nginx, mysql, debian wheezy).
    In all 4 total istances the backup function stopped working as soon as I updated to 1.6.3.
    Here is the PHP error I receive on the bakcup page:
    Fatal error: Maximum function nesting level of ‘100’ reached, aborting! in C:\wamp\www\realpd\wp-content\plugins\cyan-backup\includes\class-wp-backuper.php on line 538
    Call Stack
    # Time Memory Function Location
    1 0.0004 252128 {main}( ) ..\index.php:0
    2 0.0006 255648 require( ‘C:\wamp\www\realpd\wp-blog-header.php’ ) ..\index.php:17
    3 0.1671 16483368 wp( ) ..\wp-blog-header.php:14
    4 0.1671 16483576 WP->main( ) ..\functions.php:808
    5 0.1727 16548152 do_action_ref_array( ) ..\class-wp.php:616
    6 0.1727 16549168 call_user_func_array ( ) ..\plugin.php:507
    7 0.1727 16549296 WP_AddRewriteRules->wp( ) ..\plugin.php:507
    8 0.1727 16549504 call_user_func ( ) ..\class-addrewriterules.php:50
    9 0.1727 16549552 CYANBackup->json_request( ) ..\class-addrewriterules.php:50
    10 0.1732 16551880 CYANBackup->json_backup( ) ..\cyan-backup.php:525
    11 0.1768 16920624 WP_Backuper->wp_backup( ) ..\cyan-backup.php:582
    12 0.1861 16927776 WP_Backuper->get_files( ) ..\class-wp-backuper.php:403
    13 0.1874 16930640 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    14 0.1877 16931648 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    15 0.1879 16932664 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    16 0.1882 16933752 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    17 0.1885 16934784 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    18 0.1887 16935816 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    19 0.1890 16936856 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    20 0.1892 16937904 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    21 0.1895 16938960 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    22 0.1898 16940016 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    23 0.1900 16941080 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    24 0.1903 16942280 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    25 0.1906 16943360 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    26 0.1908 16944440 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    27 0.1911 16945528 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    28 0.1914 16946624 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    29 0.1916 16947728 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    30 0.1919 16948832 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    31 0.1921 16949944 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    32 0.1924 16951064 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    33 0.1926 16952192 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    34 0.1929 16953320 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    35 0.1932 16954456 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    36 0.1934 16955600 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    37 0.1937 16956752 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    38 0.1939 16957904 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    39 0.1942 16959064 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    40 0.1945 16960488 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    41 0.1947 16961664 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    42 0.1950 16962840 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    43 0.1952 16964024 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    44 0.1955 16965216 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    45 0.1958 16966416 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    46 0.1960 16967616 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    47 0.1963 16968824 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    48 0.1966 16970040 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    49 0.1968 16971264 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    50 0.1970 16972488 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    51 0.1973 16973720 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    52 0.1976 16974960 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    53 0.1978 16976208 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    54 0.1980 16977456 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    55 0.1984 16978712 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    56 0.1986 16979976 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    57 0.1989 16981248 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    58 0.1991 16982520 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    59 0.1994 16983800 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    60 0.1996 16985088 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    61 0.1999 16986384 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    62 0.2002 16987680 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    63 0.2004 16988984 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    64 0.2007 16990296 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    65 0.2010 16991616 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    66 0.2012 16992936 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    67 0.2015 16994264 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    68 0.2017 16995600 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    69 0.2020 16996944 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    70 0.2023 16998288 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    71 0.2025 16999640 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    72 0.2028 17001512 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    73 0.2031 17002880 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    74 0.2034 17004248 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    75 0.2036 17005624 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    76 0.2039 17007008 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    77 0.2042 17008400 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    78 0.2045 17009792 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    79 0.2047 17011192 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    80 0.2050 17012600 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    81 0.2053 17014016 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    82 0.2055 17015432 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    83 0.2058 17016856 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    84 0.2061 17018288 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    85 0.2063 17019728 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    86 0.2066 17021168 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    87 0.2068 17022616 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    88 0.2071 17024072 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    89 0.2074 17025536 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    90 0.2076 17027000 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    91 0.2079 17028472 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    92 0.2082 17029952 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    93 0.2084 17031440 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    94 0.2087 17032928 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    95 0.2090 17034424 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    96 0.2092 17035928 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    97 0.2095 17037440 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    98 0.2098 17169936 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545
    99 0.2100 17171456 WP_Backuper->get_files( ) ..\class-wp-backuper.php:545

Viewing 15 replies - 16 through 30 (of 76 total)
  • The topic ‘Backup Failed’ is closed to new replies.