[GH-ISSUE #2161] Ollama issue - TypeError: fetch failed #1327

Closed
opened 2026-03-02 11:56:33 +03:00 by kerem · 0 comments
Owner

Originally created by @ech0corday on GitHub (Nov 23, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2161

Running 0.28.0.

Whenever Ollama should do something, it simply doesn't.

Log:

web-1          | 2025-11-23T10:01:07.628Z info: [inference][179] Starting an inference job for bookmark with id "iayxta0ibzj75nouw52nt3z8"
web-1          | 2025-11-23T10:01:07.655Z error: [inference][179] inference job failed: TypeError: fetch failed
web-1          | TypeError: fetch failed
web-1          |     at node:internal/deps/undici/undici:14900:13
web-1          |     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
web-1          |     at async post (file:///app/apps/workers/dist/index.js:59127:19)
web-1          |     at async Ollama.processStreamableRequest (file:///app/apps/workers/dist/index.js:59232:22)
web-1          |     at async OllamaInferenceClient.runModel (file:///app/apps/workers/dist/index.js:69025:26)
web-1          |     at async OllamaInferenceClient.inferFromText (file:///app/apps/workers/dist/index.js:69069:10)
web-1          |     at async inferTagsFromText (file:///app/apps/workers/dist/index.js:86516:9)
web-1          |     at async inferTags (file:///app/apps/workers/dist/index.js:86523:49)
web-1          |     at async runTagging (file:///app/apps/workers/dist/index.js:86606:15)
web-1          |     at async Object.runOpenAI [as run] (file:///app/apps/workers/dist/index.js:86671:4)
web-1          | 2025-11-23T10:01:08.129Z info: <-- GET /api/trpc/admin.backgroundJobsStats?batch=1&input=%

.env:

OLLAMA_BASE_URL=http://172.17.0.1:11434
INFERENCE_TEXT_MODEL=tinyllama
INFERENCE_IMAGE_MODEL=benzie/llava-phi-3

I've tried using host.docker.internal instead and I've tried specifying model names with appending :latest. Ollama logs are completely empty, so the request doesn't seem to ever leave the docker image..

Originally created by @ech0corday on GitHub (Nov 23, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2161 Running 0.28.0. Whenever Ollama should do something, it simply doesn't. Log: ``` web-1 | 2025-11-23T10:01:07.628Z info: [inference][179] Starting an inference job for bookmark with id "iayxta0ibzj75nouw52nt3z8" web-1 | 2025-11-23T10:01:07.655Z error: [inference][179] inference job failed: TypeError: fetch failed web-1 | TypeError: fetch failed web-1 | at node:internal/deps/undici/undici:14900:13 web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) web-1 | at async post (file:///app/apps/workers/dist/index.js:59127:19) web-1 | at async Ollama.processStreamableRequest (file:///app/apps/workers/dist/index.js:59232:22) web-1 | at async OllamaInferenceClient.runModel (file:///app/apps/workers/dist/index.js:69025:26) web-1 | at async OllamaInferenceClient.inferFromText (file:///app/apps/workers/dist/index.js:69069:10) web-1 | at async inferTagsFromText (file:///app/apps/workers/dist/index.js:86516:9) web-1 | at async inferTags (file:///app/apps/workers/dist/index.js:86523:49) web-1 | at async runTagging (file:///app/apps/workers/dist/index.js:86606:15) web-1 | at async Object.runOpenAI [as run] (file:///app/apps/workers/dist/index.js:86671:4) web-1 | 2025-11-23T10:01:08.129Z info: <-- GET /api/trpc/admin.backgroundJobsStats?batch=1&input=% ``` .env: ``` OLLAMA_BASE_URL=http://172.17.0.1:11434 INFERENCE_TEXT_MODEL=tinyllama INFERENCE_IMAGE_MODEL=benzie/llava-phi-3 ``` I've tried using `host.docker.internal` instead and I've tried specifying model names with appending `:latest`. Ollama logs are completely empty, so the request doesn't seem to ever leave the docker image..
kerem closed this issue 2026-03-02 11:56:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1327
No description provided.