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

Intermittent Pants service failure #8198

Closed
TansyArron opened this issue Aug 22, 2019 · 18 comments · Fixed by #9714
Closed

Intermittent Pants service failure #8198

TansyArron opened this issue Aug 22, 2019 · 18 comments · Fixed by #9714

Comments

@TansyArron
Copy link
Contributor

Exception message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x112ed6048>, shutting down!

Started seeing this error some time after we upgraded to python3, and before we upgraded to 1.20.0.dev1 (so... May? ish? I can probably nail that down a bit.)

./pants test src/python/toolchain/satresolver::                                                                       

17:33:12 00:00 [main]
               See a report at: http://localhost:51055/run/pants_run_2019_08_22_17_33_12_748_d45583545b6f4bf4ae453f0e9415bf4b
17:33:12 00:00   [setup]
17:33:12 00:00     [parse]21:33:12 [WARN] /Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/option/options.py:460: DeprecationWarning: DEPRECATED: scope compile.zinc will be removed in version 1.20.0.dev2.
  Use scope compile.rsc instead (options: args, use_classpath_jars, incremental_caching)
  self._check_and_apply_deprecations(scope, values)


               Executing tasks in goals: bootstrap -> imports -> unpack-jars -> unpack-wheels -> deferred-sources -> native-compile -> link -> jvm-platform-validate -> gen -> resolve -> resources -> pyprep -> compile -> test21:33:13 [ERROR]
21:33:13 [ERROR] lost active connection to pantsd!
timestamp: 2019-08-22T17:33:13.168851
Exception caught: (pants.bin.remote_pants_runner.Terminated)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_exe.py", line 32, in main
    PantsRunner(start_time=start_time).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_runner.py", line 67, in run
    return RemotePantsRunner(self._exiter, self._args, self._env, options_bootstrapper).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 194, in run
    self._run_pants_with_retry(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 137, in _run_pants_with_retry
    raise self._extract_remote_exception(pantsd_handle.pid, e).with_traceback(traceback)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 115, in _run_pants_with_retry
    return self._connect_and_execute(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 160, in _connect_and_execute
    result = client.execute(self.PANTS_COMMAND, *self._args, **modified_env)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/java/nailgun_client.py", line 364, in execute
    wrapped_exc=e,

Exception message: abruptly lost active connection to pantsd runner: NailgunError('Problem talking to nailgun server (address: 127.0.0.1:52826, remote_pid=34701, remote_pgrp=-34700): TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead(\'Expected 5 bytes before socket shutdown, instead received 0\')).")', TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead('Expected 5 bytes before socket shutdown, instead received 0'))."))
Remote exception:
timestamp: 2019-08-22T17:32:28.458611
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 34701
Pants run failed with exception: Terminated with 1; exiting
timestamp: 2019-08-22T17:33:12.935813
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 34701
Exception caught: (pants.pantsd.pants_daemon.RuntimeFailure)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch
    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync
    self._run_services(self._services)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services
    raise PantsDaemon.RuntimeFailure('service failure for {}, shutting down!'.format(service))

Exception message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x112ed6048>, shutting down!
@TansyArron
Copy link
Contributor Author

TansyArron commented Aug 22, 2019

22:10:17 [WARN] Encountered error when trying to log this message: b'timestamp: 2019-08-22T18:10:17.718050\nException caught: (pants.pantsd.pants_daemon.RuntimeFailure)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>\n    sys.exit(main())\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main\n    PantsLoader.run()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run\n    cls.load_and_execute(entrypoint)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute\n    entrypoint_main()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch\n    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync\n    self._run_services(self._services)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services\n    raise PantsDaemon.RuntimeFailure(\'service failure for {}, shutting down!\'.format(service))\n\nException message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10d152550>, shutting down!\n\n',

This is the most relevant bit I've found in the log so far. Will keep digging.

@TansyArron
Copy link
Contributor Author

21:49:43 [INFO] enqueuing 1 changes for subscription all_files
21:49:44 [INFO] terminating pantsd service: <pants.pantsd.service.fs_event_service.FSEventService object at 0x106c01518>
21:49:44 [INFO] terminating pantsd service: <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c22cc0>
21:49:44 [INFO] terminating pantsd service: <pants.pantsd.service.pailgun_service.PailgunService object at 0x106c22a20>
21:49:44 [INFO] pailgun service on port 52999 shutting down
21:49:44 [INFO] terminating pantsd service: <pants.pantsd.service.store_gc_service.StoreGCService object at 0x106c22940>
21:49:44 [INFO] terminating pantsd
21:49:44 [WARN] Encountered error when trying to log this message: b'timestamp: 2019-08-22T17:49:44.996033\nException caught: (pants.pantsd.pants_daemon.RuntimeFailure)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>\n    sys.exit(main())\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main\n    PantsLoader.run()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run\n    cls.load_and_execute(entrypoint)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute\n    entrypoint_main()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch\n    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync\n    self._run_services(self._services)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services\n    raise PantsDaemon.RuntimeFailure(\'service failure for {}, shutting down!\'.format(service))\n\nException message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c22cc0>, shutting down!\n\n',
 exception: write to closed file
 out: <_io.BufferedWriter name=2>

@blorente
Copy link
Contributor

By the looks of it, you're running under the pants daemon.
The relevant bit is this exception:

Exception message: abruptly lost active connection to pantsd runner: NailgunError('Problem talking to nailgun server (address: 127.0.0.1:52826, remote_pid=34701, remote_pgrp=-34700): TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead(\'Expected 5 bytes before socket shutdown, instead received 0\')).")', TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead('Expected 5 bytes before socket shutdown, instead received 0'))."))
Remote exception:
timestamp: 2019-08-22T17:32:28.458611
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 34701
**Pants run failed with exception: Terminated with 1; exiting**

Somehow, the run failing resulted in a daemon crash, which is why you're seeing the Exception message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x112ed6048>, shutting down! line.

Were you running any other pants commands at all when this happened, in the same workdir?

@TansyArron
Copy link
Contributor Author

No other commands running, just this.

@TansyArron
Copy link
Contributor Author

Having just restarted my machine, the first pants run of the day gave me a similar error, but this time for FSEventService:

./pants test src/python/toolchain/satresolver::                                                                                    
/Users/tansypants/.cache/pants/plugins/protobuf-3.9.0-cp37-cp37m-macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl-install/google/protobuf/descriptor.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from google.protobuf.pyext import _message
/Users/tansypants/.cache/pants/plugins/botocore-1.12.207-py2.py3-none-any.whl-install/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, MutableMapping
/Users/tansypants/.cache/pants/plugins/protobuf-3.9.0-cp37-cp37m-macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl-install/google/protobuf/descriptor.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from google.protobuf.pyext import _message
/Users/tansypants/.cache/pants/plugins/botocore-1.12.207-py2.py3-none-any.whl-install/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, MutableMapping
Exception in thread FSEventServiceThread:
Traceback (most recent call last):
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pywatchman/__init__.py", line 339, in readBytes
    buf = [self.sock.recv(size)]
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tansypants/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/Users/tansypants/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 363, in target
    service.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/service/fs_event_service.py", line 110, in run
    self._watchman.watch_project(self._build_root)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/watchman.py", line 158, in watch_project
    return self.client.query('watch-project', os.path.realpath(path))
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pywatchman/__init__.py", line 1052, in query
    res = self.receive()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pywatchman/__init__.py", line 960, in receive
    result = self.recvConn.receive()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pywatchman/__init__.py", line 695, in receive
    buf = [self.transport.readBytes(sniff_len)]
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pywatchman/__init__.py", line 344, in readBytes
    raise SocketTimeout('timed out waiting for response')
pywatchman.SocketTimeout: timed out waiting for response, while executing ('watch-project', '/Users/tansypants/code/toolchain')

timestamp: 2019-08-23T14:02:14.196588
Exception caught: (pants.pantsd.pants_daemon.RuntimeFailure)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch
    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync
    self._run_services(self._services)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services
    raise PantsDaemon.RuntimeFailure('service failure for {}, shutting down!'.format(service))

Exception message: service failure for <pants.pantsd.service.fs_event_service.FSEventService object at 0x10fd937f0>, shutting down!```

@TansyArron
Copy link
Contributor Author

From the log:

18:01:41 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10fd937f0>
18:01:41 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10fd93668>
18:01:42 [INFO] watching invalidating files: (
'pants.ini', 'src/python/toolchain/workflow/work_unit_state_count_updater.py', 

(Removed several hundred filenames for brevity.)

'src/python/toolchain/workflow/worker.py', 'src/python/toolchain/workflow/worker_thread.py')
18:01:42 [INFO] setting up service <pants.pantsd.service.pailgun_service.PailgunService object at 0x10fd93198>
18:01:42 [INFO] setting up service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10fd933c8>
18:01:42 [INFO] starting service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10fd937f0>
18:01:42 [INFO] starting service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10fd93668>
18:01:42 [INFO] starting service <pants.pantsd.service.pailgun_service.PailgunService object at 0x10fd93198>
18:01:42 [INFO] starting pailgun server on port 49517
18:01:42 [INFO] starting service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10fd933c8>
18:01:42 [INFO] handling pailgun request: `./pants test src/python/toolchain/satresolver::`
18:02:14 [INFO] terminating pantsd service: <pants.pantsd.service.fs_event_service.FSEventService object at 0x10fd937f0>
18:02:14 [INFO] terminating pantsd service: <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10fd93668>
18:02:14 [INFO] terminating pantsd service: <pants.pantsd.service.pailgun_service.PailgunService object at 0x10fd93198>
18:02:14 [INFO] pailgun service on port 49517 shutting down
18:02:14 [INFO] terminating pantsd service: <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10fd933c8>
18:02:14 [INFO] terminating pantsd

@TansyArron
Copy link
Contributor Author

And again. This time it didn't even get far enough to yell at me about deprecated things.

./pants test src/python/toolchain/satresolver::                                                                                  
19:26:06 [ERROR]
19:26:06 [ERROR] lost active connection to pantsd!
timestamp: 2019-08-23T15:26:06.343224
Exception caught: (pants.bin.remote_pants_runner.Terminated)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_exe.py", line 32, in main
    PantsRunner(start_time=start_time).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_runner.py", line 67, in run
    return RemotePantsRunner(self._exiter, self._args, self._env, options_bootstrapper).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 194, in run
    self._run_pants_with_retry(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 137, in _run_pants_with_retry
    raise self._extract_remote_exception(pantsd_handle.pid, e).with_traceback(traceback)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 115, in _run_pants_with_retry
    return self._connect_and_execute(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 160, in _connect_and_execute
    result = client.execute(self.PANTS_COMMAND, *self._args, **modified_env)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/java/nailgun_client.py", line 364, in execute
    wrapped_exc=e,

Exception message: abruptly lost active connection to pantsd runner: NailgunError('Problem talking to nailgun server (address: 127.0.0.1:50045, remote_pid=4010, remote_pgrp=-4009): TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead(\'Expected 5 bytes before socket shutdown, instead received 0\')).")', TruncatedHeaderError("Failed to read nailgun chunk header (TruncatedRead('Expected 5 bytes before socket shutdown, instead received 0'))."))
Remote exception:
timestamp: 2019-08-23T15:25:33.861203
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 4010
Pants run failed with exception: Terminated with 1; exiting
timestamp: 2019-08-23T15:26:06.122568
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 4010
Exception caught: (pants.pantsd.pants_daemon.RuntimeFailure)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch
    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync
    self._run_services(self._services)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services
    raise PantsDaemon.RuntimeFailure('service failure for {}, shutting down!'.format(service))

Exception message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x110d08a20>, shutting down!

Log:

19:25:28 [INFO] starting service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x110d08710>
19:25:28 [INFO] handling pailgun request: `./pants test src/python/toolchain/satresolver::`
19:25:29 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:1734', 'subscribe': 'all_files', 'version': '4.9.1'}
19:25:29 [INFO] enqueuing 44843 changes for subscription all_files
19:25:29 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:1736', 'subscribe': 'pantsd_pid', 'version': '4.9.1'}
19:25:29 [INFO] enqueuing 1 changes for subscription pantsd_pid
19:25:33 [INFO] pailgun request completed: `./pants test src/python/toolchain/satresolver::`
19:26:03 [INFO] enqueuing 1 changes for subscription all_files
19:26:03 [WARN] invalidation: cleared 2 and dirtied 21 nodes for: {"src/python/toolchain/satresolver/pypi/python_graph_test.py", "src/python/toolchain/satresolver/pypi"}
19:26:03 [ERROR] saw file events covered by invalidation globs [('pants.ini', 

Enormous list of files truncated. I hope they aren't actually useful.

 'src/python/toolchain/workflow/worker_thread.py')], terminating the daemon.
19:26:03 [INFO] enqueuing 1 changes for subscription all_files
19:26:05 [INFO] handling pailgun request: `./pants test src/python/toolchain/satresolver::`
19:26:05 [INFO] terminating pantsd service: <pants.pantsd.service.fs_event_service.FSEventService object at 0x110d08ba8>
19:26:06 [INFO] terminating pantsd service: <pants.pantsd.service.scheduler_service.SchedulerService object at 0x110d08a20>
19:26:06 [INFO] terminating pantsd service: <pants.pantsd.service.pailgun_service.PailgunService object at 0x1106c4518>
19:26:06 [INFO] pailgun service on port 50045 shutting down
19:26:06 [INFO] terminating pantsd service: <pants.pantsd.service.store_gc_service.StoreGCService object at 0x110d08710>
19:26:06 [INFO] terminating pantsd

@TansyArron
Copy link
Contributor Author

Not sure if this one belongs here, but it seems it may be related?

./pants test src/python/toolchain/satresolver::                                                                                
22:35:38 [ERROR]
22:35:38 [ERROR] lost active connection to pantsd!
timestamp: 2019-08-23T18:35:38.839124
Exception caught: (pants.bin.remote_pants_runner.Terminated)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>
    sys.exit(main())
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main
    PantsLoader.run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run
    cls.load_and_execute(entrypoint)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute
    entrypoint_main()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_exe.py", line 32, in main
    PantsRunner(start_time=start_time).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_runner.py", line 67, in run
    return RemotePantsRunner(self._exiter, self._args, self._env, options_bootstrapper).run()
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 194, in run
    self._run_pants_with_retry(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 137, in _run_pants_with_retry
    raise self._extract_remote_exception(pantsd_handle.pid, e).with_traceback(traceback)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 115, in _run_pants_with_retry
    return self._connect_and_execute(pantsd_handle)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 160, in _connect_and_execute
    result = client.execute(self.PANTS_COMMAND, *self._args, **modified_env)
  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/java/nailgun_client.py", line 364, in execute
    wrapped_exc=e,

Exception message: abruptly lost active connection to pantsd runner: NailgunError("Problem talking to nailgun server (address: 127.0.0.1:51369, remote_pid=<remote PID chunk not yet received!>, remote_pgrp=<remote PGRP chunk not yet received!>): ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))
Remote exception:
timestamp: 2019-08-23T18:35:27.618169
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 14034
Pants run failed with exception: Terminated with 1; exiting

Log:

22:34:36 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10b8bff98>
22:34:36 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10b8bfe10>
22:34:37 [INFO] watching invalidating files: ('pants.ini', 
22:34:37 [INFO] setting up service <pants.pantsd.service.pailgun_service.PailgunService object at 0x10b8bfa58>
22:34:37 [INFO] setting up service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10b8bf940>
22:34:37 [INFO] starting service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10b8bff98>
22:34:37 [INFO] starting service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10b8bfe10>
22:34:37 [INFO] starting service <pants.pantsd.service.pailgun_service.PailgunService object at 0x10b8bfa58>
22:34:37 [INFO] starting pailgun server on port 51352
22:34:37 [INFO] starting service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10b8bf940>
22:34:37 [INFO] handling pailgun request: `./pants test src/python/toolchain/satresolver::`
22:34:37 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:7292', 'subscribe': 'all_files', 'version': '4.9.1'}
22:34:37 [INFO] enqueuing 44842 changes for subscription all_files
22:34:38 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:7294', 'subscribe': 'pantsd_pid', 'version': '4.9.1'}
22:34:38 [INFO] enqueuing 1 changes for subscription pantsd_pid
22:34:43 [INFO] pailgun request completed: `./pants test src/python/toolchain/satresolver::`
22:35:16 [INFO] enqueuing 1 changes for subscription all_files
22:35:16 [WARN] invalidation: cleared 2 and dirtied 28 nodes for: {"src/python/toolchain/satresolver/pypi", "src/python/toolchain/satresolver/pypi/python_graph_test.py"}
22:35:17 [ERROR] saw file events covered by invalidation globs [('pants.ini', 

truncated.

'src/python/toolchain/workflow/worker.py', 'src/python/toolchain/workflow/worker_thread.py')], terminating the daemon.
22:35:18 [INFO] terminating pantsd service: <pants.pantsd.service.fs_event_service.FSEventService object at 0x10b8bff98>
22:35:18 [INFO] terminating pantsd service: <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10b8bfe10>
22:35:18 [INFO] terminating pantsd service: <pants.pantsd.service.pailgun_service.PailgunService object at 0x10b8bfa58>
22:35:18 [INFO] pailgun service on port 51352 shutting down
22:35:18 [INFO] terminating pantsd service: <pants.pantsd.service.store_gc_service.StoreGCService object at 0x10b8bf940>
22:35:18 [INFO] terminating pantsd
22:35:18 [WARN] Encountered error when trying to log this message: b'timestamp: 2019-08-23T18:35:18.225449\nException caught: (pants.pantsd.pants_daemon.RuntimeFailure)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>\n    sys.exit(main())\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main\n    PantsLoader.run()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run\n    cls.load_and_execute(entrypoint)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute\n    entrypoint_main()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch\n    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync\n    self._run_services(self._services)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services\n    raise PantsDaemon.RuntimeFailure(\'service failure for {}, shutting down!\'.format(service))\n\nException message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10b8bfe10>, shutting down!\n\n',
 exception: write to closed file
 out: <_io.BufferedWriter name=2>
22:35:21 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x106c92208>
22:35:21 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c920b8>
22:35:21 [INFO] watching invalidating files: ('pants.ini', 

truncated. (These all appear to be the complete list of every file in our repo.)

22:35:21 [INFO] setting up service <pants.pantsd.service.pailgun_service.PailgunService object at 0x106a32c88>
22:35:21 [INFO] setting up service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x106a32b70>
22:35:21 [INFO] starting service <pants.pantsd.service.fs_event_service.FSEventService object at 0x106c92208>
22:35:21 [INFO] starting service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c920b8>
22:35:21 [INFO] starting service <pants.pantsd.service.pailgun_service.PailgunService object at 0x106a32c88>
22:35:21 [INFO] starting pailgun server on port 51369
22:35:21 [INFO] starting service <pants.pantsd.service.store_gc_service.StoreGCService object at 0x106a32b70>
22:35:21 [INFO] handling pailgun request: `./pants test src/python/toolchain/satresolver::`
22:35:22 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:7408', 'subscribe': 'all_files', 'version': '4.9.1'}
22:35:22 [INFO] enqueuing 44842 changes for subscription all_files
22:35:22 [INFO] confirmed watchman subscription: {'clock': 'c:1566583299:1254:1:7410', 'subscribe': 'pantsd_pid', 'version': '4.9.1'}
22:35:22 [INFO] enqueuing 1 changes for subscription pantsd_pid
22:35:27 [INFO] pailgun request completed: `./pants test src/python/toolchain/satresolver::`
22:35:36 [INFO] enqueuing 1 changes for subscription all_files
22:35:36 [WARN] invalidation: cleared 2 and dirtied 28 nodes for: {"src/python/toolchain/satresolver/pypi", "src/python/toolchain/satresolver/pypi/python_graph_test.py"}
22:35:36 [ERROR] saw file events covered by invalidation globs [('pants.ini', 

truncated

22:35:38 [INFO] terminating pantsd service: <pants.pantsd.service.fs_event_service.FSEventService object at 0x106c92208>
22:35:38 [INFO] terminating pantsd service: <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c920b8>
22:35:38 [INFO] terminating pantsd service: <pants.pantsd.service.pailgun_service.PailgunService object at 0x106a32c88>
22:35:39 [INFO] terminating pantsd service: <pants.pantsd.service.store_gc_service.StoreGCService object at 0x106a32b70>
22:35:39 [INFO] terminating pantsd
22:35:39 [INFO] pailgun service on port 51369 shutting down
22:35:39 [WARN] Encountered error when trying to log this message: b'timestamp: 2019-08-23T18:35:39.843671\nException caught: (pants.pantsd.pants_daemon.RuntimeFailure)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/bin/pants", line 10, in <module>\n    sys.exit(main())\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 78, in main\n    PantsLoader.run()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 74, in run\n    cls.load_and_execute(entrypoint)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 67, in load_and_execute\n    entrypoint_main()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 510, in launch\n    PantsDaemon.Factory.create(OptionsBootstrapper.create()).run_sync()\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 443, in run_sync\n    self._run_services(self._services)\n  File "/Users/tansypants/.cache/pants/setup/bootstrap-Darwin-x86_64/1.20.0.dev1_py37/lib/python3.7/site-packages/pants/pantsd/pants_daemon.py", line 396, in _run_services\n    raise PantsDaemon.RuntimeFailure(\'service failure for {}, shutting down!\'.format(service))\n\nException message: service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x106c920b8>, shutting down!\n\n',
 exception: write to closed file
 out: <_io.BufferedWriter name=2>

@blorente
Copy link
Contributor

For one of your posted logs, this line is very relevant:

<a trace>
socket.timeout: timed out

During handling the above exception, another exception occurred:
<another trace>
pywatchman.SocketTimeout: timed out waiting for response, while executing ('watch-project', '/Users/tansypants/code/toolchain')

So, in that case, for some reason, the watchman socket was either corrupted or unable to start. Do you know of anything in your environment that might prevent pants from creating a socket? Another explanation is that the watchman socket file was leftover from the last time you ran, and pants tried to connect to it, but there was no process running. If that happens, running ./pants clean-all is usually good :)

@TansyArron
Copy link
Contributor Author

Unfortunately clean-all has done nothing to fix this one. I hit this 15-20 times a day. Re-running the same command works just fine, but this error comes up maybe 1 in every 4 pants runs.

I don't think there's anything in my environment that would prevent socket creation (except that I'm running OSX, which does occasionally result in things suddenly not working the way one would expect.)

@TansyArron
Copy link
Contributor Author

This appears to be only hitting OSX users at my company. Linux users do not seem to be seeing the same errors. (sample size: 3 OSX users, 1 linux user)

@blorente
Copy link
Contributor

Okay, so if it's not the socket thing (let's assume that was a one-off because of the restart), let's go back to the other logs you posted. This line here:

Remote exception:
timestamp: 2019-08-23T18:35:27.618169
process title: pantsd [/Users/tansypants/code/toolchain]
sys.argv: ['./pants', 'test', 'src/python/toolchain/satresolver::']
pid: 14034
Pants run failed with exception: Terminated with 1; exiting

Makes me believe that the failures were legitimate, because this triggers when a run completes with a bad error code. However, your run doesn't finish at all which is very surprising.

Seeing as you note that the list of invalidating files seems to be the whole repo, it's possible that the globs are misconfigured, and they end up invalidating the daemon way too often.
These globs are calculated by grouping together three options: --pythonpath, --pants-config-files, and --pantsd-invalidation-globs.

If a file covered by those globs changes, it will invalidate the daemon and crash it. Is it possible that one of those files is changing mid-run?

@TansyArron
Copy link
Contributor Author

It's possible, but unlikely - My general workflow is to make some changes, run ./pants test and wait for the output before making more changes.

I will note though, that the list of al the files in the repo did contain all the .pycs under __pycache__, so if pants is regenerating those, that may be the cause of the issue.

Of note: My coworkers say they hit this issue more often when running pants on python targets than anything else. Possibly it is python specific.

@TansyArron
Copy link
Contributor Author

We've hit this issue on multiple machines, on multiple different pants commands (lint and test for sure) on multiple different targets (though possibly always with python targets?) The globs are generally the default python_library() or python_tests() glob. Here is the content of the build file for the src/python/toolchain/satresolver target I've been iterating on:

python_library(
  dependencies = [
    '3rdparty/python:plyvel',
    '3rdparty/python:setuptools',
    'src/python/toolchain/base',
    'src/python/toolchain/lang/python',
    'src/python/toolchain/packagerepo/pypi',
    'src/python/toolchain/satresolver',
    'src/python/toolchain/util/file',
  ],
)

python_tests(
  name='tests',
  dependencies = [
    '3rdparty/python:Django',
    '3rdparty/python:pytest',
    '3rdparty/python:pytest-django',  # Test time requirement.
    ':pypi',
    'src/python/toolchain/base',
    'src/python/toolchain/django/webresource',
    'src/python/toolchain/lang/python',
    'src/python/toolchain/packagerepo/pypi',
    'src/python/toolchain/satresolver',
    'src/python/toolchain:conftest',
  ],
)

python_binary(
  name = 'depgraph_builder',
  dependencies = [
    ':pypi'
  ],
  entry_point = 'toolchain.satresolver.pypi.depgraph_builder'
)

@stuhood
Copy link
Sponsor Member

stuhood commented Aug 29, 2019

How large is this repository? Is it possible that watchman is just taking a long time to respond the first time?

What are these set to for you?

--watchman-socket-timeout=<float> (default: 0.1)
    The watchman client socket timeout in seconds. Setting this to too high a
    value can negatively impact the latency of runs forked by pantsd.
--watchman-startup-timeout=<float> (default: 30.0)
    The watchman socket timeout (in seconds) for the initial `watch-project`
    command. This may need to be set higher for larger repos due to watchman
    startup cost.

@TansyArron
Copy link
Contributor Author

Not huge. I guess it is possible it's taking ages. We do not appear to be overriding the default watchman settings. Is there some way I can print out the actual settings for those flags on a given run?

@wisechengyi
Copy link
Contributor

@jsirois
Copy link
Member

jsirois commented Mar 24, 2020

I removed the flaky-test label per #9386 since this one appears non-specific to a particular test but indicates a larger pantsd production code problem.

@jsirois jsirois removed their assignment Mar 24, 2020
stuhood pushed a commit that referenced this issue May 7, 2020
### Problem

Using the notify crate for file invalidation is now feature complete, and so we are using two file watching implementations simultaneously under `pantsd`.

### Solution

Disable watchman by default, and deprecate it. Additionally, remove the implementation of the `experimental` flag from notify. Fixes #8710, fixes #8198, fixes #7375, fixes #5487, fixes #4999, fixes #3479.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants