rag initialization failure
Maintainers usually reply within 1 day
@dgageot is already working on this.
Since Sep 23, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start from RAG initialization for the chunked-embeddings strategy and the configured ./knowledge-embeddings.db path. Reproduce the first search with the provided configuration in Docker Agent v1.141.0, then compare it with a restarted agent; done means the initial launch and search succeed without the readonly-database error.
Written by the indexing model from the issue text.
Description
Description
If I define a "rag" section in the configuration file, the first time at launch that I do a search, I would get this error message.
Some toolsets failed to initialize for agent 'cookbook'.
Details:
- toolset rag failed: failed to create RAG manager: failed to build strategy configs for RAG "rag_knowledge": failed to build strategy "chunked-embeddings" for RAG "rag_knowledge": failed to create database: failed to create schema: attempt to write a readonly database (1032)
If I quit the Docker agent and restart it, it works.
I use Docker Agent v1.141.0
Expected Behavior
No response
Actual Behavior
No response
Steps to Reproduce
the rag section:
rag:
rag_knowledge:
tool:
description: >
Search the Go and htmx cookbook.
Every topic comes with its common mistakes and how to avoid them.
docs:
- ./knowledge
strategies:
- type: chunked-embeddings
embedding_model: embedder
database: ./knowledge-embeddings.db
vector_dimensions: 768
similarity_metric: cosine_similarity
threshold: 0.3
limit: 6
chunking:
size: 1200
overlap: 100
respect_word_boundaries: true
models:
embedder:
provider: dmr
model: huggingface.co/unsloth/embeddinggemma-300m-gguf:Q8_0
base_url: http://host.docker.internal:12434/engines/v1
max_tokens: 2048
Docker Agent version
1.141.0
OS & terminal
Linux inside SBX
Model used
Local model
Error output
Some toolsets failed to initialize for agent 'cookbook'.
Details:
- toolset rag failed: failed to create RAG manager: failed to build strategy configs for RAG "rag_knowledge": failed to build strategy "chunked-embeddings" for RAG "rag_knowledge": failed to create database: failed to create schema: attempt to write a readonly database (1032)
Screenshots
No response
Additional context
No response
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 466
- Avg merge
- 6h 50m
- Merged PRs (30d)
- 328
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-agent
-
area/docs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
docker/docker-agent#4054 ·
Maintainers usually reply within 1 day
-
area/testing
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
docker/docker-agent#4052 ·
Maintainers usually reply within 1 day
-
area/tools
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
docker/docker-agent#3933 ·
Maintainers usually reply within 1 day
-
area/tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docker/docker-agent#3929 · 2 comments ·
Maintainers usually reply within 1 day
-
[Flaky test] TestActualProgramStalledDeliveryKeepsFinalResponsePossibly taken @dgageot claimed this 1 day ago. Openarea/testing area/tui automated flaky-test status/needs-triage
docker/docker-agent#4497 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in docker/docker-agent
Similar issues
-
agent-butler-finding bug
Difficulty 1/5 Under an hour Newbie friendliness 94/100
jordansmall/spindrift#4367 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pulumi/pulumi-terraform#1215 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
githubnext/gh-aw-workshop#4132 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliusBrussee/caveman#1177 · 1 comment ·
Maintainers usually reply within 1 day