hundreds-father-404
05/13/2021, 2:08 AMNailgunClientException: Nailgun client error: "Nailgun client error: Client exited before the server\'s result could be returned."We're trying really hard to track it down, and it's been difficult to reproduce.
faint-businessperson-86903
05/13/2021, 3:14 AM--no-pantsd
he got this error instead Abort trap: 6
It's been a few weeks though, so I don't remember the whole story.faint-businessperson-86903
05/13/2021, 3:15 AMrm -rf ~/.cache/pants
hundreds-father-404
05/13/2021, 3:25 AMfaint-businessperson-86903
05/13/2021, 6:59 AMproud-dentist-22844
05/14/2021, 12:21 AMproud-dentist-22844
05/14/2021, 12:22 AM~/p/st2sandbox/st2.git ī° ī pants ā ī° ./pants lint :: 1
19:20:15.50 [INFO] Initialization options changed: reinitializing scheduler...
19:20:15.76 [INFO] Scheduler initialized.
ā 11.46s Building black.pex with 2 requirements: black==20.8b1, setuptools
ā 15.78s Lint using Pylint
ā 11.45s Run Flake8 on 1118 files.
ā
ā
ā
ā
ā
Nailgun client error: "Nailgun client error: Client exited before the server\'s result could be returned."
Traceback (most recent call last):
File "/home/cognifloyd/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0rc2_py37/lib/python3.7/site-packages/pants/bin/pants_loader.py", line 100, in run_default_entrypoint
exit_code = runner.run(start_time)
File "/home/cognifloyd/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0rc2_py37/lib/python3.7/site-packages/pants/bin/pants_runner.py", line 86, in run
return remote_runner.run()
File "/home/cognifloyd/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0rc2_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 100, in run
return self._connect_and_execute(pantsd_handle)
File "/home/cognifloyd/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0rc2_py37/lib/python3.7/site-packages/pants/bin/remote_pants_runner.py", line 133, in _connect_and_execute
command, args, modified_env
native_engine.NailgunClientException: Nailgun client error: "Nailgun client error: Client exited before the server\'s result could be returned."
hundreds-father-404
05/14/2021, 12:22 AM.pants.d/pants.log
? (it's gonna be super long)enough-analyst-54434
05/14/2021, 3:15 AMfaint-businessperson-86903
05/14/2021, 3:17 AMenough-analyst-54434
05/14/2021, 3:46 AMhundreds-father-404
05/14/2021, 3:56 AMenough-analyst-54434
05/14/2021, 5:00 AMpkill pantsd && ./pants --remote-cache-write test ::
Instrumentation:
match maybe_bytes {
- Some(bytes) => remote.store_bytes(&bytes).await,
+ Some(bytes) => {
+ let total = bb.fetch_add(bytes.len(), std::sync::atomic::Ordering::SeqCst);
+ eprintln!(">>> Buffering {} total bytes presently while attempting to upload {} additional bytes to remote store...", total, bytes.len());
+ let stored = remote.store_bytes(&bytes).await;
+ bb.fetch_sub(bytes.len(), std::sync::atomic::Ordering::SeqCst);
+ stored
+ }
None => Err(format!(
"Failed to upload digest {:?}: Not found in local store",
Typical log:
>>> Buffering 2357 total bytes presently while attempting to upload 64 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 2730 additional bytes to remote store...
>>> Buffering 2730 total bytes presently while attempting to upload 142 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 84 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 0 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 146 total bytes presently while attempting to upload 965 additional bytes to remote store...
>>> Buffering 1111 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 1191 total bytes presently while attempting to upload 1471 additional bytes to remote store...
>>> Buffering 2662 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 2742 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 3575 total bytes presently while attempting to upload 1419 additional bytes to remote store...
>>> Buffering 4994 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 6377 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 43441857 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
ry (above the limit of 1073741824 bytes).')
21:23:21.33 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f2da2136a90>.
21:23:21.34 [INFO] Waiting for ongoing runs to complete before exiting...
012623 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 224013456 total bytes presently while attempting to upload 998 additional bytes to remote store...
>>> Buffering 224014454 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 224014534 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 224014680 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 224014760 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 267446720 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
>>> Buffering 448022480 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 448022480 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 448022626 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 448024009 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 448024089 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 448024922 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 448025002 total bytes presently while attempting to upload 994 additional bytes to remote store...
>>> Buffering 448025996 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 491461330 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
>>> Buffering 672033720 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 672033720 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 672034553 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 672034699 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672034779 total bytes presently while attempting to upload 968 additional bytes to remote store...
>>> Buffering 672035747 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 672037130 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 672037210 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672037130 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672037290 total bytes presently while attempting to upload 967 additional bytes to remote store...
>>> Buffering 672038257 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 672039090 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672039170 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 672040553 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 672040699 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 672040699 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 672040845 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 672041678 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672041758 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 672043141 total bytes presently while attempting to upload 973 additional bytes to remote store...
>>> Buffering 672044114 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 672044194 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 715476331 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 758911811 total bytes presently while attempting to upload 42886047 additional bytes to remote store...
>>> Buffering 801797858 total bytes presently while attempting to upload 0 additional bytes to remote store...
>>> Buffering 801797858 total bytes presently while attempting to upload 994 additional bytes to remote store...
>>> Buffering 801798852 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 801798932 total bytes presently while attempting to upload 80 additional bytes to remote store...
>>> Buffering 801799012 total bytes presently while attempting to upload 146 additional bytes to remote store...
>>> Buffering 801799158 total bytes presently while attempting to upload 833 additional bytes to remote store...
>>> Buffering 801799991 total bytes presently while attempting to upload 1383 additional bytes to remote store...
>>> Buffering 801801374 total bytes presently while attempting to upload 43435480 additional bytes to remote store...
>>> Buffering 845236854 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
>>> Buffering 1025810178 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
>>> Buffering 1206383416 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
>>> Buffering 1386959176 total bytes presently while attempting to upload 180575760 additional bytes to remote store...
enough-analyst-54434
05/14/2021, 5:01 AMenough-analyst-54434
05/14/2021, 5:01 AMproud-dentist-22844
05/14/2021, 5:21 AMrapid-bird-79300
05/14/2021, 10:35 PMhundreds-father-404
05/14/2021, 10:52 PMhundreds-father-404
05/27/2021, 6:51 PMkill -9 <pid>
, but often it seems it's from Linux's OOM killer.
We rewrote the error message to make this much clearer: https://github.com/pantsbuild/pants/pull/12107
With remote caching, Pants was pathologically using too much memory with cache writes, so this error happened very frequently, which is now fixed.
When not using remote caching, we suspect it could be from --pantsd-max-memory-usage
being set too high (default 1GiB). You can set that to lower, but with the downside of less in-memory caching. Or, you can disable --pantsd
entirely - which is sensible in CI but we don't recommend for desktop builds.
We're looking into making the default for --pantsd-max-memory-usage
be dynamic, and we're also profiling Pants for more memory optimizations.enough-analyst-54434
05/27/2021, 7:24 PMAbort trap: 6
with --no-pantsd
reported by @faint-businessperson-86903 is an instance of that. Another instance of this sort of thing is documented in https://github.com/pantsbuild/pants/issues/11926.hundreds-father-404
06/04/2021, 6:33 PM