[GH-ISSUE #2651] Download Monitoring Error #27333

Closed
opened 2026-04-22 04:36:57 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @crimson206 on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2651

Screenshot 2024-02-21 204740

Originally created by @crimson206 on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2651 ![Screenshot 2024-02-21 204740](https://github.com/ollama/ollama/assets/110409356/70962ea7-5ae7-4cf1-bb64-7b6a76ee1ce9)
Author
Owner

@mxyng commented on GitHub (Feb 21, 2024):

Are you capturing stderr to a file?

The output is intended to be written to a terminal and uses ANSI escape characters to rewrite the screen. Writing those characters to a file has no effect and you get the screenshot as a result.

There's no great alternative other than not writing ANSI escape characters when not in terminal mode. This has side effects such as writing new lines for each screen update which will output many extra lines.

My suggestion here will be to redirect stderr to /dev/null since it doesn't seem like you're interested in pull progress.

ollama pull llama2 2>/dev/null
<!-- gh-comment-id:1958312986 --> @mxyng commented on GitHub (Feb 21, 2024): Are you capturing stderr to a file? The output is intended to be written to a terminal and uses ANSI escape characters to rewrite the screen. Writing those characters to a file has no effect and you get the screenshot as a result. There's no great alternative other than not writing ANSI escape characters when not in terminal mode. This has side effects such as writing new lines for each screen update which will output many extra lines. My suggestion here will be to redirect stderr to /dev/null since it doesn't seem like you're interested in pull progress. ``` ollama pull llama2 2>/dev/null ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27333