[GH-ISSUE #9240] WARN: msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" #31781

Closed
opened 2026-04-22 12:32:53 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @ruonanzh on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9240

What is the issue?

I am running Standalone CLI ollama.exe(v0.5.11) on Windows 10 and Cuda 12 RT desktop.

Got this warning when pulling all deepseek models with command .\ollama.exe pull deepseek-r1:8b or .\ollama.exe pull deepseek-r1

source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"

but works fine for llama3.2.

Relevant log output

[GIN] 2025/02/20 - 12:07:03 | 200 |            0s |       127.0.0.1 | HEAD     "/"
time=2025-02-20T12:07:03.918+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
[GIN] 2025/02/20 - 12:07:03 | 200 |      1.0244ms |       127.0.0.1 | GET      "/api/tags"
[GIN] 2025/02/20 - 12:07:17 | 200 |            0s |       127.0.0.1 | HEAD     "/"
time=2025-02-20T12:07:17.422+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
[GIN] 2025/02/20 - 12:07:17 | 200 |      2.0431ms |       127.0.0.1 | POST     "/api/generate"
time=2025-02-20T12:07:17.424+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:17.425+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:17.437+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:17.438+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:17.438+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:17.439+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
[GIN] 2025/02/20 - 12:07:17 | 200 |     14.9866ms |       127.0.0.1 | DELETE   "/api/delete"
[GIN] 2025/02/20 - 12:07:21 | 200 |            0s |       127.0.0.1 | HEAD     "/"
time=2025-02-20T12:07:21.051+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
[GIN] 2025/02/20 - 12:07:21 | 200 |            0s |       127.0.0.1 | GET      "/api/tags"
[GIN] 2025/02/20 - 12:07:44 | 200 |            0s |       127.0.0.1 | HEAD     "/"
time=2025-02-20T12:07:44.044+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:07:46.305+08:00 level=INFO source=download.go:176 msg="downloading 6340dc3229b0 in 16 307 MB part(s)"
time=2025-02-20T12:10:28.318+08:00 level=INFO source=download.go:176 msg="downloading 369ca498f347 in 1 387 B part(s)"
time=2025-02-20T12:10:29.882+08:00 level=INFO source=download.go:176 msg="downloading 6e4c38e1172f in 1 1.1 KB part(s)"
time=2025-02-20T12:10:31.436+08:00 level=INFO source=download.go:176 msg="downloading f4d24e9138dd in 1 148 B part(s)"
time=2025-02-20T12:10:33.028+08:00 level=INFO source=download.go:176 msg="downloading 0cb05c6e4e02 in 1 487 B part(s)"
[GIN] 2025/02/20 - 12:10:37 | 200 |         2m53s |       127.0.0.1 | POST     "/api/pull"
[GIN] 2025/02/20 - 12:12:59 | 200 |            0s |       127.0.0.1 | HEAD     "/"
time=2025-02-20T12:12:59.377+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')"
time=2025-02-20T12:13:01.436+08:00 level=INFO source=download.go:176 msg="downloading dde5aa3fc5ff in 16 126 MB part(s)"
time=2025-02-20T12:14:10.085+08:00 level=INFO source=download.go:176 msg="downloading 966de95ca8a6 in 1 1.4 KB part(s)"
time=2025-02-20T12:14:11.746+08:00 level=INFO source=download.go:176 msg="downloading fcc5a6bec9da in 1 7.7 KB part(s)"
time=2025-02-20T12:14:13.381+08:00 level=INFO source=download.go:176 msg="downloading a70ff7e570d9 in 1 6.0 KB part(s)"
time=2025-02-20T12:14:15.039+08:00 level=INFO source=download.go:176 msg="downloading 56bb8bd477a5 in 1 96 B part(s)"
time=2025-02-20T12:14:16.673+08:00 level=INFO source=download.go:176 msg="downloading 34bb5ab01051 in 1 561 B part(s)"
[GIN] 2025/02/20 - 12:14:19 | 200 |         1m19s |       127.0.0.1 | POST     "/api/pull"

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

v0.5.11

Originally created by @ruonanzh on GitHub (Feb 20, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9240 ### What is the issue? I am running Standalone CLI ollama.exe(v0.5.11) on Windows 10 and Cuda 12 RT desktop. Got this warning when pulling all deepseek models with command .\ollama.exe pull deepseek-r1:8b or .\ollama.exe pull deepseek-r1 source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" but works fine for llama3.2. ### Relevant log output ```shell [GIN] 2025/02/20 - 12:07:03 | 200 | 0s | 127.0.0.1 | HEAD "/" time=2025-02-20T12:07:03.918+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" [GIN] 2025/02/20 - 12:07:03 | 200 | 1.0244ms | 127.0.0.1 | GET "/api/tags" [GIN] 2025/02/20 - 12:07:17 | 200 | 0s | 127.0.0.1 | HEAD "/" time=2025-02-20T12:07:17.422+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" [GIN] 2025/02/20 - 12:07:17 | 200 | 2.0431ms | 127.0.0.1 | POST "/api/generate" time=2025-02-20T12:07:17.424+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:17.425+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:17.437+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:17.438+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:17.438+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:17.439+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" [GIN] 2025/02/20 - 12:07:17 | 200 | 14.9866ms | 127.0.0.1 | DELETE "/api/delete" [GIN] 2025/02/20 - 12:07:21 | 200 | 0s | 127.0.0.1 | HEAD "/" time=2025-02-20T12:07:21.051+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" [GIN] 2025/02/20 - 12:07:21 | 200 | 0s | 127.0.0.1 | GET "/api/tags" [GIN] 2025/02/20 - 12:07:44 | 200 | 0s | 127.0.0.1 | HEAD "/" time=2025-02-20T12:07:44.044+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:07:46.305+08:00 level=INFO source=download.go:176 msg="downloading 6340dc3229b0 in 16 307 MB part(s)" time=2025-02-20T12:10:28.318+08:00 level=INFO source=download.go:176 msg="downloading 369ca498f347 in 1 387 B part(s)" time=2025-02-20T12:10:29.882+08:00 level=INFO source=download.go:176 msg="downloading 6e4c38e1172f in 1 1.1 KB part(s)" time=2025-02-20T12:10:31.436+08:00 level=INFO source=download.go:176 msg="downloading f4d24e9138dd in 1 148 B part(s)" time=2025-02-20T12:10:33.028+08:00 level=INFO source=download.go:176 msg="downloading 0cb05c6e4e02 in 1 487 B part(s)" [GIN] 2025/02/20 - 12:10:37 | 200 | 2m53s | 127.0.0.1 | POST "/api/pull" [GIN] 2025/02/20 - 12:12:59 | 200 | 0s | 127.0.0.1 | HEAD "/" time=2025-02-20T12:12:59.377+08:00 level=WARN source=manifest.go:169 msg="bad manifest" name=registry.ollama.ai/library/deepseek-r1:latest.meta error="invalid character 'i' in literal false (expecting 'a')" time=2025-02-20T12:13:01.436+08:00 level=INFO source=download.go:176 msg="downloading dde5aa3fc5ff in 16 126 MB part(s)" time=2025-02-20T12:14:10.085+08:00 level=INFO source=download.go:176 msg="downloading 966de95ca8a6 in 1 1.4 KB part(s)" time=2025-02-20T12:14:11.746+08:00 level=INFO source=download.go:176 msg="downloading fcc5a6bec9da in 1 7.7 KB part(s)" time=2025-02-20T12:14:13.381+08:00 level=INFO source=download.go:176 msg="downloading a70ff7e570d9 in 1 6.0 KB part(s)" time=2025-02-20T12:14:15.039+08:00 level=INFO source=download.go:176 msg="downloading 56bb8bd477a5 in 1 96 B part(s)" time=2025-02-20T12:14:16.673+08:00 level=INFO source=download.go:176 msg="downloading 34bb5ab01051 in 1 561 B part(s)" [GIN] 2025/02/20 - 12:14:19 | 200 | 1m19s | 127.0.0.1 | POST "/api/pull" ``` ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version v0.5.11
GiteaMirror added the bug label 2026-04-22 12:32:53 -05:00
Author
Owner

@ruonanzh commented on GitHub (Feb 20, 2025):

not sure what is going on but Cursor give this solution and it solve the problem:

Looking at the code, the warning is coming from the Manifests() function in manifest.go, specifically around line 169. This warning occurs when there's an error parsing a manifest file's JSON content.
The error message "invalid character 'i' in literal false (expecting 'a')" suggests there's a JSON parsing error - specifically, the JSON decoder encountered an invalid JSON format in the manifest file.
Here's what's happening:
When you pull a model, Ollama creates manifest files to track model metadata and layers
The Manifests() function tries to read and parse these manifest files
In your case, one of the manifest files (specifically for deepseek-r1's metadata) appears to have invalid JSON content
The code is actually handling this gracefully because continueOnError is true, which is why you only see a warning instead of the process failing completely.
To fix this issue, you could try:
Delete the corrupted manifest file and pull again:
If that doesn't work, you might need to clean up the Ollama directory completely:
On Windows: Delete contents in %LOCALAPPDATA%\ollama
On Linux/Mac: Delete contents in ~/.ollama
Then try pulling the model again.
This is likely a temporary issue where the manifest file got corrupted during download or writing. The warning is actually a good safety mechanism in the code that prevents the entire system from crashing when it encounters a single corrupted manifest file.

<!-- gh-comment-id:2670456486 --> @ruonanzh commented on GitHub (Feb 20, 2025): not sure what is going on but Cursor give this solution and it solve the problem: Looking at the code, the warning is coming from the Manifests() function in manifest.go, specifically around line 169. This warning occurs when there's an error parsing a manifest file's JSON content. The error message "invalid character 'i' in literal false (expecting 'a')" suggests there's a JSON parsing error - specifically, the JSON decoder encountered an invalid JSON format in the manifest file. Here's what's happening: When you pull a model, Ollama creates manifest files to track model metadata and layers The Manifests() function tries to read and parse these manifest files In your case, one of the manifest files (specifically for deepseek-r1's metadata) appears to have invalid JSON content The code is actually handling this gracefully because continueOnError is true, which is why you only see a warning instead of the process failing completely. To fix this issue, you could try: Delete the corrupted manifest file and pull again: If that doesn't work, you might need to clean up the Ollama directory completely: On Windows: Delete contents in %LOCALAPPDATA%\ollama On Linux/Mac: Delete contents in ~/.ollama Then try pulling the model again. This is likely a temporary issue where the manifest file got corrupted during download or writing. The warning is actually a good safety mechanism in the code that prevents the entire system from crashing when it encounters a single corrupted manifest file.
Author
Owner

@ruonanzh commented on GitHub (Feb 20, 2025):

After sometimes this warning comes up again. And have to rm models and delete user data again to make this warning go away.

Not sure how to reproduce this warning in a certain order of commands now.
Will add more details if I figure it out how to reproduce this warning.

And if there is anyone know something about this warning please let me know, it is really annoying.

<!-- gh-comment-id:2670641271 --> @ruonanzh commented on GitHub (Feb 20, 2025): After sometimes this warning comes up again. And have to rm models and delete user data again to make this warning go away. Not sure how to reproduce this warning in a certain order of commands now. Will add more details if I figure it out how to reproduce this warning. And if there is anyone know something about this warning please let me know, it is really annoying.
Author
Owner

@rick-github commented on GitHub (Feb 20, 2025):

What are the contents of the file?

type .ollama\models\manifests\registry.ollama.ai\library\deepseek-r1\latest.meta
<!-- gh-comment-id:2671458739 --> @rick-github commented on GitHub (Feb 20, 2025): What are the contents of the file? ``` type .ollama\models\manifests\registry.ollama.ai\library\deepseek-r1\latest.meta ```
Author
Owner

@ruonanzh commented on GitHub (Feb 21, 2025):

@rick-github you are right, this is the problem. I am using Unity3d as a game engine, it auto generate .meta file even it is not referenced any where in engine. Thanks.

<!-- gh-comment-id:2673499954 --> @ruonanzh commented on GitHub (Feb 21, 2025): @rick-github you are right, this is the problem. I am using Unity3d as a game engine, it auto generate .meta file even it is not referenced any where in engine. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#31781