{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2561","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/2561/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2561/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2561/events","html_url":"https://github.com/magento/magento2/issues/2561","id":119479640,"number":2561,"title":"Command fails: bin/magento deploy:mode:set production","user":{"login":"mc388","id":2600346,"avatar_url":"https://avatars.githubusercontent.com/u/2600346?v=3","gravatar_id":"","url":"https://api.github.com/users/mc388","html_url":"https://github.com/mc388","followers_url":"https://api.github.com/users/mc388/followers","following_url":"https://api.github.com/users/mc388/following{/other_user}","gists_url":"https://api.github.com/users/mc388/gists{/gist_id}","starred_url":"https://api.github.com/users/mc388/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc388/subscriptions","organizations_url":"https://api.github.com/users/mc388/orgs","repos_url":"https://api.github.com/users/mc388/repos","events_url":"https://api.github.com/users/mc388/events{/privacy}","received_events_url":"https://api.github.com/users/mc388/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/acknowledged","name":"acknowledged","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2015-11-30T12:09:56Z","updated_at":"2016-08-10T11:36:59Z","closed_at":"2016-06-27T10:59:50Z","body":"Hi,\r\n\r\nwhen 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`\r\n\r\nI'm working on a clean Magento 2 EE instance.\r\n\r\n```bash\r\nEnabled maintenance mode\r\nStatic content deployment start\r\nRequested languages: en_US\r\n=== frontend -> Magento/blank -> en_US ===\r\n..............\r\nSuccessful: 2051 files; errors: 0\r\n---\r\n\r\n=== frontend -> Magento/luma -> en_US ===\r\n..............\r\nSuccessful: 2124 files; errors: 0\r\n---\r\n\r\n=== adminhtml -> Magento/backend -> en_US ===\r\n..............\r\nSuccessful: 1874 files; errors: 0\r\n---\r\n\r\n=== Minify templates ===\r\n..............\r\nSuccessful: 1130 files modified\r\n---\r\n\r\nNew version of deployed files: 1448885114\r\nStatic content deployment complete\r\nStart compilation\r\nCommand returned non-zero exit code:\r\n`php -f /var/www/html/bin/magento setup:di:compile-multi-tenant 2>&1`\r\n```\r\n\r\nRunning `bin/magento setup:di:compile-multi-tenant` throws this error:\r\n\r\n```bash\r\nPHP Fatal error:  Class 'StaticReview\\Review\\AbstractReview' not found in /var/www/html/dev/tools/Magento/Tools/StaticReview/PhpCsFixerReview.php on line 19\r\nPHP Stack trace:\r\nPHP   1. {main}() /var/www/html/bin/magento:0\r\nPHP   2. Symfony\\Component\\Console\\Application->run() /var/www/html/bin/magento:25\r\nPHP   3. Magento\\Framework\\Console\\Cli->doRun() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:126\r\nPHP   4. Symfony\\Component\\Console\\Application->doRun() /var/www/html/vendor/magento/framework/Console/Cli.php:49\r\nPHP   5. Symfony\\Component\\Console\\Application->doRunCommand() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:195\r\nPHP   6. Symfony\\Component\\Console\\Command\\Command->run() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Application.php:874\r\nPHP   7. Magento\\Setup\\Console\\Command\\DiCompileMultiTenantCommand->execute() /var/www/html/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257\r\nPHP   8. Magento\\Setup\\Console\\Command\\DiCompileMultiTenantCommand->compileCode() /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php:228\r\nPHP   9. Magento\\Setup\\Module\\Di\\Code\\Reader\\Decorator\\Directory->getList() /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileMultiTenantCommand.php:374\r\nPHP  10. Magento\\Setup\\Module\\Di\\Code\\Reader\\ClassesScanner->getList() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Directory.php:92\r\nPHP  11. class_exists() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69\r\nPHP  12. spl_autoload_call() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69\r\nPHP  13. Composer\\Autoload\\ClassLoader->loadClass() /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php:69\r\nPHP  14. Composer\\Autoload\\includeFile() /var/www/html/vendor/composer/ClassLoader.php:301\r\nPHP  15. include() /var/www/html/vendor/composer/ClassLoader.php:412\r\n```\r\n\r\nThe class `StaticReview\\Review\\AbstractReview` not exists in any directory. "},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/238841286","html_url":"https://github.com/magento/magento2/issues/2561#issuecomment-238841286","issue_url":"https://api.github.com/repos/magento/magento2/issues/2561","id":238841286,"user":{"login":"romeof1980","id":11228308,"avatar_url":"https://avatars.githubusercontent.com/u/11228308?v=3","gravatar_id":"","url":"https://api.github.com/users/romeof1980","html_url":"https://github.com/romeof1980","followers_url":"https://api.github.com/users/romeof1980/followers","following_url":"https://api.github.com/users/romeof1980/following{/other_user}","gists_url":"https://api.github.com/users/romeof1980/gists{/gist_id}","starred_url":"https://api.github.com/users/romeof1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romeof1980/subscriptions","organizations_url":"https://api.github.com/users/romeof1980/orgs","repos_url":"https://api.github.com/users/romeof1980/repos","events_url":"https://api.github.com/users/romeof1980/events{/privacy}","received_events_url":"https://api.github.com/users/romeof1980/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T11:36:59Z","updated_at":"2016-08-10T11:36:59Z","body":"So? Did you try to deploy it to production with these setting in place?\n\n---- On Wed, 10 Aug 2016 13:24:34 +0200 notifications@github.com wrote ----\n\n@romeof1980 this is what they replied,\nyou just need to make your own php.ini and give it to the php bin. Example :\n\n/opt/plesk/php/7.0/bin/php -C path/to/your/php.ini your_script.php\n\nBut to make it simple, I've updated the global php.ini for the cli, it's now at 1G :\n\n~$ /opt/plesk/php/7.0/bin/php -i | grep memory_limit\nmemory_limit => 1G => 1G\n\nAnd by the way, setting the limit using the \"-d memory_limit=2048M\" directive is working as well :\n\n~$ /opt/plesk/php/7.0/bin/php -d memory_limit=2048M -i | grep memory_limit\nmemory_limit => 2048M => 2048M\n\n—\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub, or mute the thread."}}
{"actor":{"display_login":"romeof1980"}}