I'm trying to submit an extension to the Magento Marketplace, but it fails on the "Installation & Varnish Test":
> php bin/magento deploy:mode:set production Enabling maintenance mode Starting compilation Something went wrong while compiling generated code. See the error log for details. Disabling maintenance mode Command returned non-zero exit code: `/usr/bin/php -f /var/www/html/bin/magento setup:di:compile`
If I try this locally (in a vanilla installation), everything works as expected:
bin/magento deploy:mode:set production Enabling maintenance mode Starting compilation Compilation was started. %message% 0/7 [>---------------------------] 0% < 1 sec 56.0 MiB%message% 0/7 [>---------------------------] 0% < 1 sec 56.0 MiBProxies code generation... 0/7 [>---------------------------] 0% < 1 sec 56.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 2 secs 60.0 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 2 secs 60.0 MiB Repositories code generation... 2/7 [========>-------------------] 28% 29 secs 170.0 MiB Service data attributes generation... 2/7 [========>-------------------] 28% 29 secs 170.0 MiB Service data attributes generation... 3/7 [============>---------------] 42% 30 secs 170.0 MiB Application code generator... 3/7 [============>---------------] 42% 30 secs 170.0 MiB Application code generator... 4/7 [================>-----------] 57% 1 min 192.0 MiB Interceptors generation... 4/7 [================>-----------] 57% 1 min 192.0 MiB Interceptors generation... 5/7 [====================>-------] 71% 1 min 210.0 MiB Area configuration aggregation... 5/7 [====================>-------] 71% 1 min 210.0 MiB Area configuration aggregation... 6/7 [========================>---] 85% 1 min 288.0 MiB Interception cache generation... 6/7 [========================>---] 85% 1 min 288.0 MiB Interception cache generation... 7/7 [============================] 100% 2 mins 288.0 MiB Generated code and dependency injection configuration successfully. Compilation complete ... etc ...
I found an older article on Stack Exchange (https://magento.stackexchange.com/questions/158910/errors-during-installation-submitting-package-to-...) of somebody with the same issue, and it seems that some core team members answered those. One of these answers was that a system.log should be available for download when submitting to the marketplace, but I don't see this anywhere.
I'm not sure what to do now. Can anyone shine some light on this? The problem is now that a black box at Magento is throwing an error and I have no idea what it could be. It could be a memory issue for as far as I know, nothing I can do something about :-(
did you resolve your problem ?
I have the same problem and the logs not showing what is the main error
Same for me.
Running on Magento 2.4 CE
After working a lot on development mode and creating all kinds of features we cannot set back to production mode and get exactly the above error from screenshot. Nothing in error log.
If anyone has an idea what the reason could be?
thanks for hints
UPDATE:
run the last line from the error in the command line. It will throw more errors which might be helpful.
/usr/bin/php -f /var/www/html/bin/magento setup:di:compile
... this definitely has helped me find the issue. Problem solved.