{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/80","labels_url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/80/comments","events_url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/80/events","html_url":"https://github.com/sindresorhus/grunt-shell/issues/80","id":41639040,"number":80,"title":"Error: stderr maxBuffer exceeded","user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-01T13:50:17Z","updated_at":"2015-03-06T21:59:08Z","closed_at":"2014-09-01T16:05:53Z","body":"I use the following script:\r\n```bash\r\n#!/bin/bash\r\n\r\n# A modified version of https://gist.github.com/sidwood/fcee60dc7b7e704d818d\r\n\r\nset -e\r\n\r\nPROTRACTOR_PATH=\"./node_modules/protractor\"\r\nDOWNLOAD_PATH=\"$PROTRACTOR_PATH/selenium\"\r\n\r\nCD_VERSION=2.10\r\nCD_URL=\"http://chromedriver.storage.googleapis.com/$CD_VERSION\"\r\nCD_FILE=chromedriver_mac32.zip\r\n\r\nSWD_VERSION=2.42\r\nSWD_PATCH=2\r\nSWD_URL=\"http://selenium-release.storage.googleapis.com/$SWD_VERSION\"\r\nSWD_FILE=\"selenium-server-standalone-$SWD_VERSION.$SWD_PATCH.jar\"\r\n\r\n# Exit with a given message\r\nabort() {\r\n  printf \"\\n  \\033[31mError: $@\\033[0m\\n\\n\" && exit 1\r\n}\r\n\r\n# Ensure Protractor is installed\r\nif [ ! -d \"$(pwd)/$PROTRACTOR_PATH\" ]; then abort \"$PROTRACTOR_PATH not found\"; fi\r\n\r\n# Ensure dependencies are installed\r\ncommand -v curl > /dev/null 2>&1 || abort \"curl is required\"\r\ncommand -v unzip > /dev/null 2>&1 || abort \"unzip is required\"\r\ncommand -v java > /dev/null 2>&1 || abort \"java is required\"\r\n\r\n\r\n# Install Selenium and chromedriver\r\n\r\nmkdir -p \"$DOWNLOAD_PATH\"\r\nif [ ! -f \"${DOWNLOAD_PATH}/chromedriver\" ]; then\r\n    cd \"$DOWNLOAD_PATH\"\r\n    echo \"  Downloading chromedriver archive...\"\r\n    curl -O --progress-bar \"$CD_URL/$CD_FILE\"\r\n    unzip \"$CD_FILE\"\r\n    rm \"$CD_FILE\"\r\n    cd - >/dev/null\r\nelse\r\n    echo \"  Chromedriver found\"\r\nfi\r\n\r\nif [ ! -f \"${DOWNLOAD_PATH}/${SWD_FILE}\" ]; then\r\n    cd \"$DOWNLOAD_PATH\"\r\n    echo \"  Downloading selenium server...\"\r\n    curl -O --progress-bar \"$SWD_URL/$SWD_FILE\"\r\n    cd - >/dev/null\r\nelse\r\n    echo \"  Selenium server found\"\r\nfi\r\n\r\necho \"done!\"\r\n```\r\n\r\nWhen I run it manually via `./bin/webdriver-update`, it runs just fine:\r\n```\r\n$ ./bin/webdriver-update\r\n  Downloading chromedriver archive...\r\n######################################################################## 100.0%\r\nArchive:  chromedriver_mac32.zip\r\n  inflating: chromedriver            \r\n  Downloading selenium server...\r\n######################################################################## 100.0%\r\ndone!\r\n```\r\n\r\nbut when run via grunt-shell (both 0.7.0 & 1.0.1) I get this:\r\n```\r\nRunning \"shell:webdriverUpdate\" (shell) task\r\n  Downloading chromedriver archive...\r\n######################################################################## 100.0%\r\nArchive:  chromedriver_mac32.zip\r\n  inflating: chromedriver            \r\n  Downloading selenium server...\r\n                                                                           0.4%Warning: stderr maxBuffer exceeded. Use --force to continue.\r\nError: stderr maxBuffer exceeded.\r\n    at Socket.<anonymous> (child_process.js:697:13)\r\n    at Socket.emit (events.js:117:20)\r\n    at Socket.<anonymous> (_stream_readable.js:764:14)\r\n    at Socket.emit (events.js:92:17)\r\n    at emitReadable_ (_stream_readable.js:426:10)\r\n    at emitReadable (_stream_readable.js:422:5)\r\n    at readableAddChunk (_stream_readable.js:165:9)\r\n    at Socket.Readable.push (_stream_readable.js:127:10)\r\n    at Pipe.onread (net.js:528:21)\r\n\r\nAborted due to warnings.\r\n```\r\n\r\nNode 0.10.31, Grunt 0.4.5. grunt-shell config:\r\n```js\r\nshell: {\r\n    bundleInstall: {\r\n        command: 'bundle install',\r\n    },\r\n\r\n    webdriverUpdate: {\r\n        command: './bin/webdriver-update',\r\n    },\r\n\r\n    removeJenkinsReports: {\r\n        command: 'rm -f test-results{,.*}.xml',\r\n    },\r\n},\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/comments/77643880","html_url":"https://github.com/sindresorhus/grunt-shell/issues/80#issuecomment-77643880","issue_url":"https://api.github.com/repos/sindresorhus/grunt-shell/issues/80","id":77643880,"user":{"login":"jhorvat","id":4116475,"avatar_url":"https://avatars.githubusercontent.com/u/4116475?v=3","gravatar_id":"","url":"https://api.github.com/users/jhorvat","html_url":"https://github.com/jhorvat","followers_url":"https://api.github.com/users/jhorvat/followers","following_url":"https://api.github.com/users/jhorvat/following{/other_user}","gists_url":"https://api.github.com/users/jhorvat/gists{/gist_id}","starred_url":"https://api.github.com/users/jhorvat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhorvat/subscriptions","organizations_url":"https://api.github.com/users/jhorvat/orgs","repos_url":"https://api.github.com/users/jhorvat/repos","events_url":"https://api.github.com/users/jhorvat/events{/privacy}","received_events_url":"https://api.github.com/users/jhorvat/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T21:59:08Z","updated_at":"2015-03-06T21:59:08Z","body":"sindresorhus/grunt-shell#80"}}