Skip to content

Commit

Permalink
docs: Add 'System limit for number of file watchers' troublesh… (#22008)
Browse files Browse the repository at this point in the history
* docs: 'Add System limit for number of file watchers' troubleshooting

* Apply suggestions from code review

Co-Authored-By: Kyle Gill <kylerobertgill@gmail.com>

Co-authored-by: Kyle Gill <kylerobertgill@gmail.com>
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
3 people authored Mar 9, 2020
1 parent 538fa79 commit de919e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/docs/troubleshooting-common-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,15 @@ The build is failing to find the file at `../..SomeFile.svg`. This can be frustr
The most common culprit to prompt this issue is with filepaths having mixed capitalization. In the example above, check to make sure that the file is actually named `SomeFile.svg` and not something different like `Somefile.svg` or `somefile.svg`. Some operating systems will pick up on this discrepancy for you and find the image without any problems. Your deployment environment may not.

Checking the capitalization of files output in your build logs and redeploying is the best next step.

### Error: ENOSPC: System limit for number of file watchers reached

You may have encountered a system limit on the number of files you can monitor.

To fix it, increase your system's file watchers limit (which is the number of processes that check for changes to files in your site while it's running) with the following command:

```shell
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
```

You may be able to find more information for your circumstances in [the GitHub issue corresponding to this error](https://github.com/gatsbyjs/gatsby/issues/11406).

0 comments on commit de919e7

Please sign in to comment.