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

**URL:** <https://discourse.gohugo.io/t/getting-a-too-many-open-files-in-system-on-openbsd-6-8-with-latest-and-greatest/30153>\
**Category:** support\
**Created:** [December 22, 2020, 5:35pm UTC](https://discourse.gohugo.io/t/getting-a-too-many-open-files-in-system-on-openbsd-6-8-with-latest-and-greatest/30153 "2020-12-22T17:35:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeborg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/joeborg/32/12657_2.png) [@joeborg](https://discourse.gohugo.io/u/joeborg)\
**Post date:** [December 22, 2020, 5:35pm UTC](https://discourse.gohugo.io/t/getting-a-too-many-open-files-in-system-on-openbsd-6-8-with-latest-and-greatest/30153/1 "2020-12-22T17:35:33Z")

</div>

Also happened with an older build of hugo. Updated just to make sure.

```auto
$ 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:

```auto
$ 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.

---

<div class="post-metadata">

**Author:** ![joeborg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/joeborg/32/12657_2.png) [@joeborg](https://discourse.gohugo.io/u/joeborg)\
**Post date:** [December 22, 2020, 6:07pm UTC](https://discourse.gohugo.io/t/getting-a-too-many-open-files-in-system-on-openbsd-6-8-with-latest-and-greatest/30153/2 "2020-12-22T18:07:54Z")

</div>

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

```auto
tar: Unable to read directory test/themes/GARGOIL/static/icons/social black#OnDisk.svg.sb-6d15a284-8gQlzB: Permission denied

```

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

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [December 24, 2020, 6:08pm UTC](https://discourse.gohugo.io/t/getting-a-too-many-open-files-in-system-on-openbsd-6-8-with-latest-and-greatest/30153/3 "2020-12-24T18:08:03Z")

</div>

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