Meshery Docs: Hugo build fails with “failed to acquire a build lock: .hugo_build.lock: too many open files” on Apple Silicon Mac

Hi everyone

I am trying to run the Meshery docs locally using make docs, but the build is failing with a Hugo build lock error.
i ran
make docs
i get error of
ERROR error building site: failed to acquire a build lock:
open /Users/sourya/Desktop/meshery/meshery/docs/.hugo_build.lock: too many open files
make: *** [docs] Error 1
**What I have already tried:**Deleted lock file:
→Increased ulimit:
→Restarted the system

→Ran Hugo directly inside /docs folder

→The build still fails before Hugo can output Pages/Non-pages summary.

1 Like

Hey @sourya07,
Here are two fixes:

  • Reclone the meshery repo and then again run make docs from root.
  • If still it doesn’t work delete the previous versions in the static directory i.e (v0.9, v0.8, v0.7, v0.6, v0.5, v0.4) when running the hugo server.

Let me know if these fixes work for you.

1 Like

it’s not working → @RaunaK_Madan
getting the same issue

Can you please confirm that you have disableWatch = true on static directory

Try running hugo server --watch=false