ruvnet/ruflo · error
Ollama server not detected. Ensure Ollama is running locally
Error message
Ollama server not detected. Ensure Ollama is running locally.
What it means
Warning in OllamaProvider.doInitialize(): the health check against the local Ollama server (default http://localhost:11434) failed, so no Ollama daemon was detected. The provider initializes anyway but subsequent generation calls will fail until Ollama is started.
Source
Thrown at v3/@claude-flow/providers/src/ollama-provider.ts:134
'codellama': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },
'phi-4': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },
'deepseek-coder': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },
},
};
private baseUrl: string = 'http://localhost:11434';
constructor(options: BaseProviderOptions) {
super(options);
}
protected async doInitialize(): Promise<void> {
this.baseUrl = this.config.apiUrl || 'http://localhost:11434';
// Check if Ollama is running
const health = await this.doHealthCheck();
if (!health.healthy) {
this.logger.warn('Ollama server not detected. Ensure Ollama is running locally.');
}
}
protected async doComplete(request: LLMRequest): Promise<LLMResponse> {
const ollamaRequest = this.buildRequest(request);
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), this.config.timeout || 120000);
try {
const response = await fetch(`${this.baseUrl}/api/chat`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(ollamaRequest),
signal: controller.signal,
});
clearTimeout(timeout);View on GitHub (pinned to fa13ee4ad6)
Solutions
- Start the Ollama server locally (ollama serve) and ensure its port is reachable.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at v3/@claude-flow/providers/src/ollama-provider.ts:134 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/7f53f1cd77ce2534.
Report an issue: GitHub.