summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Svjatoslav Agejenko [Sun, 30 Aug 2026 00:53:57 +0000 (03:53 +0300)]
fix(install): survive pip-less uv-created Hermes venvs; stop hiding errors
Found installing on a fresh Debian 13 machine (Hermes installed via its
own uv-based install.sh):
- Root cause: 'uv venv' does not seed pip into the Hermes runtime venv,
so '$PYTHON -m pip install' died with 'No module named pip' and the
installer's suggested manual pip command would have failed the same
way. Dependency installation now chains: pip -> ensurepip-bootstrapped
pip -> 'uv pip install --python' (uv probed on PATH and at
$HERMES_HOME/bin/uv, covering non-login SSH shells with minimal PATH).
- No more silent failures: every fallible step (deps, model preload,
hermes config set, plugin validation) captured stderr behind
2>/dev/null, making the remote failure undebuggable. All of them now
capture combined output into DIAG_DIR (cleaned via EXIT trap) and
print a show_log_tail excerpt on failure; failure guidance names
commands that actually work on a pip-less host (uv, ensurepip).
- Docs: Documentation/index.org step 2 describes the install chain;
AGENTS.org gains the uv-venv-has-no-pip and no-silent-2>/dev/null
pitfalls and the tooling note describes the new chain.
Verified with a stubbed-environment ad-hoc harness (20/20): pip-less
uv venv + broken ensurepip + uv present (exact remote repro) installs
via uv; pip-present venv uses pip; total failure prints captured
diagnostics and working manual commands. Canonical suite green.
Svjatoslav Agejenko [Sat, 18 Jul 2026 12:27:17 +0000 (15:27 +0300)]
fix(install): work on bare servers without PATH hermes or python3-venv
Found during first install on a fresh Debian 13 server:
- Installer now probes ~/.local/bin/hermes, ~/bin, /usr/local/bin and
/usr/bin for the hermes CLI instead of relying on PATH alone.
Non-login SSH shells never read ~/.profile, so "hermes CLI not found"
fired and memory.provider was left unset.
- New shared Tools/lib/common.sh picks a working Python for all Tools
scripts: project .venv (only if sqlite-vec + model2vec actually
import — a failed python3 -m venv on hosts without the python3-venv
apt package leaves a half-created venv that passes -x checks), then
uv (bundled with Hermes at ~/.hermes/bin/uv), then the Hermes runtime
venv. Broken half-venvs are recreated instead of trusted.
- Docs: prerequisites updated (no PATH / python3-venv needed), importer
fallback and idempotency documented, systemd restart hint including
the "Gateway already running (PID ...)" stale-lock case.
- AGENTS.org: Tools/lib layout entry and three new pitfalls.
Svjatoslav Agejenko [Sat, 18 Jul 2026 11:12:38 +0000 (14:12 +0300)]
initial commit