serverless: deploy error: "ENFILE: file table overflow"
This is a Bug Report
Description
Serverless v1.7.0 fails to deploy my project with the following error:
Serverless: Packaging service...
events.js:141
throw er; // Unhandled 'error' event
^
Error: ENFILE: file table overflow, open '/Users/robbie/Programs/4thA/server/serverless/node_modules/lodash/README.md'
at Error (native)
The specific file it crashes on changes just about everytime I try to deploy. E.g. if I run it again it might say:
Serverless: Packaging service...
events.js:141
throw er; // Unhandled 'error' event
^
Error: ENFILE: file table overflow, open '/Users/robbie/Programs/4thA/server/serverless/node_modules/lodash/partial.js'
at Error (native)
I downgraded to serverless v1.6.0 and I’m not having any issues. So it’s definitely something that has changed in v1.7.0.
My yml file contains 6 functions, and I have around 8 dependencies. (Most every dependency is included in each of the 6 functions.) What’s interesting is that 6 seems to be the magic number to make it crash. That is, if I comment out any 1 of the 6 functions (to give us a total of only 5), it works just fine. But with all 6 it will crash every single time.
Additional Data
- Serverless Framework Version you’re using: 1.7.0
- Operating System: macOS 10.12.3
- Node Version: 4.7.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 16 (5 by maintainers)
Verified v1.8 fix this packaging problem. Thanks for the AWSome framework!
Hey everyone! We just released Serverless v1.8 which has a fix for a related issue (#3249).
Could you please check the new version and see if this issue still persists? Thanks! 👍
Hi, I use node v4.3.2 (as on lambda). Using graceful-fs indeed solves it for now - but that hotfix would be great 😃 tnx!