Skip to content

Command fails: bin/magento deploy:mode:set production #2561

Closed
@marvincaspar

Description

@marvincaspar

Hi,

when I try to run bin/magento deploy:mode:set production it fails while executing php -f /var/www/html/bin/magento setup:di:compile-multi-tenant 2>&1

I'm working on a clean Magento 2 EE instance.

Enabled maintenance mode
Static content deployment start
Requested languages: en_US
=== frontend -> Magento/blank -> en_US ===
..............
Successful: 2051 files; errors: 0

---

=== frontend -> Magento/luma -> en_US ===
..............
Successful: 2124 files; errors: 0

---

=== adminhtml -> Magento/backend -> en_US ===
..............
Successful: 1874 files; errors: 0

---

=== Minify templates ===
..............
Successful: 1130 files modified

---

New version of deployed files: 1448885114
Static content deployment complete
Start compilation
Command returned non-zero exit code:
`php -f /var/www/html/bin/magento setup:di:compile-multi-tenant 2>&1`

Running bin/magento setup:di:compile-multi-tenant throws this error:

PHP Fatal error:  Class 'StaticReview\Review\AbstractReview' not found in /var/www/html/dev/tools/Magento/Tools/StaticReview/PhpCsFixerReview.php on line 19
PHP Stack trace:
PHP   1. {main}() /var/www/html/bin/magento:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/html/bin/magento:25
PHP   3. Magento\Framework\Console\Cli->doRun() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP   4. Symfony\Component\Console\Application->doRun() /var/www/html/vendor/magento/framework/Console/Cli.php:49
PHP   5. Symfony\Component\Console\Application->doRunCommand() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP   6. Symfony\Component\Console\Command\Command->run() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:874
PHP   7. Magento\Setup\Console\Command\DiCompileMultiTenantCommand->execute() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP   8. Magento\Setup\Console\Command\DiCompileMultiTenantCommand->compileCode() /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php:228
PHP   9. Magento\Setup\Module\Di\Code\Reader\Decorator\Directory->getList() /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php:374
PHP  10. Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Directory.php:92
PHP  11. class_exists() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69
PHP  12. spl_autoload_call() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69
PHP  13. Composer\Autoload\ClassLoader->loadClass() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69
PHP  14. Composer\Autoload\includeFile() /var/www/html/vendor/composer/ClassLoader.php:301
PHP  15. include() /var/www/html/vendor/composer/ClassLoader.php:412

The class StaticReview\Review\AbstractReview not exists in any directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions