Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug command to prune + reset watchman #2894

Closed
stefanpenner opened this issue Jan 5, 2015 · 7 comments
Closed

add debug command to prune + reset watchman #2894

stefanpenner opened this issue Jan 5, 2015 · 7 comments

Comments

@stefanpenner
Copy link
Contributor

@stefanpenner stefanpenner commented Jan 5, 2015

sometimes I do the following

(for root in $(watchman watch-list | jq '.roots | .[]'); do watchman watch-del $(echo $root | sed 's/"//g') ; done)

We need to stop using as many roots when using watchman. Once we can get the tmpdir out, we will be in a much better place to do this.

@stefanpenner

This comment has been minimized.

Copy link
Contributor Author

@stefanpenner stefanpenner commented Jan 6, 2015

this should by default actually only prune watched roots residing in the current directory

@jonathanKingston

This comment has been minimized.

Copy link
Member

@jonathanKingston jonathanKingston commented Jan 25, 2015

@stefanpenner just to verify the outcome of this is that watchman runs out of instances (On linux here with inotify), I can up my instance allowance or restart the server also to fix this.

Ember serve silently continues to serve the app but doesn't warn about expiration of instances.

Running the following fails:

watchman watch /home/user/appName/app/
{
    "version": "3.0.0",
    "error": "A non-recoverable condition has triggered.  Watchman needs your help!\nThe triggering condition was at timestamp=1422192203: inotify-add-watch(/home/user/appName/node_modules/ember-cli/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/test/number/is-nan) -> No space left on device\nAll requests will continue to fail with this message until you resolve\nthe underlying problem.  You will find more information on fixing this at\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch\n"
}

That is what you are trying to clean up here right?

@stefanpenner

This comment has been minimized.

Copy link
Contributor Author

@stefanpenner stefanpenner commented Jan 25, 2015

i suspect so, i don't use linux so the error manifests differently as such it is hard to confirm with certainty

@ballPointPenguin

This comment has been minimized.

Copy link
Contributor

@ballPointPenguin ballPointPenguin commented May 20, 2015

Thanks @stefanpenner your bash foo worked for me as well.

@steveyken

This comment has been minimized.

Copy link

@steveyken steveyken commented Aug 18, 2015

FWIW Watchman 3.1.1 also adds watchman watch-del-all command. Might save you a few keystrokes from the original bash. Ref https://facebook.github.io/watchman/docs/cmd/watch-del-all.html

@stefanpenner

This comment has been minimized.

Copy link
Contributor Author

@stefanpenner stefanpenner commented Aug 18, 2015

Yay finally!

@Aathi

This comment has been minimized.

Copy link

@Aathi Aathi commented Jan 1, 2016

@steveyken Tnx, You really saved my time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.