-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Fix regression with "too many open files" on macOS #3582
Comments
Not sure why you run Sierra beta, but it started to fail for me at some point, and Googling it pointed me to some posts saying that "now you have to set the ulimit in some plist file" etc. So we're not maintaining a hack/magic that only work for some -- when the real solution is to set a more sensible default value yourself. I will keep this open as a documentation issue, but I'm not reverting any ulimit hack. |
|
@mitchchn This has helped me: https://superuser.com/a/828010 |
Yes and it worked for me. But my main point is that I cannot have a hack in Hugo that fails, i.e. creates ERROR in the log for me; that makes Hugo near hopeless to work with and if it fails on my macOS (I don't run Sierra beta), then others will soon start to complain as well. |
This article seem to describe it well: https://blog.dekstroza.io/ulimit-shenanigans-on-osx-el-capitan/ |
OK, it worked after following the steps in that post. I'd still like to have a shell script which sets this up, even if that script is only linked to from the documentation and not included in Hugo. It's a lot to ask writers (not developers!) to set up a launch daemon manually just so they can use the preview server. |
Just test-reverted the commit in question:
I could start my hugo server with |
I also reverted the commit and got the same error, but then I changed the rlimit to a smaller value (still much larger than the default of 256):
Rebuilt and had no issues. Can you confirm that, @bep? |
Yes. I have at least one other issue that I should get out there and will do a patch release in a day or so, hopefully before people start shouting. Thanks for the heads up. |
Thanks. For what it's worth, the max allowable value seems to be |
On Linux Mint, and
I get the feeling hugo is reporting on open files outside of the static website root directory? |
I found this solution from here, |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
rlimit tweaking was removed in #3512. But without it, the rlimit is only 256, and I can't use
hugo serve
to preview even a relatively modest site without seeing this error:Error: listen tcp 127.0.0.1:1313: socket: too many open files
The
ulimit
command still works fine for me in Sierra (10.12.6 beta), so I don't understand why it was removed from Hugo:ulimit -n 10000; hugo serve
Any clarification on this, @bep?
The text was updated successfully, but these errors were encountered: