Hi, I'm getting the following error. I am not sure...
# general
i
Hi, I'm getting the following error. I am not sure it is due to memory overconsumption. From
top
I see that there is ~8000/15728 free memory available. Could someone help me trouble shoot this? I have tried closing all apps and rebooting
Copy code
native_engine.PantsdClientException: The pantsd process was killed during the run.

If this was not intentionally done by you, Pants may have been killed by the operating system due to memory overconsumption (i.e. OOM-killed). If you keep seeing this error message, try the troubleshooting steps below. If none of those help, please consider filing a GitHub issue or reaching out on Slack so that we can investigate the possible memory overconsumption (<https://www.pantsbuild.org/docs/getting-help>).
 - Exit other applications, including applications running in the background.
 - Set the global option `--pantsd-max-memory-usage` to reduce Pantsd's memory consumption by retaining less in its in-memory cache (run `./pants help-advanced global`).
 - Disable pantsd with the global option `--no-pantsd` to avoid persisting memory across Pants runs, although you will miss out on additional caching.
e
Did you try the last bit of advice there? It may surface the real issue to the console. Otherwise you may need to poke around in the .pants.d/ logs.
i
Apologies, I'm not sure how to execute the last bit of advice. How do I use`--no-pantsd` to disable pantsd? Is there a command I need to put in front of this? I tried
./pants --no-pantsd
and got
No goals specified.
What am I doing wrong?
e
Whatever the command was that triggered your original post, add it there. If it was, say,
pants test ::
then you want
pants --no-pantsd test ::
i
The command was
arc diff
which doesn't seem to recognize
--no-pantsd
e
Ok, clearly there are layers of scripting beneath that that eventually calls pants. @high-yak-85899?
h
Yes, there is some automated command writing to extract out the tests needed to run.
I think the easier way to turn off the pants daemon is to make a
.pants.rc
file in the repository root and turn it off there.
e
PANTS_PANTSD=False arc diff
may do it as well.
i
PANTS_PANTSD=False arc diff
worked, thank you
e
Worked how? You're killing me! :) What did you discover?
i
It successfully disabled pantsd and I didn't get the error when doing
arc diff
🙂
e
Erm, ok. So the mystery remains. I'm glad you're unblocked though.
i
Yeah should've clarified. Sorry for the unsatisfactory response but glad there's a temporary solution!
Removing the LMDB store resolved the first issue with pantsd getting killed during the run. It seems that it got corrupted at some point and still remains a bit of a mystery https://github.com/pantsbuild/pants/issues/18726