something happened on one of my machines where eve...
# general
m
something happened on one of my machines where every time i invoke pants with daemon, i get this:
16:10:25.88 [WARN] Executor shutdown took unexpectedly long: tasks were likely leaked!
thread:
Copy code
% /home/user/bin/pants --help
16:12:34.74 [INFO] Initialization options changed: reinitializing scheduler...
16:12:41.28 [INFO] Scheduler initialized.

Pants 2.19.1

Usage:

  pants [options] [goals] [inputs]           Attempt the specified goals on the specified inputs.
  pants help                                 Display this usage message.
  pants help goals                           List all installed goals.
  pants help targets                         List all installed target types.
  pants help subsystems                      List all configurable subsystems.
  pants help tools                           List all external tools.
  pants help backends                        List all available backends.
  pants help-advanced backends               List all backends, including experimental/preview.
  pants help symbols                         List available BUILD file symbols.
  pants help-advanced symbols                List all available BUILD file symbols, including target types.
  pants help api-types                       List all plugin API types.
  pants help global                          Help for global options.
  pants help-advanced global                 Help for global advanced options.
  pants help [name]                          Help for a target type, goal, subsystem, plugin API type or rule.
  pants help-advanced [goal/subsystem]       Help for a goal or subsystem's advanced options.
  pants help-all                             Print a JSON object containing all help info.

  [inputs] can be:
     A file, e.g. path/to/file.ext
     A path glob, e.g. '**/*.ext' (in quotes to prevent premature shell expansion)
     A directory, e.g. path/to/dir
     A directory ending in `::` to include all subdirectories, e.g. path/to/dir::
     A target address, e.g. path/to/dir:target_name.
     Any of the above with a `-` prefix to ignore the value, e.g. -path/to/ignore_me::

Documentation at <https://www.pantsbuild.org>
Download at <https://pypi.org/pypi/pantsbuild.pants/2.19.1>
16:12:44.81 [WARN] Executor shutdown took unexpectedly long: tasks were likely leaked!

% /home/user/bin/pants version
2.19.1
16:12:56.32 [WARN] Executor shutdown took unexpectedly long: tasks were likely leaked!
or most goals besides very trivial ones like
--help
and
version
, seems like no useful work gets done,
Copy code
% /home/user/bin/pants --local-execution-root-dir=/tmp/pants -ldebug package src/python/foo:pex-bar
16:10:07.39 [DEBUG] acquiring lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7fc4946d3910>
16:10:07.39 [DEBUG] releasing lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7fc4946d3910>
16:10:07.39 [DEBUG] Connecting to pantsd on port 45573
16:10:07.39 [DEBUG] Connecting to pantsd on port 45573 attempt 1/3
16:10:07.51 [INFO] Initialization options changed: reinitializing scheduler...
16:10:14.17 [INFO] Scheduler initialized.
16:10:25.88 [WARN] Executor shutdown took unexpectedly long: tasks were likely leaked!
w
What's your OS? Is this on any repo, or a particular project? e.g. if you grab github.com/pantsbuild/example-python - does it do the same thing there?
anything of note in the .pants.d logs? Or anything of note when you run with
-ldebug
?
m
the above commands were run with debug OS is ubuntu 22.04 looks like it's happening even in the example repo, but only when starting a pants daemon. after the daemon is up, repeating the same command does not print the warning at the end. it still seems like it's behaving strangely, because it doesn't seem like pants is doing anything:
Copy code
circleci@devops-testing-master01 example-python % /home/circleci/bin/pants package -ldebug
circleci@devops-testing-master01 example-python % /home/circleci/bin/pants peek -ldebug
[]
circleci@devops-testing-master01 example-python % /home/circleci/bin/pants package -ldebug
circleci@devops-testing-master01 example-python % /home/circleci/bin/pants check -ldebug
circleci@devops-testing-master01 example-python % /home/circleci/bin/pants test 
18:15:11.19 [INFO] Initialization options changed: reinitializing scheduler...
18:15:15.76 [INFO] Scheduler initialized.