BackupMODX icon indicating copy to clipboard operation
BackupMODX copied to clipboard

Backup Fails

Open terrybarth opened this issue 6 years ago • 7 comments

I've got another site where the backup is failing. A2 Hosting Modx 2.7.0 BackupModx 2.0.1 PHP 7.2.14

I asked the A2 Hosting tech support to look at this and this what they found.

We can't provide or debug that to the line of code level, we apologize, but form we can see here, it is trying to write onto regular /tmp folder which is not directly accessible on your type of server, and you should talk to developer to ensure that files are going to /home/xxxxxxxx/.cagefs/tmp instead (which is correct location for tmp in your case)

Error log has this:

[2019-02-19 11:13:36] (ERROR @ /home/xxxxxxxx/public_html/core/components/backupmodx/model/backupmodx/backupmodx.class.php : 98) PHP warning: filesize(): stat failed for /home/xxxxxxxx/public_html/assets/backups/2019-02-19--111335--75ce/2019-02-19--111335--75ce.sql

terrybarth avatar Feb 19 '19 16:02 terrybarth

Yes, i have same issue.

AntonFix avatar Feb 20 '19 10:02 AntonFix

issue after update to 2.0.1-pl: see next post. 1.0.5-beta worked properly

Modx 2.7.1 PHP Version 7.2.15 backup modx

andreHome avatar Mar 04 '19 19:03 andreHome

now I understand backupmodx.targetPath concerning the new folder. The Part after the last slash is the first part of the filename. I found the backup-files on the server.

But still 0 MB are displayed and no download. Error log: PHP warning: filesize(): stat failed for...

After deinstall / install: now it works properly. no errors found. Maybe backupmodx.targetPath has to be inserted during installation Make sure there is no empty space at the beginning of the path.

andreHome avatar Mar 04 '19 19:03 andreHome

Having the same issue as well. System info is below: MODX 2.6.5-pl PHP Version 7.2.17 BackupMODX 2.0.1-pl Error message:

[2019-04-24 18:40:15] (ERROR @ /home1/xxxxxx/public_html/core/components/backupmodx/model/backupmodx/backupmodx.class.php : 98) PHP warning: filesize(): stat failed for /home/xxxxxx/public_html/core/components/backupmodx/backups/2019-04-24--184015--a30b/2019-04-24--184015--a30b.sql

jeffmiranda avatar Apr 24 '19 18:04 jeffmiranda

me too on a MAMP pro. tried to increase fileupload size in PHP.ini. but no luck

Lefthandmedia avatar Jun 28 '19 07:06 Lefthandmedia

I fixed my situation. by logging the $return of the backupDatabase i found the error code to be 127 since the error code 127 is about not being able to execute mysqldump. So i search my machine and found that mysqldump is in my MAMP folder. After setting the alias mysqldump setting (in MODX Backup systemsettings) to '/Applications/MAMP/Library/bin/mysqldump' it worked.

Lefthandmedia avatar Jun 29 '19 09:06 Lefthandmedia

Is this issue still valid with 3.0.x?

Jako avatar Sep 22 '19 21:09 Jako