-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Latest hugo fails in watch mode on "too many open files" on OS X #6109
Comments
This issue surfaced after Go in 1.12 started to use MacOS' C api to adjust these limits. I did some investigation into this very confusing area that I have now forgotten, but you may look at this thread: I suspect you can edit /Library/LaunchDaemons/limit.maxfiles.plist and reload that. The real fix for this issue is, of course, to add a poll based watcher alternative to /cc @nathany |
OK, so with some poking around, we came across the following workaround. Running these commands allows it to work now:
These changes don't persist past an OS reboot, but at least watch mode works now. I don't know if this issue should stay open, based upon the fact that @bep mentioned there is an existing issue to fit the underlying problem. Feel free to close it if you think that is best. |
On macOS, the best way to watch a directory tree is with FSEvents (which I'm guessing it would have to be an |
If fsnotify were to integrate FSEvents, how would that impact things for Hugo, being that FSEvents requires cgo? |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Hallo, the workaround does not work for me on Fedora 32:
Mebus |
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. |
Since updating to 0.55.6, when we run
hugo server -w
on our site, we get the following error on OS X:ERROR 2019/07/24 09:31:04 Error: listen tcp 127.0.0.1:1313: socket: too many open files
We have had this happen in the past, and solved it by setting the following:
However, with 0.55.6, this doesn't seem to help. If I run with version
v0.54.0-B1A82C61
it works fine.For reference, this is the output of the build command (it builds fine, it just can't work in watch mode):
To reproduce this, clone the repo at https://github.com/devopsdays/devopsdays-web and run
hugo server -w --baseUrl="http://localhost:1313"
Mac OS Version 10.14.5
The text was updated successfully, but these errors were encountered: