PHP Memory Error on Migration from 4.5.48 to 5.3

Hey There,

I’ve been working getting v5 docker running on my swarm cluster. I’m so very close! On migration my v5 container is restarting and giving me this error:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /var/www/app/vendor/laravel/framework/src/Illuminate/Queue/Queue.php on line 158
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 327680 bytes) in /var/www/app/vendor/symfony/polyfill-intl-idn/Resources/unidata/mapped.php on line 4

Any recommendations on the best way to increase the memory limit, specific to invoice ninja and docker?

Usually I would inject a config in docker compose and replace the .htaccess file, but I’m curious if anyone has any better ways/ideas?

Sincerely,
Jared

Hi,

I’m not familiar with Docker but with PHP in general you can adjust the limits in the php.ini file.

1 Like