Skip to content

Commit 1a4fe2a

Browse files
authored
Merge pull request element-hq#13128 from dannycolin/inotify-watch-limit
Add instruction to resolve the inotify watch limit issue
2 parents 8ed8840 + 1dbbdb2 commit 1a4fe2a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ yarn install
288288
yarn start
289289
```
290290

291+
291292
Wait a few seconds for the initial build to finish; you should see something like:
292293
```
293294
Hash: b0af76309dd56d7275c8
@@ -309,6 +310,23 @@ modifying it. See the [configuration docs](docs/config.md) for details.
309310

310311
Open http://127.0.0.1:8080/ in your browser to see your newly built Riot.
311312

313+
**Note**: The build script uses inotify by default on Linux to monitor directories
314+
for changes. If the inotify watch limit is too low your build will silently fail.
315+
To avoid this issue, we recommend a limit of at least 128M.
316+
317+
To set a new inotify watch limit, execute:
318+
319+
```
320+
$ sudo sysctl fs.inotify.max_user_watches=131072
321+
$ sudo sysctl -p
322+
```
323+
324+
If you wish, you can make this new limit permanent, by executing:
325+
326+
```
327+
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
328+
$ sudo sysctl -p
329+
```
312330
___
313331

314332
When you make changes to `matrix-react-sdk` or `matrix-js-sdk` they should be

0 commit comments

Comments
 (0)