{"action":"created","issue":{"url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/61","repository_url":"https://api.github.com/repos/davidalger/capistrano-magento2","labels_url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/61/comments","events_url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/61/events","html_url":"https://github.com/davidalger/capistrano-magento2/issues/61","id":209184905,"number":61,"title":"Strange static-content:deploy error on 2.1.3 with 5.9","user":{"login":"avra911","id":1998959,"avatar_url":"https://avatars1.githubusercontent.com/u/1998959?v=3","gravatar_id":"","url":"https://api.github.com/users/avra911","html_url":"https://github.com/avra911","followers_url":"https://api.github.com/users/avra911/followers","following_url":"https://api.github.com/users/avra911/following{/other_user}","gists_url":"https://api.github.com/users/avra911/gists{/gist_id}","starred_url":"https://api.github.com/users/avra911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avra911/subscriptions","organizations_url":"https://api.github.com/users/avra911/orgs","repos_url":"https://api.github.com/users/avra911/repos","events_url":"https://api.github.com/users/avra911/events{/privacy}","received_events_url":"https://api.github.com/users/avra911/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-21T15:47:06Z","updated_at":"2017-03-08T14:33:49Z","closed_at":null,"body":"<!--- Provide a general summary of the issue in the Title above -->\r\n<!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines-->\r\n\r\n### Preconditions\r\n<!--- Provide a more detailed information of environment you use -->\r\n<!--- Magento version, tag, HEAD, etc., PHP & MySQL version, etc.. -->\r\n1. Install composer 1.3.0 or higher.\r\n2. Check out Magento 2.1.3.\r\n3. Install capistrano-magento2 5.9.\r\n\r\n### Steps to reproduce\r\n<!--- Provide a set of unambiguous steps to reproduce this bug include code, if relevant  -->\r\n1. configure and run `cap production deploy`.\r\n\r\n### Expected result\r\n<!--- Tell us what should happen -->\r\n1.  Deploy runs fine.\r\n\r\n### Actual result\r\n<!--- Tell us what happens instead -->\r\n1. Part of the log ( I added `-vv` for debugging purpose to static content generation command, so the output has more details, not only errors count )\r\n```\r\n02 Processing file 'requirejs/requirejs' for area 'frontend', theme 'NAMESPACE/nec', locale 'en_US'\r\n02 \tDeploying the file to 'frontend/NAMESPACE/nec/en_US/requirejs/requireminjs'\r\n02 Processing file 'requirejs/domReadyjs' for area 'frontend', theme 'NAMESPACE/nec', locale 'en_US'\r\n02 \tDeploying the file to 'frontend/NAMESPACE/nec/en_US/requirejs/domReadyminjs'\r\n02 Processing file 'js-translationjson' for area 'frontend', theme 'NAMESPACE/nec', locale 'en_US'\r\n02 \tDeploying the file to 'frontend/NAMESPACE/nec/en_US/js-translationjson'\r\n02 #0 /var/www/magento/releases/20170221151910/vendor/colinmollenhour/cache-backend-redis/Cm/Cache/Backend/Redisphp(313): Credis_Client->__call('hget', Array)\r\n02 #1 /var/www/magento/releases/20170221151910/vendor/magento/zendframework1/library/Zend/Cache/Corephp(390): Cm_Cache_Backend_Redis->save('a:105:{i:123;s:', '537_TRANSLATE_E', Array, false)\r\n02 #2 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Corephp(74): Zend_Cache_Core->save('a:105:{i:123;s:', '537_TRANSLATE_E', Array, false, 8)\r\n02 #3 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Adapter/Zendphp(47): Magento\\Framework\\Cache\\Core->save('a:105:{i:123;s:', 'TRANSLATE_EN_US', Array, false)\r\n02 #4 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/Barephp(75): Magento\\Framework\\Cache\\Frontend\\Adapter\\Zend->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #5 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/TagScopephp(49): Magento\\Framework\\Cache\\Frontend\\Decorator\\Bare->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #6 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/Barephp(75): Magento\\Framework\\Cache\\Frontend\\Decorator\\TagScope->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #7 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/Barephp(75): Magento\\Framework\\Cache\\Frontend\\Decorator\\Bare->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #8 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/Cache/Type/AccessProxyphp(85): Magento\\Framework\\Cache\\Frontend\\Decorator\\Bare->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #9 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/Barephp(75): Magento\\Framework\\App\\Cache\\Type\\AccessProxy->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #10 /var/www/magento/releases/20170221151910/vendor/magento/framework/Cache/Frontend/Decorator/TagScopephp(49): Magento\\Framework\\Cache\\Frontend\\Decorator\\Bare->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #11 /var/www/magento/releases/20170221151910/vendor/magento/framework/Translatephp(489): Magento\\Framework\\Cache\\Frontend\\Decorator\\TagScope->save('a:105:{i:123;s:', 'translate_en_US', Array, false)\r\n02 #12 /var/www/magento/releases/20170221151910/vendor/magento/framework/Translatephp(185): Magento\\Framework\\Translate->_saveCache()\r\n02 #13 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/Areaphp(240): Magento\\Framework\\Translate->loadData(NULL, false)\r\n02 #14 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/Areaphp(211): Magento\\Framework\\App\\Area->_initTranslate()\r\n02 #15 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/Areaphp(138): Magento\\Framework\\App\\Area->_loadPart('translate')\r\n02 #16 /var/www/magento/releases/20170221151910/vendor/magento/module-translation/Model/Json/PreProcessorphp(84): Magento\\Framework\\App\\Area->load('translate')\r\n02 #17 /var/www/magento/releases/20170221151910/vendor/magento/framework/View/Asset/PreProcessor/Poolphp(74): Magento\\Translation\\Model\\Json\\PreProcessor->process(Object(Magento\\Framework\\View\\Asset\\PreProcessor\\Chain))\r\n02 #18 /var/www/magento/releases/20170221151910/vendor/magento/framework/View/Asset/Sourcephp(152): Magento\\Framework\\View\\Asset\\PreProcessor\\Pool->process(Object(Magento\\Framework\\View\\Asset\\PreProcessor\\Chain))\r\n02 #19 /var/www/magento/releases/20170221151910/vendor/magento/framework/View/Asset/Sourcephp(105): Magento\\Framework\\View\\Asset\\Source->preProcess(Object(Magento\\Framework\\View\\Asset\\File))\r\n02 #20 /var/www/magento/releases/20170221151910/vendor/magento/framework/View/Asset/Filephp(150): Magento\\Framework\\View\\Asset\\Source->getFile(Object(Magento\\Framework\\View\\Asset\\File))\r\n02 #21 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/View/Asset/Publisherphp(73): Magento\\Framework\\View\\Asset\\File->getSourceFile()\r\n02 #22 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/View/Asset/Publisherphp(61): Magento\\Framework\\App\\View\\Asset\\Publisher->publishAsset(Object(Magento\\Framework\\View\\Asset\\File))\r\n02 #23 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/Deploy/LocaleDeployphp(398): Magento\\Framework\\App\\View\\Asset\\Publisher->publish(Object(Magento\\Framework\\View\\Asset\\File))\r\n02 #24 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/Deploy/LocaleDeployphp(235): Magento\\Deploy\\Model\\Deploy\\LocaleDeploy->deployFile('js-translation', 'frontend', 'Magento/blank', 'en_US', NULL)\r\n02 #25 [internal function]: Magento\\Deploy\\Model\\Deploy\\LocaleDeploy->deploy('frontend', 'Magento/blank', 'en_US')\r\n02 #26 /var/www/magento/releases/20170221151910/vendor/magento/framework/App/Statephp(171): call_user_func_array(Array, Array)\r\n02 #27 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/DeployManagerphp(175): Magento\\Framework\\App\\State->emulateAreaCode('frontend', Array, Array)\r\n02 #28 [internal function]: Magento\\Deploy\\Model\\DeployManager->Magento\\Deploy\\Model\\{closure}(Object(Magento\\Deploy\\Model\\Process))\r\n02 #29 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/Processphp(53): call_user_func(Object(Closure), Object(Magento\\Deploy\\Model\\Process))\r\n02 #30 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/ProcessManagerphp(55): Magento\\Deploy\\Model\\Process->run()\r\n02 #31 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/ProcessQueueManagerphp(152): Magento\\Deploy\\Model\\ProcessManager->fork(Object(Closure))\r\n02 #32 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/ProcessQueueManagerphp(130): Magento\\Deploy\\Model\\ProcessQueueManager->fork(Object(Magento\\Deploy\\Model\\ProcessTask))\r\n02 #33 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/ProcessQueueManagerphp(88): Magento\\Deploy\\Model\\ProcessQueueManager->internalQueueProcess(Array, Array)\r\n02 #34 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/DeployManagerphp(187): Magento\\Deploy\\Model\\ProcessQueueManager->process()\r\n02 #35 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Model/DeployManagerphp(122): Magento\\Deploy\\Model\\DeployManager->runInParallel(Object(Magento\\Deploy\\Model\\DeployStrategyProvider))\r\n02 #36 /var/www/magento/releases/20170221151910/vendor/magento/module-deploy/Console/Command/DeployStaticContentCommandphp(386): Magento\\Deploy\\Model\\DeployManager->deploy()\r\n02 #37 /var/www/magento/releases/20170221151910/vendor/symfony/console/Symfony/Component/Console/Command/Commandphp(257): Magento\\Deploy\\Console\\Command\\DeployStaticContentCommand->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n02 #38 /var/www/magento/releases/20170221151910/vendor/symfony/console/Symfony/Component/Console/Applicationphp(874): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n02 #39 /var/www/magento/releases/20170221151910/vendor/symfony/console/Symfony/Component/Console/Applicationphp(195): Symfony\\Component\\Console\\Application->doRunCommand(Object(Magento\\Deploy\\Console\\Command\\DeployStaticContentCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n02 #40 /var/www/magento/releases/20170221151910/vendor/magento/framework/Console/Cliphp(96): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n02 #41 /var/www/magento/releases/20170221151910/vendor/symfony/console/Symfony/Component/Console/Applicationphp(126): Magento\\Framework\\Console\\Cli->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n02 #42 /var/www/magento/releases/20170221151910/bin/magento(23): Symfony\\Component\\Console\\Application->run()\r\n02 #43 {main}\r\n02 \r\n02 Successful: 2249 files; errors: 1\r\n```\r\n<!--- (This may be platform independent comment) -->\r\n\r\nWhat could possibly be wrong, because while running `setup:static-content:deploy` from magento itself, it works, with no errors?! Please advice!\r\n\r\nI also opened a question in magento repository: https://github.com/magento/magento2/issues/8643.\r\n\r\nThanks in advanced!"},"comment":{"url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/comments/285056365","html_url":"https://github.com/davidalger/capistrano-magento2/issues/61#issuecomment-285056365","issue_url":"https://api.github.com/repos/davidalger/capistrano-magento2/issues/61","id":285056365,"user":{"login":"avra911","id":1998959,"avatar_url":"https://avatars1.githubusercontent.com/u/1998959?v=3","gravatar_id":"","url":"https://api.github.com/users/avra911","html_url":"https://github.com/avra911","followers_url":"https://api.github.com/users/avra911/followers","following_url":"https://api.github.com/users/avra911/following{/other_user}","gists_url":"https://api.github.com/users/avra911/gists{/gist_id}","starred_url":"https://api.github.com/users/avra911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avra911/subscriptions","organizations_url":"https://api.github.com/users/avra911/orgs","repos_url":"https://api.github.com/users/avra911/repos","events_url":"https://api.github.com/users/avra911/events{/privacy}","received_events_url":"https://api.github.com/users/avra911/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T14:33:49Z","updated_at":"2017-03-08T14:33:49Z","body":"Hi, @erikhansen\r\n\r\nI am reopening the issue because it seems a workaround might be to set the number of jobs for the static content deploy to 1, by using `--jobs` (-j) which:\t\r\n```\r\nEnable parallel processing using the specified number of jobs. The default is 4. To cause the task to run in one process (for example, if your system does not support process forking), use --jobs 1.\r\n```\r\n\r\nWould be nice to have the option to set that in deploy.rb parameters.\r\n"}}
{"actor":{"display_login":"avra911"}}