Giter Club home page Giter Club logo

Comments (11)

RichieEscarez avatar RichieEscarez commented on June 12, 2024 21

@joe-getcouragenow would you be open to trying the workaround steps for resolving the "too many files open" error?

In Oct, I moved from a 2015 Macbook to a newer 2019 version and remember hitting that same pipe error when setting up my new machine. I don't think I did more than running the following commands to get past that error (which ive opened a PR for here google/docsy#410):

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535

More context here: https://github.com/knative/website/blob/master/DEVELOPMENT.md#file-descriptors-in-server-mode

If this resolves this pipe error for you, we can update that PR.

from docsy-example.

joe-getcouragenow avatar joe-getcouragenow commented on June 12, 2024 1

@joe-getcouragenow would you be open to trying the workaround steps for resolving the "too many files open" error?

In Oct, I moved from a 2015 Macbook to a newer 2019 version and remember hitting that same pipe error when setting up my new machine. I don't think I did more than running the following commands to get past that error (which ive opened a PR for here google/docsy#410):

YES this maxfiles script, fixes it on MAC :)

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535

More context here: https://github.com/knative/website/blob/master/DEVELOPMENT.md#file-descriptors-in-server-mode

If this resolves this pipe error for you, we can update that PR.

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024 1

Thanks Richie!

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

That's odd. Have you tried just building and serving directly rather than via a makefile, just to check that it still doesn't work?

If it's still failing, it may be a Hugo issue - I found this blog post with a workaround that might help: https://akhromieiev.com/hugo-fatal-error-pipe-failed/

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

Also interesting that the people with similar issues I found seemed to be also building/serving on Mac OS.

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

I'll see if I can find out anything else as running with watch=false does mean you need to build the site every time you make a change. :(

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

https://discourse.gohugo.io/t/hugo-crashing-on-hugo-server-getting-fatal-error-pipe-failed-mac/29764

from docsy-example.

JaredOzzy avatar JaredOzzy commented on June 12, 2024

@joe-getcouragenow would you be open to trying the workaround steps for resolving the "too many files open" error?

In Oct, I moved from a 2015 Macbook to a newer 2019 version and remember hitting that same pipe error when setting up my new machine. I don't think I did more than running the following commands to get past that error (which ive opened a PR for here google/docsy#410):

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535

More context here: https://github.com/knative/website/blob/master/DEVELOPMENT.md#file-descriptors-in-server-mode

If this resolves this pipe error for you, we can update that PR.

These steps worked for me too!

Thanks.

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

Docs updated in google/docsy#410

from docsy-example.

LisaFC avatar LisaFC commented on June 12, 2024

I'm going to close this as we have a working workaround, do reopen if it's not working for everyone.

from docsy-example.

ascensus-mdb avatar ascensus-mdb commented on June 12, 2024

@joe-getcouragenow would you be open to trying the workaround steps for resolving the "too many files open" error?

In Oct, I moved from a 2015 Macbook to a newer 2019 version and remember hitting that same pipe error when setting up my new machine. I don't think I did more than running the following commands to get past that error (which ive opened a PR for here google/docsy#410):

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535

More context here: https://github.com/knative/website/blob/master/DEVELOPMENT.md#file-descriptors-in-server-mode

If this resolves this pipe error for you, we can update that PR.

That works for me, thanks! But it seems I have to type it every time I re-launch my computer. Is there a way to set it up pernamently?

from docsy-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.