Skip to content
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

error setting higher file descriptor limit for this process: invalid argument #285

Closed
bugzpodder opened this issue Aug 28, 2019 · 2 comments · Fixed by #286
Closed

error setting higher file descriptor limit for this process: invalid argument #285

bugzpodder opened this issue Aug 28, 2019 · 2 comments · Fixed by #286

Comments

@bugzpodder
Copy link

getting:
error setting higher file descriptor limit for this process: invalid argument
when running ibazel.

Have to run ulimit -n 10000 manually.

macosx

@achew22
Copy link
Member

achew22 commented Sep 2, 2019

@bugzpodder could you tell me the OS, OS version and iBazel version you're running?

@bugzpodder
Copy link
Author

bugzpodder commented Sep 2, 2019

iBazel - Version v0.10.2
macos mojave 10.14.6
go 1.12.1
Seem to be related to golang/go#30401

First comment says use the workaroud:

if runtime.GOOS == "darwin" && set.Cur > 10240 {
		// The max file limit is 10240, even though
		// the max returned by Getrlimit is 1<<63-1.
		// This is OPEN_MAX in sys/syslimits.h.
		set.Cur = 10240
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants