Database backup failed because memory is exhausted
-
Hi there,
This error only occurs when database backup is run, files backup and xml backup are working properly. The plugin has been working perfectly until yesterday and the site hadn’t been touched before the problem occurred.
I set the memory limit to 256M, but based on the error log, it seems like allocating more than 1GB. The version of BackWPup I am using is 3.4.4, I also tried 3.4.1 and it returned the same result. Also, running this task caused my CPU usage to 100%, even after the task is aborted, I called my hosting company and they said the task was still running.
I am running this site on a shared hosting and I have 5 other sites running on this shared hosting as well, but there is no problem running database backup on another site.
What could be the issue here?
Thanks in advance.
Please find the following error log.
[INFO] BackWPup 3.4.1; A project of Inpsyde GmbH
[INFO] WordPress 4.9.1 on
[INFO] Log Level: Debug
[INFO] BackWPup job: Testing Backup to Folder; DBDUMP
[INFO] Runs with user: (0)
[INFO] BackWPup no automatic job start configured
[INFO] BackWPup job started manually
[INFO] PHP ver.: 7.0.27 (64bit); litespeed; Linux
[INFO] Maximum PHP script execution time is 300 seconds
[INFO] Script restart time is configured to 20 seconds
[INFO] MySQL ver.: 10.2.12-MariaDB
[INFO] Web Server: LiteSpeed
[INFO] curl ver.: 7.54.0; OpenSSL/1.0.2k
[INFO] Temp folder is: /home/theparad/public_html/assets/uploads/backwpup-b5e2e6-temp/
[INFO] Logfile is: /home/theparad/public_html/assets/uploads/backwpup-b5e2e6-logs/backwpup_log_b5e2e6_2018-01-12_10-01-36.html
[INFO] Backup file is: /home/theparad/public_html/assets/uploads/backwpup-test/backwpup_b5e2e602_2018-01-12_10-01-36.zip
[12-Jan-2018 10:01:36] 1. Try to backup database …
[12-Jan-2018 10:01:36] Connected to database theparad_parade on localhost
[12-Jan-2018 10:01:36] Backup database table “tswp_commentmeta” with “~0” records
[12-Jan-2018 00:01:36 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1634037384 bytes) in /home/theparad/public_html/assets/plugins/backwpup/inc/class-mysqldump.php on line 506 [12-Jan-2018 10:01:36] ERROR: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1634037384 bytes)
[12-Jan-2018 10:01:36] Restart after 1 seconds.
[12-Jan-2018 10:01:38] 2. Try to backup database …
[12-Jan-2018 10:01:38] Connected to database theparad_parade on localhost
[12-Jan-2018 00:01:38 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1279410544 bytes) in /home/theparad/public_html/assets/plugins/backwpup/inc/class-mysqldump.php on line 506 [12-Jan-2018 10:01:38] ERROR: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1279410544 bytes)
[12-Jan-2018 10:01:38] Restart after 1 seconds.
[12-Jan-2018 10:01:41] 3. Try to backup database …
[12-Jan-2018 10:01:41] Connected to database theparad_parade on localhost
[12-Jan-2018 00:01:41 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1279410544 bytes) in /home/theparad/public_html/assets/plugins/backwpup/inc/class-mysqldump.php on line 506 [12-Jan-2018 10:01:41] ERROR: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1279410544 bytes)
[12-Jan-2018 10:01:41] Restart after 1 seconds.
[12-Jan-2018 10:01:43] ERROR: Step aborted: too many attempts!
[12-Jan-2018 10:01:43] 1. Trying to generate a manifest file …
[12-Jan-2018 10:01:43] Added manifest.json file with 4.35 KB to backup file list.
[12-Jan-2018 10:01:44] 1. Trying to create backup archive …
[12-Jan-2018 10:01:44] Compressing files as ZipArchive. Please be patient, this may take a moment.
[12-Jan-2018 10:01:44] Adding Extra files to Archive
[12-Jan-2018 10:01:44] Backup archive created.
[12-Jan-2018 10:01:44] Archive size is 1.76 KB.
[12-Jan-2018 10:01:44] 2 Files with 4.57 KB in Archive.
[12-Jan-2018 10:01:45] ERROR: Job has ended with errors in 9 seconds. You must resolve the errors for correct execution.
- The topic ‘Database backup failed because memory is exhausted’ is closed to new replies.