https://pantsbuild.org/ logo
#development
Title
# development
p

polite-garden-50641

03/14/2023, 4:55 PM
seeing a weird error running on a clean branch on latest main:
Copy code
native_engine.IntrinsicError: Snapshot failed: Failed to digest inputs: Throw { val: Failed to watch filesystem for `/data/home/asher/projects/pants/BUILD`:
Copy code
~/projects/pants (main)$ up && git rebase upstream/main &&  ./pants fmt  check lint src/python/::
Successfully rebased and updated refs/heads/main.
16:53:47.98 [INFO] Initializing scheduler...
16:53:55.68 [INFO] Scheduler initialized.
16:53:55.99 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
    ..
  in pants.core.util_rules.environments.determine_local_environment
    ..
  in pants.core.util_rules.environments.determine_all_environments
    ..

Traceback (most recent call last):
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/core/util_rules/environments.py", line 591, in determine_all_environments
    resolved_tgts = await MultiGet(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 358, in MultiGet
    return await _MultiGet(tuple(__arg0))
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 165, in __await__
    result = yield self.gets
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/core/util_rules/environments.py", line 824, in get_target_for_environment_name
    wrapped_target = await Get(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/core/util_rules/environments.py", line 824, in get_target_for_environment_name
    wrapped_target = await Get(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/graph.py", line 393, in resolve_target_for_bootstrapping
    target_adaptor, target_type = await _determine_target_adaptor_and_type(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/graph.py", line 173, in _determine_target_adaptor_and_type
    target_adaptor = await Get(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/graph.py", line 393, in resolve_target_for_bootstrapping
    target_adaptor, target_type = await _determine_target_adaptor_and_type(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/graph.py", line 173, in _determine_target_adaptor_and_type
    target_adaptor = await Get(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/build_files.py", line 417, in find_target_adaptor
    address_family = await Get(AddressFamily, AddressFamilyDir(address.spec_path))
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/build_files.py", line 417, in find_target_adaptor
    address_family = await Get(AddressFamily, AddressFamilyDir(address.spec_path))
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/build_files.py", line 269, in parse_address_family
    digest_contents, all_synthetic_address_maps = await MultiGet(
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 509, in MultiGet
    return await _MultiGet((__arg0, __arg1))
  File "/data/home/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 165, in __await__
    result = yield self.gets
native_engine.IntrinsicError: Snapshot failed: Failed to digest inputs: Throw { val: Failed to watch filesystem for `/data/home/asher/projects/pants/BUILD`: Error { kind: MaxFilesWatch, paths: ["/data/home/asher/projects/pants/BUILD"] }, python_traceback: "Traceback (no traceback):\n  <pants native internals>\nException: Failed to watch filesystem for `/data/home/asher/projects/pants/BUILD`: Error { kind: MaxFilesWatch, paths: [\"/data/home/asher/projects/pants/BUILD\"] }", engine_traceback: [FailureFrame { name: "digest_file", desc: Some("Fingerprinting: BUILD") }] }
w

witty-crayon-22786

03/14/2023, 4:59 PM
Copy code
MaxFilesWatch
is this on linux?
c

curved-television-6568

03/14/2023, 5:11 PM
p

polite-garden-50641

03/14/2023, 5:12 PM
yes. Ubuntu.
w

witty-crayon-22786

03/14/2023, 5:13 PM
@curved-television-6568: what do they have max watches set to?
c

curved-television-6568

03/14/2023, 5:13 PM
will ask
cobbled the value by applying the change before checking.. 🤦‍♂️ so none-the-wiser but will report back if it made a difference.. was a frequently persisting issue..