{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/1287","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1287/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/1287/events","html_url":"https://github.com/serverless/serverless/issues/1287","id":159033774,"number":1287,"title":"function deploy throws exception","user":{"login":"dwtowner","id":3769273,"avatar_url":"https://avatars.githubusercontent.com/u/3769273?v=3","gravatar_id":"","url":"https://api.github.com/users/dwtowner","html_url":"https://github.com/dwtowner","followers_url":"https://api.github.com/users/dwtowner/followers","following_url":"https://api.github.com/users/dwtowner/following{/other_user}","gists_url":"https://api.github.com/users/dwtowner/gists{/gist_id}","starred_url":"https://api.github.com/users/dwtowner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwtowner/subscriptions","organizations_url":"https://api.github.com/users/dwtowner/orgs","repos_url":"https://api.github.com/users/dwtowner/repos","events_url":"https://api.github.com/users/dwtowner/events{/privacy}","received_events_url":"https://api.github.com/users/dwtowner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-07T21:54:10Z","updated_at":"2016-06-26T22:04:39Z","closed_at":null,"body":"serverless version 0.5.5, running on Ubuntu 14.04 LTS on x86_64 with node v4.0.0pre\r\n\r\nOn a working sls project I made various edits to a function handler (added sub-directory, changed the handler slightly), and now the `function deploy' command produces an error. The callstack is attached below but it isn't clear to me from that what has gone wrong with the deployment. Another sls project can still have its functions deployed, so it isn't an issue with my AWS setup.\r\n\r\n---\r\n\r\nerverless: Deploying the specified functions in \"dev\" to the following regions: eu-west-1                                                                                        \r\nServerless: ------------------------  \r\nServerless: Failed to deploy the following functions in \"dev\" to the following regions:  \r\nServerless: eu-west-1 ------------------------  \r\nServerless:   addBooking: undefined  \r\n/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:61\r\n        fn = function () { throw arg; };\r\n                           ^\r\n\r\nServerlessError: Function Deployment Failed\r\n    at new ServerlessError (/usr/local/lib/node_modules/serverless/lib/Error.js:17:11)\r\n    at FunctionDeploy.<anonymous> (/usr/local/lib/node_modules/serverless/lib/actions/FunctionDeploy.js:126:19)\r\n    at next (/usr/local/lib/node_modules/serverless/node_modules/fs-extra/node_modules/rimraf/rimraf.js:74:7)\r\n    at FSReqWrap.CB [as oncomplete] (/usr/local/lib/node_modules/serverless/node_modules/fs-extra/node_modules/rimraf/rimraf.js:110:9)\r\nFrom previous event:\r\n    at FunctionDeploy.functionDeploy (/usr/local/lib/node_modules/serverless/lib/actions/FunctionDeploy.js:105:10)\r\nFrom previous event:\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:186:31\r\n    at Array.reduce (native)\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:185:32\r\nFrom previous event:\r\n    at Serverless._execute (/usr/local/lib/node_modules/serverless/lib/Serverless.js:183:12)\r\n    at Serverless.actions.(anonymous function) (/usr/local/lib/node_modules/serverless/lib/Serverless.js:429:20)\r\n    at Serverless.command (/usr/local/lib/node_modules/serverless/lib/Serverless.js:398:38)\r\n    at /usr/local/lib/node_modules/serverless/bin/serverless:19:16\r\n    at processImmediate [as _immediateCallback] (timers.js:371:17)\r\nFrom previous event:\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/bin/serverless:18:4)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:475:10)\r\n    at startup (node.js:117:18)\r\n    at node.js:951:3\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/228625789","html_url":"https://github.com/serverless/serverless/issues/1287#issuecomment-228625789","issue_url":"https://api.github.com/repos/serverless/serverless/issues/1287","id":228625789,"user":{"login":"dwtowner","id":3769273,"avatar_url":"https://avatars.githubusercontent.com/u/3769273?v=3","gravatar_id":"","url":"https://api.github.com/users/dwtowner","html_url":"https://github.com/dwtowner","followers_url":"https://api.github.com/users/dwtowner/followers","following_url":"https://api.github.com/users/dwtowner/following{/other_user}","gists_url":"https://api.github.com/users/dwtowner/gists{/gist_id}","starred_url":"https://api.github.com/users/dwtowner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwtowner/subscriptions","organizations_url":"https://api.github.com/users/dwtowner/orgs","repos_url":"https://api.github.com/users/dwtowner/repos","events_url":"https://api.github.com/users/dwtowner/events{/privacy}","received_events_url":"https://api.github.com/users/dwtowner/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T22:04:38Z","updated_at":"2016-06-26T22:04:38Z","body":"p.s. It reliably fails now, all the time, so if a maintainer wants me to\ntry anything I can do so.\n\nOn Sun, Jun 26, 2016 at 11:03 PM, Daniel Towner <dwtowner@googlemail.com>\nwrote:\n\n> I'm hitting it again too. The error went away for a bit after I deleted\n> the region and then recreated it and redeployed, but its come back again\n> and the region delete/create trick doesn't have any effect any more. There\n> aren't any symlinks in my directories either for me to fix (as Matt Mankins\n> reports that deleting some invalid symlinks worked for him).\n>\n> dan.\n>\n> On Sat, Jun 25, 2016 at 12:11 AM, JD Fagan <notifications@github.com>\n> wrote:\n>\n>> Hmmm...I seem to have run into it again even with Node version 4.4.4. It\n>> seems when I have multiple \"stages\" I get this error. I also noticed that\n>> in s-variables-{$stage}-{$region}.json file only now has region field and\n>> has lost following these fields (resourcesStackName, iamRoleArnLambda,\n>> apiGatewayApi) after adding stages:\n>>\n>> Serverless: groups: Missing required key 'Role' in params\n>>\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:61\n>> fn = function () { throw arg; };\n>> ^\n>>\n>> ServerlessError: Function Deployment Failed\n>> at new ServerlessError\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Error.js:17:11)\n>> at FunctionDeploy.\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/actions/FunctionDeploy.js:126:19)\n>> at next\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/node_modules/fs-extra/node_modules/rimraf/rimraf.js:74:7)\n>> at FSReqWrap.CB as oncomplete\n>> <http:///Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/node_modules/fs-extra/node_modules/rimraf/rimraf.js:110:9>\n>> From previous event:\n>> at FunctionDeploy.functionDeploy\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/actions/FunctionDeploy.js:105:10)\n>> From previous event:\n>> at\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:211:25\n>> at Array.reduce (native)\n>> at Serverless._execute\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:210:26)\n>> at Object.actions.(anonymous function) as functionDeploy\n>> <http:///Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:429:20>\n>> at\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/actions/DashDeploy.js:234:26\n>> From previous event:\n>> at DashDeploy._deploy\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/actions/DashDeploy.js:229:14)\n>> From previous event:\n>> at DashDeploy.dashDeploy\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/actions/DashDeploy.js:126:10)\n>> From previous event:\n>> at\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:186:31\n>> at Array.reduce (native)\n>> at\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:185:32\n>> From previous event:\n>> at Serverless._execute\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:183:12)\n>> at Serverless.actions.(anonymous function)\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:429:20)\n>> at Serverless.command\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/lib/Serverless.js:398:38)\n>> at\n>> /Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/bin/serverless:19:16\n>> at processImmediate as _immediateCallback\n>> From previous event:\n>> at Object.\n>> (/Users/jfagan/.nodenv/versions/4.4.4/lib/node_modules/serverless/bin/serverless:18:4)\n>> at Module._compile (module.js:409:26)\n>> at Object.Module._extensions..js (module.js:416:10)\n>> at Module.load (module.js:343:32)\n>> at Function.Module._load (module.js:300:12)\n>> at Function.Module.runMain (module.js:441:10)\n>> at startup (node.js:139:18)\n>> at node.js:968:3\n>>\n>> —\n>> You are receiving this because you authored the thread.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/serverless/serverless/issues/1287#issuecomment-228485490>,\n>> or mute the thread\n>> <https://github.com/notifications/unsubscribe/ADmDuY1p1BCSie7Adx84VaV31NBgvQDiks5qPGQJgaJpZM4IwZlC>\n>> .\n>>\n>\n>\n"}}
{"actor":{"display_login":"dwtowner"}}