I’ve been trying to update to v5.7.3 using the self updater. Currently on v5.6.19-W123
It’s failing with “Server error”
storage/laravel.log showed this:
[2023-08-24 03:56:42] production.ERROR: Allowed memory size of 629145600 bytes exhausted (tried to allocate 36864 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 629145600 bytes exhausted (tried to allocate 36864 bytes) at /home/invoiceapp/invoiceninja/app/Http/Controllers/SelfUpdateController.php:76)
[stacktrace]
#0 {main}
"}
[2023-08-24 03:58:34] production.ERROR: Allowed memory size of 734003200 bytes exhausted (tried to allocate 36864 bytes) {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 734003200 bytes exhausted (tried to allocate 36864 bytes) at /home/invoiceapp/invoiceninja/app/Http/Controllers/SelfUpdateController.php:76)
[stacktrace]
#0 {main}
"}
I increased the PHP memory from 530M to 630M then to 730M and no difference
Then I increased the PHP memory to 2000M which is much more than needed and got this error on the front-end (nothing in storage/laravel.log for this):
FormatException: Unexpected end of input (at character 1)
^
It may help to increase the server PHP memory limit
The self updater used to work fine on this environment even with only 256M of memory, but now it’s failing all self updates.