Magento2: Deploy stuck on compilation

Created on 23 Oct 2020  ·  5Comments  ·  Source: magento/magento2

Preconditions (*)

  1. Magento 2.3.3

Steps to reproduce (*)

  1. rm -rf generated/*
  2. bin/magento setup:di:compile

Expected result (*)

Finished compilation.

Actual result (*)

Stuck compilation.

Compilation was started.
Interceptors generation... 4/7 [================>-----------]  57% 20 secs 267.0 MiB

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • [x] Severity: S0 _- Affects critical data or functionality and leaves users without workaround._
  • [ ] Severity: S1 _- Affects critical data or functionality and forces users to employ a workaround._
  • [ ] Severity: S2 _- Affects non-critical data or functionality and forces users to employ a workaround._
  • [ ] Severity: S3 _- Affects non-critical data or functionality and does not force users to employ a workaround._
  • [ ] Severity: S4 _- Affects aesthetics, professional look and feel, “quality” or “usability”._
needs update Reported on 2.3.3

Most helpful comment

Solved it with using bin/magento -vvvv setup:di:compile in developer mode.

For some reason a custom module did not want to compile so had to uninstall it. Reason is unknown.

All 5 comments

Hi @Zyles. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


  • Join Magento Community Engineering Slack and ask your questions in #github channel.

    :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

Hi @ihor-sviziev. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

Hi @Zyles,
I believe some custom module might cause this issue.
Do you have this issue on the clean magento installation, without any custom modules installed? If no - try to remove them one by one and see which causing this issue.

If the issue is caused by a custom module, then there is potentially still a bug in Magento itself. I'm suspecting that some kind of endless loop is being triggered somehow, and the source of that could still lie in Magento's code being triggered by a specific way a custom module has been programmed.

So @Zyles: if you have found out more information and can boil the issue down to a specific module, it might still be interesting to figure out how this problem is being triggered.

Solved it with using bin/magento -vvvv setup:di:compile in developer mode.

For some reason a custom module did not want to compile so had to uninstall it. Reason is unknown.

Was this page helpful?
0 / 5 - 0 ratings