-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.2.1] Magento Database Backup Command Fails (Fix included) #12877
Comments
Possible fix mentioned by ChrisK on Feb 8 at 6:51 Looks like the db dump crashed while trying to add rows for or around "importexport_importdata" table A quick glance it looks like a small issue with not checking for a non-zero denominator. The code/file in question is: https://github.com/magento/magento2/blob/2.2/app/code/Magento/Backup/Model/Db.php#L157 ChrisK indicated that he managed to fix the issue by overriding/localing the file and modifying the line
to
And keeping the rest intact |
The Database backup completes successfully after making the change:
Replace Line 157: With:
Please update the code/file with this fix: https://github.com/magento/magento2/blob/2.2/app/code/Magento/Backup/Model/Db.php#L157 |
@azeemism Could you create PR please? Thanks! |
Hi @PieterCappelle , I have never created a PR before. I am not sure how to create one. |
I am fixing this issue as per @azeemism and creating a pull request #mm18in |
Hi @azeemism. Thank you for your report. The fix will be available with the upcoming patch release. |
Hi @azeemism. Thank you for your report.
The fix will be available with the upcoming patch release. |
The magento backup command fails under magento 2.2.1. There was no such issue under magento 2.1.8. They are no errors in the database log.
Preconditions
Steps to reproduce
php bin/magento setup:backup --code --media --db
php bin/magento setup:backup --db
Expected result
[SUCCESS]: DB backup completed successfully.
Actual result
The text was updated successfully, but these errors were encountered: