Also happened with an older build of hugo. Updated just to make sure.
$ hugo env
Hugo Static Site Generator v0.80.0-DEV/extended openbsd/amd64 BuildDate: unknown
GOOS="openbsd"
GOARCH="amd64"
GOVERSION="go1.15.3"
running serve gets me:
$ hugo serve -w -b test.local:1313 --bind 192.168.13.7
Start building sites …
| EN
-------------------+------
Pages | 16
Paginator pages | 0
Non-page files | 6
Static files | 248
Processed images | 4
Aliases | 0
Sitemaps | 1
Cleaned | 0
Built in 716 ms
Watching for changes in /home/dev/projects/test/hugo/{archetypes,content,data,layouts,package.json,static,themes}
Watching for config changes in /home/dev/projects/test/hugo/config/_default, /home/dev/projects/test/hugo/themes/GARGLE/config.yaml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //test.local:1313/ (bind address 192.168.13.7)
Press Ctrl+C to stop
ERROR 2020/12/22 17:42:15 Error: listen tcp 192.168.13.7:1313: socket: too many open files
also happens if I remove toCSS
resource and reset module mounts
to standard layout. Stopped httpd. fstat
lists 310 open files.