Is anyone familiar with this error: ```ValueError:...
# general
c
Is anyone familiar with this error:
Copy code
ValueError: Failed to begin watching the filesystem: Bad file descriptor (os error 9)
👀 1
h
I don't think I've seen that. What Pants version? Is it deterministic?
c
yes, and 2.2.0
it keeps happening on one of my coworker's machines
Copy code
13:05:26.06 [ERROR] Failed to begin watching the filesystem: Bad file descriptor (os error 9)
Traceback (most recent call last):
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/bin/daemon_pants_runner.py", line 157, in single_daemonized_run
    scheduler = self._core.prepare_scheduler(options_bootstrapper)
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/pantsd/pants_daemon_core.py", line 112, in prepare_scheduler
    self._init_scheduler(options_fingerprint, options_bootstrapper)
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/pantsd/pants_daemon_core.py", line 90, in _init_scheduler
    raise e
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/pantsd/pants_daemon_core.py", line 79, in _init_scheduler
    self._scheduler = EngineInitializer.setup_graph(
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/init/engine_initializer.py", line 177, in setup_graph
    return EngineInitializer.setup_graph_extended(
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/init/engine_initializer.py", line 282, in setup_graph_extended
    scheduler = Scheduler(
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/engine/internals/scheduler.py", line 156, in __init__
    self._scheduler = native.new_scheduler(
  File "/home/larry/.cache/pants/setup/bootstrap-Linux-x86_64/2.2.0_py38/lib/python3.8/site-packages/pants/engine/internals/native.py", line 291, in new_scheduler
    self.lib.scheduler_create(
full stack trace
killing the
pantsd
process didn't help, clearing out
~/.cache/pants
didn't help
h
What happens if you run with
--no-pantsd
?
c
same issue
h
hm, do you have a stacktrace with
--no-pantsd
? I'd expect it to be different than above Note that
--no-pantsd
is different than killing Pantsd process -
--no-pantsd
means you won't start a new daemon process
c
well I would provide that, except a reboot of the computer in question appears to have cleared up the error
👀 1
working theory is some sort of file lock
h
Hmm this is unfortunate. Please report back if it happens again!