Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

rag initialization failure

Open
#4,364 1 comment 0 reactions 1 assignee View on GitHub

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
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, go
Domain
backend, databases

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

area/rag
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

Open in Codespaces

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/docker-agent

All issues in docker/docker-agent

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.