stale-waitress-56895
04/28/2025, 9:08 AMtime pants run //helpers/utils:utils
Usage: utils.pex [OPTIONS] COMMAND [ARGS]...
Utility commands for working with Pants build system.
Options:
--help Show this message and exit.
Commands:
env Generate PYTHONPATH environment variables from Pants roots.
list List targets in the repository.
roots Show the pants build roots.
real 0m9.211s
user 0m5.290s
sys 0m1.500sstale-waitress-56895
04/28/2025, 9:09 AMstale-waitress-56895
04/28/2025, 9:11 AMstale-waitress-56895
04/28/2025, 9:21 AM/tmp wasnt't mounted properly,
Slightly better now
time pants run //helpers/utils:utils
Usage: utils.pex [OPTIONS] COMMAND [ARGS]...
Utility commands for working with Pants build system.
Options:
--help Show this message and exit.
Commands:
env Generate PYTHONPATH environment variables from Pants roots.
list List targets in the repository.
roots Show the pants build roots.
real 0m7.468s
user 0m4.352s
sys 0m0.995sstale-waitress-56895
04/28/2025, 9:23 AM(venv) coder@sandrino:~/platform/helpers/utils$ time pants package //helpers/utils:utils
09:22:53.47 [INFO] Wrote dist/helpers.utils/utils.pex
real 0m5.706s
user 0m4.079s
sys 0m0.968s
(venv) coder@sandrino:~/platform/helpers/utils$ ls -l ~/platform/dist/helpers.utils/utils.pex
-rwxr-xr-x 1 coder coder 882189 Apr 28 09:22 /home/coder/platform/dist/helpers.utils/utils.pex
(venv) coder@sandrino:~/platform/helpers/utils$ time pants package //helpers/utils:utils
09:24:32.28 [INFO] Wrote dist/helpers.utils/utils.pex
real 0m5.872s
user 0m4.138s
sys 0m1.063s
(venv) coder@sandrino:~/platform/helpers/utils$ ls -l ~/platform/dist/helpers.utils/utils.pex
-rwxr-xr-x 1 coder coder 882189 Apr 28 09:24 /home/coder/platform/dist/helpers.utils/utils.pex
Shouldn't this command return almost immediately with no changes to the source files? instead of rewriting the pex?happy-kitchen-89482
04/28/2025, 9:26 AMdist/ (since it can’t know if you’ve deleted it from there since it last ran) but it should copy it from cache, so this should be fasthappy-kitchen-89482
04/28/2025, 9:27 AMhappy-kitchen-89482
04/28/2025, 9:27 AMps -ef | grep pantsd after the pants run?stale-waitress-56895
04/28/2025, 9:29 AMps -ef | grep pantsd
coder 20306 1 0 08:46 ? 00:02:07 pantsd [/home/coder/platform]stale-waitress-56895
04/28/2025, 9:30 AMstale-waitress-56895
04/28/2025, 9:30 AMhappy-kitchen-89482
04/28/2025, 9:32 AMpackage. For run it should rerun immediately with no extra workhappy-kitchen-89482
04/28/2025, 9:32 AMstale-waitress-56895
04/28/2025, 9:33 AMstale-waitress-56895
04/28/2025, 9:33 AMhappy-kitchen-89482
04/28/2025, 9:33 AMdist is very fasthappy-kitchen-89482
04/28/2025, 9:33 AMhappy-kitchen-89482
04/28/2025, 9:34 AMrun anywayhappy-kitchen-89482
04/28/2025, 9:34 AMhappy-kitchen-89482
04/28/2025, 9:35 AMstale-waitress-56895
04/28/2025, 9:35 AMpants help-advanced global | grep tmp
09:35:35.75 [INFO] waiting for pantsd to start...
09:35:38.65 [INFO] pantsd started
09:35:39.62 [INFO] Initializing scheduler...
09:35:43.86 [INFO] Scheduler initialized.
09:35:44.22 [WARN] BUILD file symbol `docker_image` conflict. Name already defined.
default: <tmp_dir>
current value: /tmpstale-waitress-56895
04/28/2025, 9:36 AMstale-waitress-56895
04/28/2025, 9:37 AMhappy-kitchen-89482
04/28/2025, 9:37 AMBUILD file symbol docker_image conflict. Name already defined. part at any ratestale-waitress-56895
04/28/2025, 9:40 AMhappy-kitchen-89482
04/28/2025, 9:41 AM.pants.d under the build root for internal stuff, typically ~/cache/pants for caches and dist/ for user-facing output.happy-kitchen-89482
04/28/2025, 9:42 AM--local-store-dir in pants help-advanced globalstale-waitress-56895
04/28/2025, 10:03 AMdefault: /home/coder/.cache/pants/lmdb_store
current value: /home/coder/.cache/pants/lmdb_storestale-waitress-56895
04/28/2025, 10:22 AMtime pants run //helpers/utils:utils -ldebug
vs
pants run //helpers/utils:utils -ldebug
makes pants restart for some reason, so some of my timings were affected by it
(venv) coder@sandrino:~/platform$ time pants run //helpers/utils:utils -ldebug
[2025-04-28T10:20:22Z DEBUG pantsd] Looking for pantsd metadata in /home/coder/platform/.pants.d/pids as specified by [GLOBAL] pants_subprocessdir = .pants.d/pids via Default.
[2025-04-28T10:20:22Z DEBUG pantsd] Parsed port 43937 from /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd/socket.
10:20:24.55 [DEBUG] acquiring lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7f2a7c19d6d0>
10:20:24.55 [DEBUG] terminating pantsd
10:20:24.55 [DEBUG] sending signal 15 to pid 34065
10:20:24.76 [DEBUG] successfully terminated pid 34065
10:20:24.76 [DEBUG] purging metadata directory: /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd
10:20:24.76 [DEBUG] Launching pantsd
10:20:24.76 [DEBUG] purging metadata directory: /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd
10:20:24.76 [DEBUG] pantsd command is: PANTS_DAEMON_ENTRYPOINT=pants.pantsd.pants_daemon:launch_new_pantsd_instance PYTHONPATH=/home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python311.zip:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.11:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.11/lib-dynload:/home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/lib/python3.11/site-packages /home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin/python3.11 /home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin/pants run //helpers/utils:utils -ldebug
10:20:29.77 [INFO] waiting for pantsd to start...
10:20:32.27 [INFO] pantsd started
10:20:32.27 [DEBUG] pantsd is running at pid 34698, pailgun port is 41687
pants run //helpers/utils:utils
10:21:51.02 [INFO] waiting for pantsd to start...
10:21:53.43 [INFO] pantsd started
10:21:54.23 [INFO] Initializing scheduler...
10:21:58.84 [INFO] Scheduler initialized.
(venv) coder@sandrino:~/platform$ pants run //helpers/utils:utils -ldebug
[2025-04-28T10:22:31Z DEBUG pantsd] Looking for pantsd metadata in /home/coder/platform/.pants.d/pids as specified by [GLOBAL] pants_subprocessdir = .pants.d/pids via Default.
[2025-04-28T10:22:31Z DEBUG pantsd] Parsed port 38987 from /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd/socket.
10:22:33.90 [DEBUG] acquiring lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7f2e945e5b10>
10:22:33.91 [DEBUG] terminating pantsd
10:22:33.91 [DEBUG] sending signal 15 to pid 35969
10:22:34.11 [DEBUG] successfully terminated pid 35969
10:22:34.11 [DEBUG] purging metadata directory: /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd
10:22:34.11 [DEBUG] Launching pantsd
10:22:34.11 [DEBUG] purging metadata directory: /home/coder/platform/.pants.d/pids/c32cbc6701f7/pantsd
10:22:34.12 [DEBUG] pantsd command is: PANTS_DAEMON_ENTRYPOINT=pants.pantsd.pants_daemon:launch_new_pantsd_instance PYTHONPATH=/home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python311.zip:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.11:/home/coder/.cache/nce/78b1c16a9fd032997ba92a60f46a64f795cd18ff335659dfdf6096df277b24d5/cpython-3.11.9+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz/python/lib/python3.11/lib-dynload:/home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/lib/python3.11/site-packages /home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin/python3.11 /home/coder/.cache/nce/6d61748cea187199dc28418157b2121ccbbb44e4af2ee6fddf8c04bbed73f76d/bindings/venvs/2.25.1/bin/pants run //helpers/utils:utils -ldebug
10:22:39.12 [INFO] waiting for pantsd to start...
10:22:41.83 [INFO] pantsd started
10:22:41.83 [DEBUG] pantsd is running at pid 36641, pailgun port is 40717
10:22:41.83 [DEBUG] releasing lock: <pants.pantsd.lock.OwnerPrintingInterProcessFileLock object at 0x7f2e945e5b10>
10:22:41.83 [DEBUG] Connecting to pantsd on port 40717
10:22:41.83 [DEBUG] Connecting to pantsd on port 40717 attempt 1/3
10:22:41.84 [DEBUG] Connected to pantsdstale-waitress-56895
04/28/2025, 10:23 AMstale-waitress-56895
04/28/2025, 10:24 AM10:22:49.31 [DEBUG] /home/coder/.cache/pants/lmdb_store/immutable/files -> /tmp hardlinkable: falsestale-waitress-56895
04/28/2025, 10:40 AMUsage: utils.pex [OPTIONS] COMMAND [ARGS]...
Utility commands for working with Pants build system.
Options:
--help Show this message and exit.
Commands:
env Generate PYTHONPATH environment variables from Pants roots.
list List targets in the repository.
roots Show the pants build roots.
10:38:18.08 [DEBUG] Completed: interactive_process
10:38:18.08 [DEBUG] Completed: `run` goal
10:38:18.08 [DEBUG] computed 1 nodes in 1.757824 seconds. there are 6857 total nodes.
real 0m7.784s
user 0m4.754s
sys 0m0.710s
and things look a little snappier. Now I think this is the time for pex running. The actual build is sub 2s
10:38:18.08 [DEBUG] computed 1 nodes in 1.757824 seconds. there are 6857 total nodes.
Thank you ! Although I would still appreciate some help on why pantsd is restarting frequentlyhappy-kitchen-89482
04/28/2025, 12:30 PMtime won’t make pantsd restart but -ldebug will (since it affects the daemon’s own log levels)happy-kitchen-89482
04/28/2025, 12:30 PMhappy-kitchen-89482
04/28/2025, 12:31 PMstale-waitress-56895
04/28/2025, 12:40 PMhappy-kitchen-89482
04/28/2025, 1:47 PM.pants.d/workdir/pants.log?stale-waitress-56895
04/28/2025, 2:26 PMSignal 15 (SIGTERM) was raised. Exiting with failure.
[WARN] Executor was not shut down explicitly.
[ERROR] panic at 'Cannot drop a runtime in a context where blocking is not allowed...
[ERROR] panic at 'A Tokio 1.x context was found, but it is being shutdown.'
These errors appear to be distributed fairly evenly throughout the log timespan, averaging roughly once every 30-40 minutes of operation.
2. File watcher shutdowns
I count approximately 45 file watcher shutdown warnings in the logs. These appear as:
[WARN] File watcher exiting with: The watcher was shut down.
These often occur in clusters (2-3 warnings together) and are particularly frequent after service failures or when the pantsd daemon is restarting. They seem to happen roughly every 10-15 minutes on average but become more concentrated during periods of high activity or after configuration changes.
3. Service failures
There are about 10 distinct scheduler service failures in the logs, appearing as:
[ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x...>
These seem to occur less frequently than the file watcher issues but often precede them. They're distributed throughout the log timeline, appearing approximately once per hour of operation.broad-processor-92400
04/29/2025, 2:34 AM