Environment:
OS: Windows
Copilot Plugin Version: v2.9.4
Problem Description:
I am consistently getting the "Failed to initialize Copilot database. Some features may be limited" error when trying to use a local Ollama model for embeddings. This happens every time I try to rebuild the index.
Backend Configuration:
I am using Ollama with the nomic-embed-text model. The service is running correctly.
Diagnostics Performed:
We have performed extensive troubleshooting and can confirm that the backend is 100% functional and reachable.
Direct curl test to Ollama service:
Command: curl http://127.0.0.1:11434/api/embeddings -X POST -d "{"model": "nomic-embed-text", "prompt": "Test"}"
Result: SUCCESS. Received a valid embedding vector.
Test via a PHP proxy on XAMPP: To rule out direct connection issues from the app, we set up a PHP proxy script (ollama_proxy.php) on a local XAMPP server. The plugin's Base URL was pointed to http://127.0.0.1:8080/ollama_proxy.php.
Command to test the proxy: curl http://127.0.0.1:8080/ollama_proxy.php -X POST -H "Content-Type: application/json" -d "{"model": "nomic-embed-text", "prompt": "Test proxy"}"
Result: SUCCESS. The proxy script correctly forwarded the request to Ollama and returned a valid embedding vector.
Conclusion:
The local server infrastructure is working perfectly and responds correctly to standard HTTP requests. However, the Copilot plugin itself fails to initialize its database when pointed to either the direct Ollama URL or the proxy URL, suggesting the issue lies within how the plugin initiates its network requests or handles the response on this specific system configuration.
Other steps taken without success:
Running as administrator.
Creating inbound and outbound firewall rules for Obsidian.exe.
Verifying that no third-party antivirus is running.
Disabling all system proxy settings.
Adding Obsidian.exe to Controlled Folder Access allow list.
Using localhost vs 127.0.0.1.
Clean reinstallation of the plugin.
Environment:
OS: Windows
Copilot Plugin Version: v2.9.4
Problem Description:
I am consistently getting the "Failed to initialize Copilot database. Some features may be limited" error when trying to use a local Ollama model for embeddings. This happens every time I try to rebuild the index.
Backend Configuration:
I am using Ollama with the nomic-embed-text model. The service is running correctly.
Diagnostics Performed:
We have performed extensive troubleshooting and can confirm that the backend is 100% functional and reachable.
Direct curl test to Ollama service:
Command: curl http://127.0.0.1:11434/api/embeddings -X POST -d "{"model": "nomic-embed-text", "prompt": "Test"}"
Result: SUCCESS. Received a valid embedding vector.
Test via a PHP proxy on XAMPP: To rule out direct connection issues from the app, we set up a PHP proxy script (ollama_proxy.php) on a local XAMPP server. The plugin's Base URL was pointed to http://127.0.0.1:8080/ollama_proxy.php.
Command to test the proxy: curl http://127.0.0.1:8080/ollama_proxy.php -X POST -H "Content-Type: application/json" -d "{"model": "nomic-embed-text", "prompt": "Test proxy"}"
Result: SUCCESS. The proxy script correctly forwarded the request to Ollama and returned a valid embedding vector.
Conclusion:
The local server infrastructure is working perfectly and responds correctly to standard HTTP requests. However, the Copilot plugin itself fails to initialize its database when pointed to either the direct Ollama URL or the proxy URL, suggesting the issue lies within how the plugin initiates its network requests or handles the response on this specific system configuration.
Other steps taken without success:
Running as administrator.
Creating inbound and outbound firewall rules for Obsidian.exe.
Verifying that no third-party antivirus is running.
Disabling all system proxy settings.
Adding Obsidian.exe to Controlled Folder Access allow list.
Using localhost vs 127.0.0.1.
Clean reinstallation of the plugin.