[GH-ISSUE #11680] GPT-OSS "currentDate" not defined #69786

Closed
opened 2026-05-04 19:17:12 -05:00 by GiteaMirror · 19 comments
Owner

Originally created by @noah-schroeder on GitHub (Aug 5, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11680

What is the issue?

GPT-OSS 20b won't run, I keep getting this error:
Error: template: :3: function "currentDate" not defined.

ubuntu 22.04
Ollama version 0.11.0

Relevant log output

ollama run gpt-oss
Error: template: :3: function "currentDate" not defined

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.11.0

Originally created by @noah-schroeder on GitHub (Aug 5, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11680 ### What is the issue? GPT-OSS 20b won't run, I keep getting this error: Error: template: :3: function "currentDate" not defined. ubuntu 22.04 Ollama version 0.11.0 ### Relevant log output ```shell ollama run gpt-oss Error: template: :3: function "currentDate" not defined ``` ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.11.0
GiteaMirror added the bug label 2026-05-04 19:17:12 -05:00
Author
Owner

@roblaughter commented on GitHub (Aug 5, 2025):

Ditto. I'm on Apple Silicon running 20b.

<!-- gh-comment-id:3156274185 --> @roblaughter commented on GitHub (Aug 5, 2025): Ditto. I'm on Apple Silicon running 20b.
Author
Owner

@2jfs904judsw20600jikn613d0dookl23jsig commented on GitHub (Aug 5, 2025):

bump!

on my windows 11 nividia intel setup i was NOT getting this issue - gpt-oss:20b

on my macbook m3 apple silicon setup i AM getting this issue - gpt-oss:20b

<!-- gh-comment-id:3156275008 --> @2jfs904judsw20600jikn613d0dookl23jsig commented on GitHub (Aug 5, 2025): bump! on my windows 11 nividia intel setup i was NOT getting this issue - gpt-oss:20b on my macbook m3 apple silicon setup i AM getting this issue - gpt-oss:20b
Author
Owner

@ghost commented on GitHub (Aug 5, 2025):

I'm having the same issue but on Windows. Also, for me, the GUI just hangs when I try sending a message to it (AMD CPU, latest Ollama version and game-ready drivers).

Edit: Thought I should add that this also happens with ollama show gpt-oss or really any command with gpt-oss, even uninstalling it. And there is 0 GPU usage when I try running it. (Only tried with the 20B model.)

<!-- gh-comment-id:3156275097 --> @ghost commented on GitHub (Aug 5, 2025): I'm having the same issue but on Windows. Also, for me, the GUI just hangs when I try sending a message to it (AMD CPU, latest Ollama version and game-ready drivers). Edit: Thought I should add that this also happens with ollama show gpt-oss or really any command with gpt-oss, even uninstalling it. And there is 0 GPU usage when I try running it. (Only tried with the 20B model.)
Author
Owner

@deanc commented on GitHub (Aug 5, 2025):

Same issue with both gpt-oss models on macbook Apple M3 Max 64gb

<!-- gh-comment-id:3156275793 --> @deanc commented on GitHub (Aug 5, 2025): Same issue with both gpt-oss models on macbook Apple M3 Max 64gb
Author
Owner

@shikyo13 commented on GitHub (Aug 5, 2025):

Also getting this on Macbook M4 Max 128gb on both gpt-oss models.

<!-- gh-comment-id:3156281360 --> @shikyo13 commented on GitHub (Aug 5, 2025): Also getting this on Macbook M4 Max 128gb on both gpt-oss models.
Author
Owner

@MaxPyx commented on GitHub (Aug 5, 2025):

Same issue on Windows 11, Nvidia GPU, gpt-oss:20b

<!-- gh-comment-id:3156281669 --> @MaxPyx commented on GitHub (Aug 5, 2025): Same issue on Windows 11, Nvidia GPU, gpt-oss:20b
Author
Owner

@BeatWolf commented on GitHub (Aug 5, 2025):

Looks like: #11673

<!-- gh-comment-id:3156282422 --> @BeatWolf commented on GitHub (Aug 5, 2025): Looks like: #11673
Author
Owner

@detrin commented on GitHub (Aug 5, 2025):

Not getting this issue on Mac M4 with gpt-oss:20b.

I have updated the ollama just before the pull.

<!-- gh-comment-id:3156284425 --> @detrin commented on GitHub (Aug 5, 2025): Not getting this issue on Mac M4 with gpt-oss:20b. I have updated the ollama just before the pull.
Author
Owner

@jessegross commented on GitHub (Aug 5, 2025):

Please see:
https://github.com/ollama/ollama/issues/11673#issuecomment-3156244598

<!-- gh-comment-id:3156285806 --> @jessegross commented on GitHub (Aug 5, 2025): Please see: https://github.com/ollama/ollama/issues/11673#issuecomment-3156244598
Author
Owner

@pdevine commented on GitHub (Aug 5, 2025):

This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out.

<!-- gh-comment-id:3156293653 --> @pdevine commented on GitHub (Aug 5, 2025): This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out.
Author
Owner

@fathurwithyou commented on GitHub (Aug 5, 2025):

This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out.

this approach didn't work on my windows...

<!-- gh-comment-id:3156298414 --> @fathurwithyou commented on GitHub (Aug 5, 2025): > This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out. this approach didn't work on my windows...
Author
Owner

@noah-schroeder commented on GitHub (Aug 5, 2025):

This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out.

Redownloading ollama and repulling the model did work - thank you.

<!-- gh-comment-id:3156319436 --> @noah-schroeder commented on GitHub (Aug 5, 2025): > This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out. Redownloading ollama and repulling the model did work - thank you.
Author
Owner

@TrisShare commented on GitHub (Aug 5, 2025):

Uninstalled and reinstalled Ollama resolved this issue - Ubuntu 24.04.2 LTS - WSL

<!-- gh-comment-id:3156332846 --> @TrisShare commented on GitHub (Aug 5, 2025): Uninstalled and reinstalled Ollama resolved this issue - Ubuntu 24.04.2 LTS - WSL
Author
Owner

@advanced4 commented on GitHub (Aug 5, 2025):

This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out.

Worked for me, thank you!!

<!-- gh-comment-id:3156401962 --> @advanced4 commented on GitHub (Aug 5, 2025): > This is fixed if you redownload ollama (you don't need to redownload the weights). We had some issues w/ GitHub this morning when we were rolling out. Worked for me, thank you!!
Author
Owner

@Lokesh12345 commented on GitHub (Aug 7, 2025):

i still see this issue happenig even after latest pull of gpp oss, alos later ollma i have

<!-- gh-comment-id:3162165774 --> @Lokesh12345 commented on GitHub (Aug 7, 2025): i still see this issue happenig even after latest pull of gpp oss, alos later ollma i have
Author
Owner

@old-square-eyes commented on GitHub (Aug 16, 2025):

I used the Windows App updater and am running into this still with OpenwebUI. I can chat via CLI.

<!-- gh-comment-id:3193562267 --> @old-square-eyes commented on GitHub (Aug 16, 2025): I used the Windows App updater and am running into this still with OpenwebUI. I can chat via CLI.
Author
Owner

@juhp commented on GitHub (Sep 10, 2025):

Also cannot rm it 😢

<!-- gh-comment-id:3274283874 --> @juhp commented on GitHub (Sep 10, 2025): Also cannot `rm` it 😢
Author
Owner

@pdevine commented on GitHub (Sep 10, 2025):

@Lokesh12345 can you run ollama -v? I'm wondering if you have an old copy of ollama running.

<!-- gh-comment-id:3276652818 --> @pdevine commented on GitHub (Sep 10, 2025): @Lokesh12345 can you run `ollama -v`? I'm wondering if you have an old copy of ollama running.
Author
Owner

@nikhilnagrale2 commented on GitHub (Sep 13, 2025):

@pdevine thanks man. It was indeed the issue I was stuck with 0.6.0 although I always do updates. Now reinstalled working great.

<!-- gh-comment-id:3287680323 --> @nikhilnagrale2 commented on GitHub (Sep 13, 2025): @pdevine thanks man. It was indeed the issue I was stuck with 0.6.0 although I always do updates. Now reinstalled working great.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69786