cancel
Showing results for 
Search instead for 
Did you mean: 

Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

Tried to upgrade from CE 2.2.4 to CE 2.2.5 via composer. Half way it came back with message saying not enough memory and the whole process stopped. The worst to this is I found most files under public_html were removed during upgrade.

 

Any suggest how I can recover back to CE 2.2.4 at least i have my website back and running? Just do another composer upgrade to CE 2.2.4 version?

 

Why upgrade from 2.2.4 to 2.2.5 causes memory issue? I use shared server so have limited space. But in all previous upgrades (from 2.2.1 all the way to 2.2.4), this never happened. I assume upgrade should use less space than full installation?

4 REPLIES

Re: Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

You can downgrade your Magento version by just change in composer.json file,

You need to replace below the line in your composer.json file,

Replace,

"version": "2.2.5", to "version": "2.2.4",

and  Replace,

"magento/product-community-edition": "2.2.5", tp "magento/product-community-edition": "2.2.4",


Now run the command from the root of your Magento,

composer update
If Issue Solved, Click Kudos/Accept As solutions.

Re: Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

I did that to put the version back to 2.2.4. However, there is another issue. It appears that everything under bin folder is gone. So after update, when I want to disable maintenance mode, it failed with error message "Could not open input file: bin/magento". 

 

How can the upgrade to 2.2.5 wipe out magento folder completely? What can i do from here? Re-install from scratch?

Re: Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

You can download bin folder from Magento Github,

https://github.com/magento/magento2/tree/2.2.4/bin

 

Thanks.

If Issue Solved, Click Kudos/Accept As solutions.

Re: Run out of memory storage when upgrade from CE 2.2.4 to CE 2.2.5

Thanks Rakesh. After downloaded bin, I found there are more files missing. Looks like I am going to download the whole 2.2.4 and upload the missing ones. Any idea why upgrade could cause so many critical files deleted?