Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Failed to initialize copilot database. some features may be limited obsidian #1368

Scofarry started this conversation in General
Discussion options

Hello, everyone!

I am having a problem with Copilot, where it cannot index notes for consultation. The AI chat plugin works well, but the note reading function gives me the error "error indexing file" and when I try to refresh the vault index, I receive the following error: "failed to initialize copilot database. Some features may be limited Obsidian."

You must be logged in to vote

Replies: 3 comments 4 replies

Comment options

What device is this? Can you check the dev console for error messages.

You must be logged in to vote
0 replies
Comment options

Hello, the device is running Windows 11, Obsidian version: 1.8.9. I am attaching the log file (TXT) for analysis.

I was able to use a local AI through LLM Studio, where it only created the index after adding a Gemini API. Once the index was created, I was able to use the local AI. However, as soon as I removed the Gemini API, the error reappeared when trying to index with the local AI.

obsidian.md-1742437198273.log

You must be logged in to vote
0 replies
Comment options

same error... Windows 11, Obsidian 1.9.14, CoPilot 3.03

plugin:copilot:335 Database not initialized. Some features may be limited.
plugin:copilot:1732 Failed to fetch relevant notes: Error: Database is not loaded. Please restart the plugin.
at t.getDb (plugin:copilot:543:4796)
at async o (plugin:copilot:1732:8838)
plugin:copilot:335 Database not initialized. Some features may be limited.
plugin:copilot:1732 Failed to fetch relevant notes: Error: Database is not loaded. Please restart the plugin.
at t.getDb (plugin:copilot:543:4796)
at async o (plugin:copilot:1732:8838)

You must be logged in to vote
4 replies
Comment options

Same error. MacBook Pro M1 Max, Obsidian 1.10, Copilot 3.1.0

Database not initialized. Some features may be limited.
getDb @ plugin:copilot:336
plugin:copilot:1800 Failed to fetch relevant notes: Error: Database is not loaded. Please restart the plugin.
at t.getDb (plugin:copilot:544:4796)
at async o (plugin:copilot:1800:5441)
o @ plugin:copilot:1800

Comment options

ichts Oct 16, 2025
Collaborator

Hi, can you try:

  1. force reindexing the vault
  2. if the issue persists, delete your index file in /{your vault}/.obsidian/copilot-index-xxx.json
Comment options

Deleting the index file fixed the issue, thank you!

Comment options

When I try 1: force reindexing I get: "Lexical Search Builds Index on Demand" and it doesn't reindex
When I delete the /copilot-index-chunks...

Database not initialized. Some features may be limited.
plugin:copilot:1800 Failed to fetch relevant notes: Error: Database is not loaded. Please restart the plugin.
 at t.getDb (plugin:copilot:544:4796)
 at runNextTicks (node:internal/process/task_queues:60:5)
 at process.processImmediate (node:internal/timers:449:9)
 at async o (plugin:copilot:1800:5441)
plugin:copilot:544 Error indexing file freeverse/Today.md: Error: Semantic index database not found.
 at t.removeDocs (plugin:copilot:336:138037)
 at Uge.reindexFile (plugin:copilot:544:1594)
 at async t.reindexFile (plugin:copilot:544:492

And it is not recreating the copilot-index files...

I have close to 7000 notes, perhaps this is a boundary issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /