Hi,
i just installed Magento 2 via Softaculous and I wanted to install the Migration tool.
My Problem is that setup:di:compile is hanging at 4/7 everytime.
I already deactivated the module and tried to compile again but I have the same error.
This was my steps:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush
can you help me?
Solved! Go to Solution.
I found the problem.
After installing the module via Terminal some directories was set to a wrong user it was: 0.
I don't know why this happens but my solution was to change the user to 1002
chown -R 1002:1002 home/USERNAME/public_html/magento2
Hello @caos989
Please check if you have installed any other third party extension inside app/code folder. Try removing extension if there is any inside that and then run the compile command.
@caos989 please check the deploy mode and if it is not developer then set it as developer using below command.
php bin/magento deploy:mode:set developer
Hi @caos989
May be it is hang due to a memory_limit issue.
I would suggest you to run the same command by passing the memory limit, run following command :
php -dmemory_limit=5G bin/magento setup:di:compile
Try it and let us know if you still found any issue on the same.
Hope it helps !
I found the problem.
After installing the module via Terminal some directories was set to a wrong user it was: 0.
I don't know why this happens but my solution was to change the user to 1002
chown -R 1002:1002 home/USERNAME/public_html/magento2