{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4070","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4070/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4070/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4070/events","html_url":"https://github.com/magento/magento2/issues/4070","id":146955155,"number":4070,"title":"Magento 2.0.4 DI Compilation Breaks CLI Tool","user":{"login":"davidalger","id":658281,"avatar_url":"https://avatars.githubusercontent.com/u/658281?v=3","gravatar_id":"","url":"https://api.github.com/users/davidalger","html_url":"https://github.com/davidalger","followers_url":"https://api.github.com/users/davidalger/followers","following_url":"https://api.github.com/users/davidalger/following{/other_user}","gists_url":"https://api.github.com/users/davidalger/gists{/gist_id}","starred_url":"https://api.github.com/users/davidalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidalger/subscriptions","organizations_url":"https://api.github.com/users/davidalger/orgs","repos_url":"https://api.github.com/users/davidalger/repos","events_url":"https://api.github.com/users/davidalger/events{/privacy}","received_events_url":"https://api.github.com/users/davidalger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/acknowledged","name":"acknowledged","color":"02d7e1"},{"url":"https://api.github.com/repos/magento/magento2/labels/PS","name":"PS","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"joanhe","id":9272701,"avatar_url":"https://avatars.githubusercontent.com/u/9272701?v=3","gravatar_id":"","url":"https://api.github.com/users/joanhe","html_url":"https://github.com/joanhe","followers_url":"https://api.github.com/users/joanhe/followers","following_url":"https://api.github.com/users/joanhe/following{/other_user}","gists_url":"https://api.github.com/users/joanhe/gists{/gist_id}","starred_url":"https://api.github.com/users/joanhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanhe/subscriptions","organizations_url":"https://api.github.com/users/joanhe/orgs","repos_url":"https://api.github.com/users/joanhe/repos","events_url":"https://api.github.com/users/joanhe/events{/privacy}","received_events_url":"https://api.github.com/users/joanhe/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2016-04-08T15:10:02Z","updated_at":"2016-05-26T21:43:18Z","closed_at":"2016-05-26T21:43:18Z","body":"Steps to reproduce\r\n--\r\n1. Install Magento 2.0.4 from composer packages\r\n2. Change application mode to: production\r\n3. Run `bin/magento setup:di:compile-multi-tenant`\r\n4. Attempt using the `bin/magento` tool\r\n\r\nFailure encountered\r\n--\r\nAny attempt to run `bin/magento` fails until one manually removes the `var/di/relations.ser` file generated by the compile-multi-tenant process:\r\n```\r\nPHP Fatal error:  Uncaught Error: Cannot instantiate interface Magento\\Framework\\Filesystem\\DriverInterface in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73\r\nStack trace:\r\n#0 /var/www/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\r\n#1 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\r\n#2 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'filesystem', 'Magento\\\\Framewo...')\r\n#3 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\r\n#4 /var/www/magento2/vendor/magento/fr in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73\r\n```\r\n\r\nDetailed example\r\n--\r\n```\r\nroot@m2demo:10:00 AM:/var/www/magento2$ bin/magento | head -n1\r\nMagento CLI version 2.0.4\r\nroot@m2demo:10:00 AM:/var/www/magento2$ bin/magento setup:di:compile-multi-tenant | sed 's/^.*$//' | tr \"\\n\" . && echo\r\n...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\r\nroot@m2demo:10:01 AM:/var/www/magento2$ bin/magento\r\nPHP Fatal error:  Uncaught Error: Cannot instantiate interface Magento\\Framework\\Filesystem\\DriverInterface in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:73\r\nStack trace:\r\n#0 /var/www/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(71): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Framewo...')\r\n#1 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): Magento\\Framework\\ObjectManager\\ObjectManager->get('Magento\\\\Framewo...')\r\n#2 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(53): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->resolveArgument(Array, 'Magento\\\\Framewo...', NULL, 'filesystem', 'Magento\\\\Framewo...')\r\n#3 /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->_resolveArguments('Magento\\\\Framewo...', Array, Array)\r\n#4 /var/www/magento2/vendor/magento/fr in /var/www/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73\r\nroot@m2demo:10:02 AM:/var/www/magento2$ ls -1 var/di\r\nplugins.ser\r\nrelations.ser\r\nroot@m2demo:10:02 AM:/var/www/magento2$ rm -f var/di/relations.ser \r\nroot@m2demo:10:02 AM:/var/www/magento2$ bin/magento | head -n1\r\nMagento CLI version 2.0.4\r\nroot@m2demo:10:02 AM:/var/www/magento2$ bin/magento deploy:mode:show\r\nCurrent application mode: production.\r\nroot@m2demo:10:02 AM:/var/www/magento2$\r\n```"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/222003645","html_url":"https://github.com/magento/magento2/issues/4070#issuecomment-222003645","issue_url":"https://api.github.com/repos/magento/magento2/issues/4070","id":222003645,"user":{"login":"davidalger","id":658281,"avatar_url":"https://avatars.githubusercontent.com/u/658281?v=3","gravatar_id":"","url":"https://api.github.com/users/davidalger","html_url":"https://github.com/davidalger","followers_url":"https://api.github.com/users/davidalger/followers","following_url":"https://api.github.com/users/davidalger/following{/other_user}","gists_url":"https://api.github.com/users/davidalger/gists{/gist_id}","starred_url":"https://api.github.com/users/davidalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidalger/subscriptions","organizations_url":"https://api.github.com/users/davidalger/orgs","repos_url":"https://api.github.com/users/davidalger/repos","events_url":"https://api.github.com/users/davidalger/events{/privacy}","received_events_url":"https://api.github.com/users/davidalger/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T21:43:18Z","updated_at":"2016-05-26T21:43:18Z","body":"I can confirm this works in 7.0.6 as well… so since it didn't turn out to be a real bug in Magento (which now officially does not support 7.0.5 specifically) I'm going to close this.\r\n\r\nFor any future readers: If you are running PHP 7.0.5 and having issues, upgrade to PHP 7.0.6 or better! :) "}}
{"actor":{"display_login":"davidalger"}}