[GH-ISSUE #13868] Error when running ollama with claude code #9078

Closed
opened 2026-04-12 21:55:14 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @kentsuiGitHub on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/13868

What is the issue?

Error when running ollama with claude code which claude code runs in ubuntu docker.
ollama log:
[GIN] 2026/01/23 - 23:59:49 | 404 | 13.183µs | 172.18.0.1 | POST "/api/event_logging/batch"

Relevant log output


OS

Docker

GPU

Other

CPU

Other

Ollama version

0.14.3

Originally created by @kentsuiGitHub on GitHub (Jan 24, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/13868 ### What is the issue? Error when running ollama with claude code which claude code runs in ubuntu docker. ollama log: [GIN] 2026/01/23 - 23:59:49 | 404 | 13.183µs | 172.18.0.1 | POST "/api/event_logging/batch" ### Relevant log output ```shell ``` ### OS Docker ### GPU Other ### CPU Other ### Ollama version 0.14.3
GiteaMirror added the bugneeds more info labels 2026-04-12 21:55:14 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 24, 2026):

Ollama doesn't have an /api/event_logging API endpoint so Claude Code shouldn't try to access it.

<!-- gh-comment-id:3793256514 --> @rick-github commented on GitHub (Jan 24, 2026): Ollama doesn't have an `/api/event_logging` API endpoint so Claude Code shouldn't try to access it.
Author
Owner

@mchiang0610 commented on GitHub (Jan 24, 2026):

This log looks to be emitted by Claude Code. Do you have the error message or what you are seeing? Would love to help troubleshoot this but let me know what you are running into.

Thanks!

<!-- gh-comment-id:3793851457 --> @mchiang0610 commented on GitHub (Jan 24, 2026): This log looks to be emitted by Claude Code. Do you have the error message or what you are seeing? Would love to help troubleshoot this but let me know what you are running into. Thanks!
Author
Owner

@kentsuiGitHub commented on GitHub (Jan 24, 2026):

I build the image with the following env var and the error is gone.
ENV DISABLE_TELEMETRY=1
ENV DISABLE_ERROR_REPORTING=1
ENV CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

<!-- gh-comment-id:3793897238 --> @kentsuiGitHub commented on GitHub (Jan 24, 2026): I build the image with the following env var and the error is gone. ENV DISABLE_TELEMETRY=1 ENV DISABLE_ERROR_REPORTING=1 ENV CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9078