Magento 2 Error on setting deployment mode to production The Next CEO of Stack OverflowProblem changing to Production mode - Command returned non-zero exit codeMagento 2 - can't enable production mode. Shows Command returned non-zero exit codeM2 - Cannot change deploy mode to ProductionI am getting error while changing developer mode to production mode in magento 2Errors during installation- Submitting Package to Magento MarketplaceProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:When submitting extension to Magento2 Marketplace gives error “Error During Installation Command returned non-zero exit code”Magento 2 error when run php bin/magento setup:di:compileMagento2: Error when change developer mode to production (Magento 2.1.7)Magento 2 shell shows production mode, but still in developer mode

How to be diplomatic in refusing to write code that breaches the privacy of our users

WOW air has ceased operation, can I get my tickets refunded?

Why is there a PLL in CPU?

When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?

How easy is it to start Magic from scratch?

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Unreliable Magic - Is it worth it?

Why did we only see the N-1 starfighters in one film?

Science fiction (dystopian) short story set after WWIII

Should I tutor a student who I know has cheated on their homework?

Can a single photon have an energy density?

Need some help with wall behind rangetop

Shade part of a Venn diagram

If the heap is initialized for security, then why is the stack uninitialized?

What makes a siege story/plot interesting?

Return the Closest Prime Number

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

What's the point of interval inversion?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Apart from "berlinern", do any other German dialects have a corresponding verb?

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Failed to fetch jessie backports repository

Natural language into sentence logic

Why here is plural "We went to the movies last night."



Magento 2 Error on setting deployment mode to production



The Next CEO of Stack OverflowProblem changing to Production mode - Command returned non-zero exit codeMagento 2 - can't enable production mode. Shows Command returned non-zero exit codeM2 - Cannot change deploy mode to ProductionI am getting error while changing developer mode to production mode in magento 2Errors during installation- Submitting Package to Magento MarketplaceProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:When submitting extension to Magento2 Marketplace gives error “Error During Installation Command returned non-zero exit code”Magento 2 error when run php bin/magento setup:di:compileMagento2: Error when change developer mode to production (Magento 2.1.7)Magento 2 shell shows production mode, but still in developer mode










1















I enabled vendor's list of modules & setup upgrade them. I changed deploying mode from developer to production. During that i encounter an error



sagar@sg2 public_html]$ php bin/magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:


/opt/cpanel/ea-php56/root/usr/bin/php -f /home/ghema/public_html/bin/magento setup:di:compile










share|improve this question



















  • 1





    Did you check the error log ? What's in there ?

    – Raphael at Digital Pianism
    Feb 8 '17 at 10:47











  • On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

    – sagar sapkota
    Feb 8 '17 at 11:22
















1















I enabled vendor's list of modules & setup upgrade them. I changed deploying mode from developer to production. During that i encounter an error



sagar@sg2 public_html]$ php bin/magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:


/opt/cpanel/ea-php56/root/usr/bin/php -f /home/ghema/public_html/bin/magento setup:di:compile










share|improve this question



















  • 1





    Did you check the error log ? What's in there ?

    – Raphael at Digital Pianism
    Feb 8 '17 at 10:47











  • On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

    – sagar sapkota
    Feb 8 '17 at 11:22














1












1








1








I enabled vendor's list of modules & setup upgrade them. I changed deploying mode from developer to production. During that i encounter an error



sagar@sg2 public_html]$ php bin/magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:


/opt/cpanel/ea-php56/root/usr/bin/php -f /home/ghema/public_html/bin/magento setup:di:compile










share|improve this question
















I enabled vendor's list of modules & setup upgrade them. I changed deploying mode from developer to production. During that i encounter an error



sagar@sg2 public_html]$ php bin/magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Something went wrong while compiling generated code. See the error log for details.
Command returned non-zero exit code:


/opt/cpanel/ea-php56/root/usr/bin/php -f /home/ghema/public_html/bin/magento setup:di:compile







magento2 magento-2.1






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 33 mins ago









Teja Bhagavan Kollepara

3,01241949




3,01241949










asked Feb 8 '17 at 10:42









sagar sapkotasagar sapkota

4411415




4411415







  • 1





    Did you check the error log ? What's in there ?

    – Raphael at Digital Pianism
    Feb 8 '17 at 10:47











  • On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

    – sagar sapkota
    Feb 8 '17 at 11:22













  • 1





    Did you check the error log ? What's in there ?

    – Raphael at Digital Pianism
    Feb 8 '17 at 10:47











  • On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

    – sagar sapkota
    Feb 8 '17 at 11:22








1




1





Did you check the error log ? What's in there ?

– Raphael at Digital Pianism
Feb 8 '17 at 10:47





Did you check the error log ? What's in there ?

– Raphael at Digital Pianism
Feb 8 '17 at 10:47













On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

– sagar sapkota
Feb 8 '17 at 11:22






On exception log : there was on error on template i had overriden to my theme. I commented it. On system.log there is an error saying Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 72.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1 sec 72.0 MiB Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 77.5 MiB [] []

– sagar sapkota
Feb 8 '17 at 11:22











1 Answer
1






active

oldest

votes


















2














Since error is occurring during code generation it's likely to be an issue with either your custom theme or any addon modules/plugins.



If you run command php bin/magento setup:di:compile on it's own,code generation should break at the point of error and should throw a [ReflectionException] (or another error) that should point you in the right direction.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f158762%2fmagento-2-error-on-setting-deployment-mode-to-production%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Since error is occurring during code generation it's likely to be an issue with either your custom theme or any addon modules/plugins.



    If you run command php bin/magento setup:di:compile on it's own,code generation should break at the point of error and should throw a [ReflectionException] (or another error) that should point you in the right direction.






    share|improve this answer



























      2














      Since error is occurring during code generation it's likely to be an issue with either your custom theme or any addon modules/plugins.



      If you run command php bin/magento setup:di:compile on it's own,code generation should break at the point of error and should throw a [ReflectionException] (or another error) that should point you in the right direction.






      share|improve this answer

























        2












        2








        2







        Since error is occurring during code generation it's likely to be an issue with either your custom theme or any addon modules/plugins.



        If you run command php bin/magento setup:di:compile on it's own,code generation should break at the point of error and should throw a [ReflectionException] (or another error) that should point you in the right direction.






        share|improve this answer













        Since error is occurring during code generation it's likely to be an issue with either your custom theme or any addon modules/plugins.



        If you run command php bin/magento setup:di:compile on it's own,code generation should break at the point of error and should throw a [ReflectionException] (or another error) that should point you in the right direction.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 8 '17 at 11:53









        DevtypeDevtype

        2,20911332




        2,20911332



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f158762%2fmagento-2-error-on-setting-deployment-mode-to-production%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

            Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її