PetaByet / cdp

Simple & Open Source Server Backups
https://cdp.me
GNU General Public License v2.0
123 stars 39 forks source link

Fatal error: Allowed memory size #11

Closed stevetoza closed 9 years ago

stevetoza commented 9 years ago

When running a file backup i'm getting the error

Fatal error: Allowed memory size of 3145728000 bytes exhausted (tried to allocate 1773227473 bytes) in /var/www/html/libs/phpseclib/Crypt/Base.php on line 1350

What settings would need to be changed to correct this

Thanks

PetaByet commented 9 years ago

PHP memory limit. You should run the backup via the command line, as there will be no limits.

stevetoza commented 9 years ago

Ran this via the command line get the below, also looks like the backup file is there but when pressing "View Backups" the backup doesn't show.

PHP Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827

Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827 PHP Warning: unpack(): Type N: not enough input, need 4, have 1 in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826

Warning: unpack(): Type N: not enough input, need 4, have 1 in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826 PHP Warning: extract() expects parameter 1 to be array, boolean given in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826

Warning: extract() expects parameter 1 to be array, boolean given in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826 PHP Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827

Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827 PHP Warning: unpack(): Type N: not enough input, need 4, have 1 in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826

Warning: unpack(): Type N: not enough input, need 4, have 1 in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826 PHP Warning: extract() expects parameter 1 to be array, boolean given in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826

Warning: extract() expects parameter 1 to be array, boolean given in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2826 PHP Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827

Notice: Undefined variable: length in /var/www/html/libs/phpseclib/Net/SSH2.php on line 2827 PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1773235660 bytes) in /var/www/html/cron.php on line 191

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1773235660 bytes) in /var/www/html/cron.php on line 191

PetaByet commented 9 years ago

Hey,

Could you please send your .json databases (remove sensitive information) to info at petabyet dot com and I'll have you look.

PetaByet commented 9 years ago

I can't see anything wrong with the db themselves unfortunately. Let me know if you would like me to log in to the server to have a look.