Unable to update from v3.7.11 to v3.7.12

Hi, I am trying to update a development website from v3.7.11 to v3.7.12, with

php artisan october:update

but I get the following error:

Loading composer repositories with package information
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2621440 bytes) in /home/…/vendor/composer/composer/src/Composer/DependencyResolver/DefaultPolicy.php on line 94

My server has enough memory and resources, and upon checking, this happens when I try to update other production websites as well - with the same error. I can install a clean, latest version without issues, but updating crashes.

Currently, the only workaround is to install a clean, latest version and manually migrate the files, which is time-consuming and not ideal.

Has anyone encountered this before and how do I fix it?

This looks like composer itself implementing a limit, try the following

COMPOSER_MEMORY_LIMIT=-1 composer update

See if that fixes it. And if so, a permanent fix would be

echo 'export COMPOSER_MEMORY_LIMIT=-1' >> ~/.bashrc
source ~/.bashrc

That worked, thanks!

1 Like