Flow: Flow server fails silently when inotify limit is reached

Created on 5 Mar 2016  路  4Comments  路  Source: facebook/flow

When the limit of inotify watches is reached, Flow server obviously does not recheck source files when they have changed. It will emit the same diagnostics every time, despite source file changes. It took me a long time to figure out this was due to the inotify limit being reached, though, because Flow server silently fails. I think it should tell me when it reaches the inotify limit, instead of failing silently.

I use Flow 0.22.1 on Gentoo Linux 4.1.12.

bug

Most helpful comment

This bug has just bitten my teammate (who also was new to Flow, so this was doubly inconvenient!)

He is on Ubuntu, and we solved it by upping the inotify limit from 8192 to 65536:
sudo sysctl fs.inotify.max_user_watches=65536

Not failing silently would be a good thing, needless to say :)

All 4 comments

Yikes. Thanks for letting us know.

This bug has just bitten my teammate (who also was new to Flow, so this was doubly inconvenient!)

He is on Ubuntu, and we solved it by upping the inotify limit from 8192 to 65536:
sudo sysctl fs.inotify.max_user_watches=65536

Not failing silently would be a good thing, needless to say :)

@tempname11 that solves the problem for Xubuntu 18.04 w/ flow-bin 0.78.0. Thanks!

I had the same issue and took a while to realise what was going wrong. Thanks to tail it warned me about the inotify limit being reached !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beingbook picture Beingbook  路  3Comments

ghost picture ghost  路  3Comments

mmollaverdi picture mmollaverdi  路  3Comments

l2silver picture l2silver  路  3Comments

ctrlplusb picture ctrlplusb  路  3Comments