Hmm here is another one.. not sure what to make of...
# general
p
Hmm here is another one.. not sure what to make of it
Copy code
root@fc8fa89:/test# /root/bin/pants bootstrap-tools --print-stacktrace
20:42:34.46 [INFO] waiting for pantsd to start...
20:42:39.47 [INFO] waiting for pantsd to start...
20:42:44.49 [INFO] waiting for pantsd to start...
20:42:49.51 [INFO] waiting for pantsd to start...
20:42:54.53 [INFO] waiting for pantsd to start...
20:42:58.75 [INFO] pantsd started
20:42:59.04 [INFO] Initializing scheduler...
20:42:59.11 [ERROR] Could not initialize store for cache: "Error making env for store at \"/root/.cache/pants/lmdb_store/cache/3\": Cannot allocate memory"
Traceback (most recent call last):
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/bin/daemon_pants_runner.py", line 130, in single_daemonized_run
    scheduler, options_initializer = self._core.prepare(options_bootstrapper, complete_env)
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/pantsd/pants_daemon_core.py", line 176, in prepare
    self._initialize(
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/pantsd/pants_daemon_core.py", line 119, in _initialize
    raise e
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/pantsd/pants_daemon_core.py", line 109, in _initialize
    self._scheduler = EngineInitializer.setup_graph(
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 199, in setup_graph
    return EngineInitializer.setup_graph_extended(
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 342, in setup_graph_extended
    scheduler = Scheduler(
  File "/root/.cache/nce/0de72f83a1a3c7d9abfa1aec200d81e160d3aea11423c652ee05b24a44adb298/bindings/venvs/2.16.0/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 218, in __init__
    self._py_scheduler = native_engine.scheduler_create(
ValueError: Could not initialize store for cache: "Error making env for store at \"/root/.cache/pants/lmdb_store/cache/3\": Cannot allocate memory"

Use -ldebug for more logs. 
See <https://www.pantsbuild.org/v2.16/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.16/docs/getting-help>
This is in a container on a raspberry pi. Maybe some stuff is having issues in docker? 🤔
e
Pants requires 2GB by default:
Copy code
\"/root/.cache/pants/lmdb_store/cache/3\": Cannot allocate memory"
Maybe search the docs for 2GB, memory, etc and circle back here if you can't find the settings.
p
I have 4.1 available? 🤔 Maybe this option? https://www.pantsbuild.org/docs/reference-global#section-pantsd-max-memory-usage Says says 4 gibibytes.. so like ~4.29GB cool thanks 😃