Virtual-environments: Increase max number of open files.

Created on 14 Jan 2020  路  4Comments  路  Source: actions/virtual-environments

Describe the bug
When I run my javascript builds on Ubuntu images, I get the following error message;
EMFILE: too many open files

Related SO Question;
https://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files

Area for Triage:
Ubuntu image

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • [ ] macOS 10.15
  • [x] Ubuntu 16.04 LTS
  • [x] Ubuntu 18.04 LTS
  • [ ] Windows Server 2016 R2
  • [ ] Windows Server 2019

Expected behavior
Build shouldn't throw EMFILE: too many open files error.

Actual behavior
Build throws EMFILE: too many open files error.

See https://github.com/veritone/veritone-sdk/commit/48fe61ccd51f5358bed65a6a765f0aeeb5cef1a8/checks?check_suite_id=398732036

Increasing the maximum number of open files on OS level should resolve the issue. When I try to add this into the workflow file, I get permission denied.
ulimit -Sn 65536

Ubuntu awaiting-deployment bug

All 4 comments

Did you try this?

sudo ulimit -Sn 65536

@MmtBkn we have implemented a fix and it should be rolled out in 1-2 weeks

@MmtBkn the image has been deployed. Could you check that everything is fine now, please?

Everything works fine, thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

estebanes22 picture estebanes22  路  3Comments

Poolitzer picture Poolitzer  路  4Comments

orj picture orj  路  4Comments

trajano picture trajano  路  3Comments

raulpopadineti picture raulpopadineti  路  3Comments