Problems with running local development server for Layer5 development

Hi,

If you’re a contributor to Layer 5, then you may face some minor issues while running your local development server sometimes.

I recently faced some issues while using make site so I’ll share the problem and the solution to it here.

[OS: Ubuntu 24.04]

While contributing to the Layer5 repository, you will use the following commands:

  • make setup - helps you install the required dependencies for the project.
  • make site - helps you start the local development server for the project.

While running make site, you encounter some other issues, which have been covered in this discussion.

You may also encounter an ERROR: ENOPSC: System Limit for number of file watchers, ..

As mentioned in the error message, this happens when the system has reached the limit set for the number of file watchers.

Fixes:

  1. A simple restart of your code editor combined with closing any unnecessary applications can effectively resolve this issue.

  2. Next, run nvm use as a separate step to confirm you’re operating with the correct Node.js version.

If the error still occurs, you can temporarily increase the file watchers limit with these commands:

sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p

The change is temporary and will last until your system is rebooted.

If you consistently face the file watcher issue while working with the Layer5 repository and wish to implement a permanent solution, please refer to the discussion below for detailed guidance.

2 Likes