On upgrade to v0.76.5: fatal error: pipe failed

This is a MacOS thing and not a Hugo thing, so I won’t be able to help troubleshoot any further, but this is what I know.

The solution will only work for the shell that you are currently running on. If you want to make sure that these settings will stay throughout multiple shells, or just restarting your computer and having it still work, then you need to do the following:

  1. in the /etc/sysctl.conf file, add

    kern.maxfilesperproc=65535
    kern.maxfiles=100000
    
  2. you may have to open this file with a sudo command and sign in if you are “not allowed” to edit it. sudo nano /etc/sysctl.conf

  3. Next follow these directions to create or edit the /Library/LaunchDaemons/limit.maxfiles.plist and /Library/LaunchDaemons/limit.maxproc.plist

  4. Finally, restart to get these settings to update on your computer. You can check that the limits are correct by running

    launchctl limit maxfiles
    

    or

    ulimit -n
    

Failing this, you can also try telling Hugo to use your hard disk drive instead of memory to run the server: hugo server -D --renderToDisk

Failing that, hugo server -D --watch=false might work but you will lose the functionality of the page being able to reload to reflect changes you make - you’d have to restart the server to test out every edit.

1 Like