{"record":{"id":"7f53f1cd77ce2534","repo":"ruvnet/ruflo","slug":"ollama-server-not-detected-ensure-ollama-is-runni","errorCode":null,"errorMessage":"Ollama server not detected. Ensure Ollama is running locally.","messagePattern":"Ollama server not detected\\. Ensure Ollama is running locally\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/providers/src/ollama-provider.ts","lineNumber":134,"sourceCode":"      'codellama': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },\n      'phi-4': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },\n      'deepseek-coder': { promptCostPer1k: 0, completionCostPer1k: 0, currency: 'USD' },\n    },\n  };\n\n  private baseUrl: string = 'http://localhost:11434';\n\n  constructor(options: BaseProviderOptions) {\n    super(options);\n  }\n\n  protected async doInitialize(): Promise<void> {\n    this.baseUrl = this.config.apiUrl || 'http://localhost:11434';\n\n    // Check if Ollama is running\n    const health = await this.doHealthCheck();\n    if (!health.healthy) {\n      this.logger.warn('Ollama server not detected. Ensure Ollama is running locally.');\n    }\n  }\n\n  protected async doComplete(request: LLMRequest): Promise<LLMResponse> {\n    const ollamaRequest = this.buildRequest(request);\n\n    const controller = new AbortController();\n    const timeout = setTimeout(() => controller.abort(), this.config.timeout || 120000);\n\n    try {\n      const response = await fetch(`${this.baseUrl}/api/chat`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json' },\n        body: JSON.stringify(ollamaRequest),\n        signal: controller.signal,\n      });\n\n      clearTimeout(timeout);","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/providers/src/ollama-provider.ts#L116-L152","documentation":"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.","triggerScenarios":"Thrown at v3/@claude-flow/providers/src/ollama-provider.ts:134 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the Ollama server locally (ollama serve) and ensure its port is reachable."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}