facebook / facebook/watchman

unable to talk to your watchman on /usr/local/var/run/watchman/jenkins-state/sock! (No such file or directory)

Open
#711 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I have watchman 4.9.0 and MacOS 10.14.5 laptop.
I am trying to set up Jenkins to build my react-native app, android and ios build.
When i build it with yarn build:android:e2e, all is ok
But when I run this command as shell script in Jenkins job, a get long (about 7 minutes) pause. Then build is successful (apk or ipa files are created), but in log I have error:
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2019-06-19T16:37:06,139: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/jenkins-state/sock! (No such file or directory)

I tried to:
1. Reinstall watchman and restart laptot
2. Delete everything in /usr/local/var/run/watchman/ folder
This does not help me

I tried to set full access (read-write) )to jenkins-state folder (in addition for jenkins user, for my system user and everyone). In this case there is no pause in building, but I have error:
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2019-06-19T16:20:13,549: [0x1110f85c0] the permissions on /usr/local/var/run/watchman/jenkins-state allow others to write to it. Verify that you own the contents and then fix its permissions by running `chmod 0700 /usr/local/var/run/watchman/jenkins-state`

Week ago all was working correct, but in one moment this issue appeared, and I dont know how to fix it. Please help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.