Getting a 'too many open files in system' on openBSD 6.8 with latest and greatest

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

running serve gets me:

$ hugo serve -w -b test.local:1313 --bind
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
Press Ctrl+C to stop
ERROR 2020/12/22 17:42:15 Error: listen tcp 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.

ok! found the problem accidentally: tried to tar the directory just in case I mess something up and tar flagged some files as follows:

tar: Unable to read directory test/themes/GARGOIL/static/icons/social Permission denied

removed it along with other editor cruft and it seems to be working again.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.