[GH-ISSUE #1405] ollama run fails on start #47259

Closed
opened 2026-04-28 03:28:52 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @j-sneh on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1405

➜  ~ ollama run llama2
⠋   Error: template: :2:11: executing "" at <.Context>: can't evaluate field Context in type struct { First bool; System string; Prompt string }

➜  ~ ollama --version
ollama version 0.1.13

Ran into this issue after running ollama run llama2. Occurs if server is running or if not & issue persisted after updating the server.

Originally created by @j-sneh on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1405 ``` ➜ ~ ollama run llama2 ⠋ Error: template: :2:11: executing "" at <.Context>: can't evaluate field Context in type struct { First bool; System string; Prompt string } ➜ ~ ollama --version ollama version 0.1.13 ``` Ran into this issue after running `ollama run llama2`. Occurs if server is running or if not & issue persisted after updating the server.
Author
Owner

@technovangelist commented on GitHub (Dec 6, 2023):

Can you provide some more info on your setup? How did you install ollama? What platform are you on?

<!-- gh-comment-id:1843619772 --> @technovangelist commented on GitHub (Dec 6, 2023): Can you provide some more info on your setup? How did you install ollama? What platform are you on?
Author
Owner

@pdevine commented on GitHub (Dec 6, 2023):

Hey @j-sneh can you try ollama pull llama2 and then try running it again?

<!-- gh-comment-id:1843633358 --> @pdevine commented on GitHub (Dec 6, 2023): Hey @j-sneh can you try `ollama pull llama2` and then try running it again?
Author
Owner

@pdevine commented on GitHub (Dec 6, 2023):

I think #1244 will partially fix this, but I think you're running a really old model that needs to be updated.

<!-- gh-comment-id:1843656735 --> @pdevine commented on GitHub (Dec 6, 2023): I think #1244 will partially fix this, but I think you're running a really old model that needs to be updated.
Author
Owner

@j-sneh commented on GitHub (Dec 6, 2023):

I'm on an M1 Mac, macOS Moneterey — re-pulling the model fixed the issue. My old copy of the model was a couple of months old.

<!-- gh-comment-id:1843657110 --> @j-sneh commented on GitHub (Dec 6, 2023): I'm on an M1 Mac, macOS Moneterey — re-pulling the model fixed the issue. My old copy of the model was a couple of months old.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47259