[nu-demo] service_embedder.nu missing ORT_LIB_LOCATION/LD_LIBRARY_PATH/EMBEDDER_MODELS env vars — embedderd panics with 'No embedder models found' after fresh install #166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
On a fresh herodemo VM installed from
hero_skills service_install_all, starting thehero_embedderservice results in hero_embedderd panicking repeatedly:The action registered by
service_install_allhas minimal env:Missing:
ORT_LIB_LOCATION,LD_LIBRARY_PATH,EMBEDDER_MODELS.Root cause
hero_skills/tools/modules/services/service_embedder.nudoesn't set any ONNX or models env vars in the action definition. The binary is shipped, but it can't find its shared library (ONNX Runtime) or models directory.Additionally, ONNX Runtime itself is NOT installed by
hero_skills install-all— it's a separate manual step. On heronu we did this by downloading the v1.23.2 release tarball into/usr/local/onnxruntime/.Fix
Two changes to
service_embedder.nu:Install ONNX Runtime as part of
service_embedder install. Download the v1.23.2 tarball (or a pinned version) into/usr/local/onnxruntime/or/data/opt/onnxruntime/and verify the shared lib is loadable.Bake the env vars into the hero_embedderd + hero_embedder_server action specs:
And for hero_embedder_server, additionally:
Demo workaround (applied on herodemo 2026-04-24)
/usr/local/onnxruntime/.hero_embedderdandhero_embedder_serveractions via a customhero_proc action.setcall (python scriptpatch_embedderd_action.py).See sibling issue for the race condition:
hero_embedder_server starts before hero_embedderd is ready — no dependency-wait.Related
Signed-off-by: mik-tf
Partially closed by hero_skills #125 (commit
1379cc0)The apt-side gap is now codified in
install_base: libssl-dev, pkg-config, wget, jq, sqlite3, libsqlite3-dev, python3, python3-pip, python3-venv, python3-openpyxl.Note: this issue mentions multiple specific gaps. Some are now resolved upstream; others (e.g.
uvinstall, ONNX runtime, Chrome) are tracked in the same Phase 2 effort and will land in a follow-up PR — see home#185 for the master tracker.Signed-off-by: mik-tf
Resolved by
lhumina_code/hero_skills@7c823d1(PR lhumina_code/hero_skills#126).Part of Phase 2 tracker #185.