Skip to content
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

Fatal Memory Error #81

Closed
kcristella opened this issue Mar 9, 2016 · 9 comments
Closed

Fatal Memory Error #81

kcristella opened this issue Mar 9, 2016 · 9 comments

Comments

@kcristella
Copy link

The backup process is failing after performing a composer update today (3/9/2016). The same configuration was working fine yesterday (3/8/2016) before composer update. I am backing up many files as I have a standalone Laravel app installed on my server for laravel-backup that is backing up four domains (three of which are Laravel apps).

Starting backup...
Dumping database db1...
Dumping database db2...
Dumping database db3...
Dumping database db4...
Determining files to backup...
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /path/to/zbackup/vendor/spatie/laravel-backup/src/Tasks/Backup/FileSelection.php on line 133
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes) in /path/to/zbackup/vendor/symfony/debug/Exception/FatalErrorException.php on line 1
@freekmurze
Copy link
Member

Woa, there's a lot of memory being used there.

Do you know which specific version you were using yesterday? Does that version work if you install that specific version again?

Do you backup significantly more files than yesterday? Or bigger files?

Do you have any more info that'll allow me to recreate your issue?

@kcristella
Copy link
Author

Thanks for the quick reply. It works in 3.0.4 but fails in 3.0.5 (I just tested by reverting back to 3.0.4). No significant file changes from yesterday or very large files.

 - Removing spatie/laravel-backup (3.0.5)
 - Installing spatie/laravel-backup (3.0.4)

@kcristella
Copy link
Author

Two more tidbits:

  1. May be related to PHP 7 (can't reproduce with PHP 5.6 yet but still testing)
  2. Backup consists of 7921 files

@freekmurze
Copy link
Member

One more question before I dive deep into this: what's your Laravel version?

@kcristella
Copy link
Author

Laravel Framework version 5.2.22

@kcristella
Copy link
Author

Total backup size for successful backup of 7921 files = 179.7 MB

@freekmurze
Copy link
Member

Could you try updating to the latest version?

Could you look inside the directory you want to backup if there are any hidden directories (starting with a dot) that you don't want to back up?

@kcristella
Copy link
Author

Seems to be working well using the newest version + PHP 7. Will continue to monitor and update the issue if anything comes up. Thanks.

@freekmurze
Copy link
Member

Cool, reopen this issue if anything new comes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants