--- name: llamacpp-serve-unit-boot-loop description: "Diagnose a Dank-fleet LLM systemd unit that boot-loops: classify 203/EXEC vs model-load OOM vs payload gate, using journal signatures and nvidia-smi/rocm-smi." --- # llama.cpp / fleet serve unit boot loop A fleet LLM unit (`frank-large`, `frank-secondary`, `frank-primary`) restarts every `RestartSec`. Read the journal FIRST, act second: ``` ssh 'sudo systemctl status --no-pager | head -12; sudo journalctl -u --since "-6 min" -o cat --no-pager | tail -40' ``` ## Classify by signature | Signature | Cause | Fix | |---|---|---| | `status=203/EXEC` + `Failed at step EXEC spawning` + `Mem peak: ~1.9M` + GPU flat at 1 MiB | the `ExecStart` script never ran: missing shebang, lost exec bit, or path moved by the deploy (git pull mid-restart) | `head -1