Skip to content

'Command returned non-zero exit code:...' Unable to set deploy:mode:set production #9202

@fideliocc

Description

@fideliocc

When I try to switch from default to production mode with:

./bin php magento deploy:mode:set production

i got this result:

/bin# php magento deploy:mode:set production
Enabled maintenance mode
Starting compilation
Compilation was started.
%message% 0/7 [>---------------------------]   0% 1 sec 38.0 MiB%message% 0/7 [>---------------------------]   0% 1 sec 38.0 MiBProxies code generation... 0/7 [>---------------------------]   0% 1 sec 38.0 MiB
Proxies code generation... 1/7 [====>-----------------------]  14% 1 sec 42.0 MiB
Repositories code generation... 1/7 [====>-----------------------]  14% 1 sec 42.0 MiB
Repositories code generation... 2/7 [========>-------------------]  28% 7 secs 136.0 MiB
Service data attributes generation... 2/7 [========>-------------------]  28% 7 secs 136.0 MiB
Service data attributes generation... 3/7 [============>---------------]  42% 7 secs 136.0 MiB
Application code generator... 3/7 [============>---------------]  42% 7 secs 136.0 MiB
Application code generator... 4/7 [================>-----------]  57% 18 secs 156.0 MiB
Interceptors generation... 4/7 [================>-----------]  57% 18 secs 156.0 MiB
Interceptors generation... 5/7 [====================>-------]  71% 33 secs 174.0 MiB
Area configuration aggregation... 5/7 [====================>-------]  71% 33 secs 174.0 MiB
Area configuration aggregation... 6/7 [========================>---]  85% 47 secs 248.0 MiB
Interception cache generation... 6/7 [========================>---]  85% 47 secs 248.0 MiB
Interception cache generation... 7/7 [============================] 100% 56 secs 248.0 MiB
Generated code and dependency injection configuration successfully.
Compilation complete
Starting deployment of static content
Something went wrong while deploying static content. See the error log for details.
Command returned non-zero exit code:
`/usr/bin/php7.0 -f /var/www/html/bin/magento setup:static-content:deploy es_MX en_US`

Then the site is down and still in default mode.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions