{"action":"created","issue":{"url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/38","repository_url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements","labels_url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/38/comments","events_url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/38/events","html_url":"https://github.com/UnitedIncome/serverless-python-requirements/issues/38","id":238341702,"number":38,"title":"Error: EMFILE: too many open files","user":{"login":"gutyril","id":753807,"avatar_url":"https://avatars1.githubusercontent.com/u/753807?v=4","gravatar_id":"","url":"https://api.github.com/users/gutyril","html_url":"https://github.com/gutyril","followers_url":"https://api.github.com/users/gutyril/followers","following_url":"https://api.github.com/users/gutyril/following{/other_user}","gists_url":"https://api.github.com/users/gutyril/gists{/gist_id}","starred_url":"https://api.github.com/users/gutyril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gutyril/subscriptions","organizations_url":"https://api.github.com/users/gutyril/orgs","repos_url":"https://api.github.com/users/gutyril/repos","events_url":"https://api.github.com/users/gutyril/events{/privacy}","received_events_url":"https://api.github.com/users/gutyril/received_events","type":"User","site_admin":false},"labels":[{"id":501011763,"url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/labels/bug","name":"bug","color":"ee0701","default":true},{"id":501011766,"url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-24T20:32:35Z","updated_at":"2017-09-28T10:58:10Z","closed_at":null,"author_association":"NONE","body":"Executing \"serverless package\" command I'm having this error:\r\n`Serverless: Removing Python requirements helper...\r\nServerless: Installing required Python packages for runtime python2.7...\r\nServerless: Zipping required Python packages...\r\nevents.js:160\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: EMFILE: too many open files, open '/synced_data/kuona_lambda/promo-simulations-level/.requirements/numpy/core/tests/test_arrayprint.pyc'\r\n    at Error (native)`\r\n\r\nThis is what I'm using:\r\nCentOS-7\r\npython2.7\r\nNode v6.10.3\r\nserverless v1.16.0\r\n\r\n\r\nI did a count file in the .requierements folder (find .requirements -type f | wc -l) and this is the result: 9202\r\n\r\nIs there something I am missing?, how can I fix this?"},"comment":{"url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/comments/332801972","html_url":"https://github.com/UnitedIncome/serverless-python-requirements/issues/38#issuecomment-332801972","issue_url":"https://api.github.com/repos/UnitedIncome/serverless-python-requirements/issues/38","id":332801972,"user":{"login":"modli","id":6577744,"avatar_url":"https://avatars0.githubusercontent.com/u/6577744?v=4","gravatar_id":"","url":"https://api.github.com/users/modli","html_url":"https://github.com/modli","followers_url":"https://api.github.com/users/modli/followers","following_url":"https://api.github.com/users/modli/following{/other_user}","gists_url":"https://api.github.com/users/modli/gists{/gist_id}","starred_url":"https://api.github.com/users/modli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modli/subscriptions","organizations_url":"https://api.github.com/users/modli/orgs","repos_url":"https://api.github.com/users/modli/repos","events_url":"https://api.github.com/users/modli/events{/privacy}","received_events_url":"https://api.github.com/users/modli/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T10:58:10Z","updated_at":"2017-09-28T10:58:10Z","author_association":"NONE","body":"Hi @gutyril, that happened to me (on OSX) and I did what's on this [stackoverflow guide](https://stackoverflow.com/questions/45004352/error-enfile-file-table-overflow-scandir-while-run-reaction-on-mac).\r\n\r\nTL;DR - \r\n```\r\n$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf\r\n$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf\r\n$ sudo sysctl -w kern.maxfiles=65536\r\n$ sudo sysctl -w kern.maxfilesperproc=65536\r\n$ ulimit -n 65536\r\n```"}}
{"actor":{"display_login":"modli"}}