-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run deploy ends up in Error (claudia create) on Linux #125
Comments
Sometimes I get the following error output:
see https://github.com/claudiajs/claudia/blob/v2.9.0/src/commands/create.js#L53
Adding --source /my/aws-lambda-image-directory does not help to resolve. |
Ok, seems to be a problem with os.tmpdir() - this method returns the current working dir if run via npm. A workaround is to set TMPDIR environment variable:
Have a look into this issue: npm/npm#4531 |
Huh, this is really interesting case. Though I'm not sure, if we can merge that into our config, because of people using Are you working here with Docker or is there any reason why you need to use |
Yes, I am using a docker container (build my own based on wheezy-slim, nvm, ...) to have a clean environment. I think it would be a good idea to mention the |
Also if you are running in a virtual environment /tmp is often mapped to a ram drive that uses the vm's memory. So if you are on an EC2 instance you might just have 1GB ram, and the deloy uses alot of memory and then it will create a zip that also eats memory because of it being on the ram-drive. I had alot of issues with different failurs that I latter hunted down to the vm runing out of memory while deploying. |
My build is based on node 4.3.2 and npm 2.14.12. AWS cli is setup and configured.
npm run test-config
runs fine:npm run deploy
throws the following error:The text was updated successfully, but these errors were encountered: