cancel
Showing results for 
Search instead for 
Did you mean: 

setup:di:compile hanging at 4/7

SOLVED

setup:di:compile hanging at 4/7

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: setup:di:compile hanging at 4/7

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

View solution in original post

5 REPLIES 5

Re: setup:di:compile hanging at 4/7

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.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: setup:di:compile hanging at 4/7

@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

Re: setup:di:compile hanging at 4/7

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 !

if issue solved,Click Kudos & Accept as Solution

Re: setup:di:compile hanging at 4/7

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

Re: setup:di:compile hanging at 4/7

@caos989 you can "Accept it Solution" so that it wiould be helpful for others.

 

Thanks