Repository navigation
fix(docker): skip the ONNX download for non-onnx backends and fail clearly on unwritable /data (#1398) - #1400
Merged
Conversation
…early on unwritable /data (#1398) The entrypoint now resolves the embedding backend (UTEKE_EMBEDDING_BACKEND, then [embedding] backend in $UTEKE_HOME/uteke.toml, then onnx) and only downloads the local model for onnx. If a download is needed but the data dir is not writable it exits with an actionable message. Data dir follows UTEKE_HOME (default /data). Covered by integration tests that run the script with a fake curl and a fake uteke-serve. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Oct 9, 2026
* fix(docker): skip the ONNX download for non-onnx backends and fail clearly on unwritable /data (#1398) (#1400) The entrypoint now resolves the embedding backend (UTEKE_EMBEDDING_BACKEND, then [embedding] backend in $UTEKE_HOME/uteke.toml, then onnx) and only downloads the local model for onnx. If a download is needed but the data dir is not writable it exits with an actionable message. Data dir follows UTEKE_HOME (default /data). Covered by integration tests that run the script with a fake curl and a fake uteke-serve. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> * fix(server): honour [embedding]/[vector] config and UTEKE_EMBEDDING_BACKEND (#1399) (#1401) uteke-serve opened the store with Uteke::open(), which hardcodes the onnx backend, so an external OpenAI-compatible or Ollama embedder could never be used. The server now resolves the embedder (env backend > [embedding] backend > onnx) and the [vector] engine and opens the store with open_with_embedding_and_graph, as the CLI does. An unsupported backend exits with an actionable error. The project-local file stays untrusted for embedding.* keys via the shared layered resolver. Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]> * chore(release): v0.20.1 - version bump, changelog, docs sync Patch release with the two embedder fixes (#1398, #1399) cherry-picked from develop; version files, skill version lines, core-contract.json and the CHANGELOG entry updated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: ajianaz <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docker-entrypoint.shnow resolves the embedding backend before deciding to download the model:UTEKE_EMBEDDING_BACKEND, then[embedding] backendin$UTEKE_HOME/uteke.toml, thenonnx. Onlyonnxdownloads the local model. When a download is needed but the data dir is not writable, it exits with a message that names the three fixes (chown the volume, pre-populate the model, use an external embedder) instead of dying on a baremkdirerror. The data dir followsUTEKE_HOME(image default stays/data).Why
Closes #1398. A labs instance configured with
UTEKE_EMBEDDING_BACKEND=openailooped on "Model not found, downloading..." andmkdir: cannot create directory '/data/models': Permission denied, souteke-servenever started. Note: this fixes the container start; making the server actually USE the external embedder is #1399 (separate PR).Testing
-D warningsgreen; 7 new integration tests (crates/uteke-server/tests/docker_entrypoint.rs) run the real script with a fakecurland a fakeuteke-serve: external backend from env or toml skips the download and reachesexec; env beats toml; only the[embedding]section counts; onnx with the model present does not download; an unwritable data dir gives the clear error for onnx but is fine for an external backenddocker build/docker run(no Docker run in this session), and the unwritable-dir test is skipped when the tests run as root🤖 Generated with Claude Code