After upgrading my local instance of magento 2.1 to 2.1.2 the bin/magento tools stopped working. I do not get an error or any output. For instance when I run php bin/magento setup:upgrade
after upgrade it seems like it is doing something, but get no output and does not seem to have done the upgrade on modules. Anyone else seen this issue?
-
Does simple call to bin/magento returns anything?– Sergii IvashchenkoCommented Feb 3, 2017 at 17:53
-
Nope it doesn't– Aditya YadavCommented Feb 21, 2020 at 6:51
3 Answers
You should actually check error_log file on magento root which will give out errors for cli runtime errors. Also try using -vvv flag to set verbose level.
It was memory shortfall for me.
You should check the permissions for the bin/magento
folder to make sure that after the upgrade (especially if you did the upgrade as a different user then the site user) you still have the right ownership.
After that, clear the var
folder's cache
generation
page_cache
and view_preprocessed
folders as these can cause all kinds of havoc if not cleared.
Other then that, spell out more clearly what it is that happens when the site hangs.
Just as an FYI, I thought setup:upgrade
had frozen on me because there was no output but it eventually finished after a good 15 minutes. Might be worth leaving it for an hour or checking disk activity if you think it's frozen.