about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ravanan-slurm.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/ravanan-slurm.md b/docs/ravanan-slurm.md
index 353e06b..69e1bc1 100644
--- a/docs/ravanan-slurm.md
+++ b/docs/ravanan-slurm.md
@@ -105,6 +105,39 @@ trusted:
   deployment's data directories are, but a pheno file written into a *different*
   mount gives `Invalid cross-device link`.
 
+## Requirements found by running it (2026-11-12)
+
+Verified against `gn-machines/specials/slurm-container.scm` started through
+`run-guix-system-container` (daemon on `127.0.0.1:8989`, fingerprint
+`74c85932`): `POST /compute/gemma/ravanan` with `group: BXD` produced 40
+Slurm jobs -- 20 `kinship` + 20 `gwa`, one pair per chromosome -- all
+completed, 21 055 rows back, in about 3.5 minutes.
+
+Four things had to be right, and three of them were not obvious:
+
+- **`ccwl` and `ravanan` on the server's `PATH`.** Without `ccwl` the
+  endpoint answers `502 failed to run ccwl: No such file or directory`
+  before doing anything.
+- **A `ravanan` with the `--slurm-api-endpoint` fix.** The 0.2.0 build in
+  the store predates `ravanan: Parse --slurm-api-endpoint into a URI`
+  and dies with `struct-vtable: Wrong type argument: "http://127.0.0.1:6820"`
+  (it uses the string where a `uri` record is expected); a non-default
+  endpoint therefore needs that build. Using the built-in default
+  (`http://localhost:6820`, i.e. omitting the switch) is the workaround on
+  an older ravanan.
+- **The server's `HOME` must be writable by the job user inside the
+  cluster.** ravanan forwards the submitting process's `HOME` into every
+  job (as `sbatch` would), and `gemma-wrapper` locks
+  `$HOME/.<hash>.lck`; inside the container there is no `/home/wrk`, so
+  every kinship job failed with `can not release ... .lck because it is not
+  owned by me` / `EACCES`. Starting the API with
+  `HOME=<a directory on the shared mount>` fixed it. This is a
+  *server-side* setting, not a node one.
+- **`GUIX_PACKAGE_PATH`**, as above: ravanan resolves the manifest against
+  the ambient Guix, so without it the manifest cannot see
+  `(gn packages gemma)` and the failure surfaces as an unrelated channel
+  error (`rust-pyo3-…: unbound variable`).
+
 ## Slurm-side requirements
 
 The endpoint only speaks HTTP to slurmrestd, so the cluster has to be