• Resolved omniafausta

    (@omniafausta)


    Hi,

    I absolutely love this plugin and have been using it on several WP-sites without problems.
    But since a while I am having problems on 1 site (our own…)
    It will backup files, but won’t backup the database.
    The progress just stalls once it gets to table: wp_posts.

    Mon, December 16, 2013 13:59 – next resumption: 2 (after 88s) – show log – delete schedule
    Creating database backup (table: wp_posts)

    is what I see on the plugin page…

    Here is the log so far

    0000.010 (0) Opened log file at time: Mon, 16 Dec 2013 13:59:14 +0000
    0000.011 (0) UpdraftPlus WordPress backup plugin (https://updraftplus.com): 1.8.2 WP: 3.7.1 PHP: 5.3.27 (Linux server6 3.2.50 #1 SMP Wed Aug 28 12:22:58 CEST 2013 i686) MySQL: 5.1.69 Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 268435456 (used: 4.4M | 4.8M) multisite: N mcrypt: Y ZipArchive::addFile: Y W3TC/ObjectCache: N
    0000.012 (0) Free space on disk containing Updraft's temporary directory: 253791.7 Mb
    0000.036 (0) Tasks: Backup files: 0 (schedule: monthly) Backup DB: 1 (schedule: monthly)
    0000.052 (0) Requesting semaphore lock (d)
    0000.053 (0) Semaphore (d) was stuck, set lock time to 2013-12-16 13:59:14
    0000.055 (0) Semaphore (d) reset to 1
    0000.055 (0) Set semaphore last lock (d) time to 2013-12-16 13:59:14
    0000.056 (0) Semaphore lock (d) complete
    0000.059 (0) Backup run: resumption=0, nonce=5e462e4e2422, begun at=1387202354 (0s ago), job type=backup
    0000.060 (0) Scheduling a resumption (1) after 300 seconds (1387202654) in case this run gets aborted
    0000.098 (0) This backup run is not intended for files - skipping
    0000.099 (0) Beginning creation of database dump
    0000.117 (0) Table wp_options: Total expected rows (approximate): 310
    0000.151 (0) Table wp_options: Total rows added: 295 in 0.03 seconds
    0000.152 (0) Table wp_options: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_options.table.gz - 64 Kb)
    0000.155 (0) Table wp_users: Total expected rows (approximate): 1
    0000.157 (0) Table wp_users: Total rows added: 1 in 0.00 seconds
    0000.157 (0) Table wp_users: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_users.table.gz - 0 Kb)
    0000.160 (0) Table wp_usermeta: Total expected rows (approximate): 25
    0000.162 (0) Table wp_usermeta: Total rows added: 25 in 0.00 seconds
    0000.162 (0) Table wp_usermeta: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_usermeta.table.gz - 0 Kb)
    0000.178 (0) Table wp_commentmeta: Total expected rows (approximate): 0
    0000.187 (0) Table wp_commentmeta: Total rows added: 0 in 0.01 seconds
    0000.188 (0) Table wp_commentmeta: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_commentmeta.table.gz - 0 Kb)
    0000.213 (0) Table wp_comments: Total expected rows (approximate): 0
    0000.215 (0) Table wp_comments: Total rows added: 0 in 0.00 seconds
    0000.216 (0) Table wp_comments: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_comments.table.gz - 0 Kb)
    0000.243 (0) Table wp_links: Total expected rows (approximate): 7
    0000.253 (0) Table wp_links: Total rows added: 7 in 0.01 seconds
    0000.254 (0) Table wp_links: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_links.table.gz - 0 Kb)
    0000.256 (0) Table wp_postmeta: Total expected rows (approximate): 3521
    0000.402 (0) Table wp_postmeta: Total rows added: 3521 in 0.15 seconds
    0000.403 (0) Table wp_postmeta: finishing file (backup_2013-12-16-1359_Omniafausta_grafisch_ontwerp_5e462e4e2422-db-table-wp_postmeta.table.gz - 48 Kb)
    0000.406 (0) Table wp_posts: Total expected rows (approximate): 2784
    0300.319 (1) Opened log file at time: Mon, 16 Dec 2013 14:04:14 +0000
    0300.320 (1) UpdraftPlus WordPress backup plugin (https://updraftplus.com): 1.8.2 WP: 3.7.1 PHP: 5.3.27 (Linux server6 3.2.50 #1 SMP Wed Aug 28 12:22:58 CEST 2013 i686) MySQL: 5.1.69 Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 268435456 (used: 4.4M | 4.8M) multisite: N mcrypt: Y ZipArchive::addFile: Y
    0300.321 (1) Free space on disk containing Updraft's temporary directory: 253770.3 Mb
    0300.322 (1) Backup run: resumption=1, nonce=5e462e4e2422, begun at=1387202354 (300s ago), job type=backup, previous check-in=0.4s
    0300.323 (1) Scheduling a resumption (2) after 300 seconds (1387202954) in case this run gets aborted
    0300.340 (1) This backup run is not intended for files - skipping
    0300.341 (1) Resuming creation of database dump
    0300.343 (1) Table wp_options: corresponding file already exists; moving on
    0300.344 (1) Table wp_users: corresponding file already exists; moving on
    0300.345 (1) Table wp_usermeta: corresponding file already exists; moving on
    0300.345 (1) Table wp_commentmeta: corresponding file already exists; moving on
    0300.346 (1) Table wp_comments: corresponding file already exists; moving on
    0300.347 (1) Table wp_links: corresponding file already exists; moving on
    0300.347 (1) Table wp_postmeta: corresponding file already exists; moving on
    0300.349 (1) Table wp_posts: Total expected rows (approximate): 2784

    [Moderator Note: Please post log files between backticks or use the code button.]

    I really hope you can help!
    Thanks in advance

    https://www.ads-software.com/plugins/updraftplus/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Are you on some ultra-budget web hosting company that only lets PHP run for a tiny amount of time? (Long enough to spit out a WordPress page, but not long enough to do much more, such as dump out the database).

    Also, ask your web hosting company where your PHP log lives, and see if anything of interest is recorded in there. (I don’t think it will be – it looks like a timeout to me).

    David

    Thread Starter omniafausta

    (@omniafausta)

    it is a bit of a budget host, but I never had problems before, but I will contact them and see if they know what the problem is and where my php log is. Thanks!

    and to the moderator: sorry for forgetting about the backticks!

    Thread Starter omniafausta

    (@omniafausta)

    I have sent the host an email, I will keep you updated on what they say, but… in the end it did finally make the backup! So it does work, just VERY slowly. (it took 3/4 hour…)

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Great – please can you post the entire backup log? Use pastebin.com if it’s long. The number of rows in the database table – under 3000 – is not big. So, I suspect your host was under very heavy load and had nearly ground to a halt at first, but that the load cleared later.

    David

    Thread Starter omniafausta

    (@omniafausta)

    hi,
    thanks for looking into this.
    What surprises me that it is always at the same spot that it stalls (always at wp_post)
    That happened on several occasions, on different dates.

    Anyway here is the log on pastbin:
    https://pastebin.com/yz5X00H6

    thanks again!
    Joke
    Omniafausta

    Thread Starter omniafausta

    (@omniafausta)

    I also had a reply from my host saying they have a maximum time a script is allowed to run, and they are asking how much time the script needs, so they can check if they can set it at the needed time.

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    It was only took 2 seconds the time it succeeded – you can see that by looking at the log file. So, I suspect that all the times it failed, the server was having a problem.

    David

    Thread Starter omniafausta

    (@omniafausta)

    Hi David,

    thanks again for your quick response, I will let my host know, and hope they can find out what the problem with their server was.

    Joke

    Thread Starter omniafausta

    (@omniafausta)

    Hi again

    My host tells me they did not have any problems with their server.

    And server-trouble does not explain why it should always stall at table:wp_post. It does that every time wether I only backup the database or files + database.

    could my database be corrupted? I am not very good at MySql, but it seemed ok when I checked it.
    I am totally clueless here ??

    Should I try to uninstall and reinstall the plugin? any chance that would help? Or is that totally silly.

    Thanks again for your help!
    Joke

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    In the log you posted to pastebin.com, it eventually succeeded. It dumped out the posts table and finished.

    The fact that it can succeed indicates a problem when failing either of lack of time allowed in the hosting, or lack of memory available. If you can find your PHP error logs, then that may have something useful in.

    David

    Thread Starter omniafausta

    (@omniafausta)

    Hi,

    Thanks again (sorry for being such a pain)
    I’ll try to get those logs!

    Joke

    Thread Starter omniafausta

    (@omniafausta)

    Hi,

    I asked my host for those logs, they didn’t give me the logs but looked into it themselves.
    Their answer was:
    It has to do with the time, indeed.

    Ans they asked me to ask you:
    (hopefully I am translating correctly…)
    Is it possible that we call it as a cronjob, then we can maybe work around the problem

    I hope this means something to you, because it is beyond me ??

    thanks again!

    Joke

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    To run as a cronjob from the shell, these are the instructions:
    https://updraftplus.com/faqs/can-i-run-backups-from-the-shell/

    If you forward that to them, they may be able to set it up for you.

    David

    Thread Starter omniafausta

    (@omniafausta)

    thanks!!
    I’ll send it to them.

    Thread Starter omniafausta

    (@omniafausta)

    Unfortunatly they haven’t replied yet, and I will be offline for a few weeks… I will let you know once I know more.

    Thanks again for all your help, and in advance:
    have a merry christmass and a very happy new year!

    Joke

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘trouble backing up the database’ is closed to new replies.