Magento – Magento 2 CE upgrade hangs while update application is running

magento2upgrade

I have a clean M2 CE install.
When trying to upgrade from 2.02 to 2.04, the update takes forever and seems to hang.

The System Upgrade Status is "Update application is running".

In the Console Log, the last two lines of code are:

[2016-04-18 15:08:06 UTC] Starting composer update...
[2016-04-18 15:08:06 UTC] ./composer.json has been updated

I don't see a progression bar or anything else that indicates that the update is still being carried out.

Should I just wait longer or should I upgrade in a different way? Or do I need to change settings, e.g. on the server?

Best Answer

I ended up removing the .maintenance.flag from /magento/var to get access back to my store. the upgrade did not finish. Going back in "settings / web setup wizard" brings me back to the same console message.

Update: The solution is to do an upgrade on the command line:

composer require magento/product-community-edition 2.0.4 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex

You may need to do this as well, if you have a 500 HTTP Error

chown -R :apache .