{"action":"created","issue":{"url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/23","labels_url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/23/comments","events_url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/23/events","html_url":"https://github.com/jerrysu/gulp-rsync/issues/23","id":90274906,"number":23,"title":"Error: spawn E2BIG","user":{"login":"tnguyen14","id":1652595,"avatar_url":"https://avatars.githubusercontent.com/u/1652595?v=3","gravatar_id":"","url":"https://api.github.com/users/tnguyen14","html_url":"https://github.com/tnguyen14","followers_url":"https://api.github.com/users/tnguyen14/followers","following_url":"https://api.github.com/users/tnguyen14/following{/other_user}","gists_url":"https://api.github.com/users/tnguyen14/gists{/gist_id}","starred_url":"https://api.github.com/users/tnguyen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnguyen14/subscriptions","organizations_url":"https://api.github.com/users/tnguyen14/orgs","repos_url":"https://api.github.com/users/tnguyen14/repos","events_url":"https://api.github.com/users/tnguyen14/events{/privacy}","received_events_url":"https://api.github.com/users/tnguyen14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T03:20:29Z","updated_at":"2015-11-20T09:28:26Z","closed_at":null,"body":"I am not sure why I am running into this error, I have not seen them before with this module.\r\n\r\n```\r\n[23:06:48] Starting 'deploy'...\r\n[23:06:51] gulp-rsync: Starting rsync to tri@myserver.com:/path/to/server/directory...\r\ninternal/child_process.js:297\r\n    throw errnoException(err, 'spawn');\r\n          ^\r\nError: spawn E2BIG\r\n    at exports._errnoException (util.js:846:11)\r\n    at ChildProcess.spawn (internal/child_process.js:297:11)\r\n    at exports.spawn (child_process.js:330:9)\r\n    at Object.rsync.execute (/path/to/project/node_modules/gulp-rsync/rsync.js:92:22)\r\n```\r\n\r\nHere's the gulpfile config:\r\n\r\n```js\r\nvar rsync = require('gulp-rsync');\r\ngulp.task('deploy', function() {\r\n  return gulp.src('**')\r\n\t.pipe(rsync({\r\n\t\thostname: 'myserver.com',\r\n\t\tdestination: '/path/to/server/directory',\r\n\t\tusername: 'tri',\r\n\t\tprogress: true,\r\n\t\ttimes: true,\r\n\t\texclude: ['node_modules', '.DS_Store']\r\n\t}));\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/comments/158335679","html_url":"https://github.com/jerrysu/gulp-rsync/issues/23#issuecomment-158335679","issue_url":"https://api.github.com/repos/jerrysu/gulp-rsync/issues/23","id":158335679,"user":{"login":"fergusjordan","id":9106045,"avatar_url":"https://avatars.githubusercontent.com/u/9106045?v=3","gravatar_id":"","url":"https://api.github.com/users/fergusjordan","html_url":"https://github.com/fergusjordan","followers_url":"https://api.github.com/users/fergusjordan/followers","following_url":"https://api.github.com/users/fergusjordan/following{/other_user}","gists_url":"https://api.github.com/users/fergusjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/fergusjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fergusjordan/subscriptions","organizations_url":"https://api.github.com/users/fergusjordan/orgs","repos_url":"https://api.github.com/users/fergusjordan/repos","events_url":"https://api.github.com/users/fergusjordan/events{/privacy}","received_events_url":"https://api.github.com/users/fergusjordan/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T09:28:26Z","updated_at":"2015-11-20T09:28:26Z","body":"@tnguyen14 wondering if wesbos's answer fixed this issue for you. I'm currently hitting this same issue and his answer hasn't seemed to work for me. "}}