-
Notifications
You must be signed in to change notification settings - Fork 9.4k
'Command returned non-zero exit code:...' Unable to set deploy:mode:set production #9202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi. Why do you think this is an M2 bug? They'll come in shortly, telling you that you should ask on https://magento.stackexchange.com/ instead, so I'm saving them the trouble. Or you. Anyway, you don't provide enough info. We're more interested in |
Currently I only can switch from default to production mode with Then I manage the permissions at Thanks for help. |
@adragus-inviqa I did the process again following steps from here: http://magento.stackexchange.com/questions/106436/merged-js-and-css-do-not-work-when-production-mode
Then I deployed with
This is the compilation results. When I reload website I have the following message in browser: There has been an error processing your request Below the content of "1041370881471" file found at
|
@fideliocc Make sure you set enough memory_limit in php.ini for PHP cli. |
|
@fideliocc As your last log, seems your "var" directory not set to correct permission.
|
And the funny part is that "They" have a point. Having the application produce an error after you plug in some 3rd party theme doesn't mean the application itself has a bug. Sometimes, it is just signalling that your custom code is incompatible and needs to be fixed or updated or replaced.
That ain't no secret if you read the documentation first, which you probably should. So here goes the trouble: If you are looking for some additional help or an advice regarding setup or development please refer to the Community Forums or the Magento Stack Exchange. |
Now problem is solved, thanks for the support. @korostii It was missed files from theme module. I'll be in the right forum next time. Thanks for suggestions. |
Hi @fideliocc - can you close the issue then? Thanks! |
It seems like issue is still there while enabling the production mode. Mentioned stuffs in this thread are already configured my my nginx server but still its not working. |
@yogisfunda - I am running nginx too. You will have to change the values mentioned by @fideliocc at: #9202 (comment) in your php.ini file which should be located at /etc/phpx/php.ini, where 'x' stands for your php version such as 7.2, 7.3 etc |
Thank you, this helped alot, and saved time. |
…-23-2024 [Support Tier-4-Kings glo02433] 08.23.2024 Regular delivery of bugfixes and improvements
When I try to switch from default to production mode with:
./bin php magento deploy:mode:set production
i got this result:
Then the site is down and still in default mode.
Thanks in advance.
The text was updated successfully, but these errors were encountered: