[GH-ISSUE #8880] The ollama serve won't start either #5757

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

Originally created by @blue-sky-sqf on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8880

What is the issue?

What's wrong with this log

Relevant log output

2025/02/06 16:59:25 routes.go:1187: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:E:\\deepseek OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[OLLAMA_ORIGINS http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES:]"
time=2025-02-06T16:59:25.510+08:00 level=INFO source=images.go:432 msg="total blobs: 5"
time=2025-02-06T16:59:25.511+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0"
panic: bad origin: origins must contain '*' or include http://,https://,chrome-extension://,safari-extension://,moz-extension://,ms-browser-extension://

goroutine 1 [running]:
github.com/gin-contrib/cors.newCors({0x0, {0xc00059ac80, 0x11, 0x14}, 0x0, 0x0, {0xc0005c32d0, 0x7, 0x7}, 0x0, ...})
        github.com/gin-contrib/cors@v1.7.2/config.go:44 +0x29c
github.com/gin-contrib/cors.New({0x0, {0xc00059ac80, 0x11, 0x14}, 0x0, 0x0, {0xc0005c32d0, 0x7, 0x7}, 0x0, ...})
        github.com/gin-contrib/cors@v1.7.2/cors.go:194 +0x39
github.com/ollama/ollama/server.(*Server).GenerateRoutes(0xc000008180)
        github.com/ollama/ollama/server/routes.go:1142 +0x4f8
github.com/ollama/ollama/server.Serve({0x7ff6480071c0, 0xc000298980})
        github.com/ollama/ollama/server/routes.go:1236 +0x46a
github.com/ollama/ollama/cmd.RunServer(0xc0000b6e00?, {0x7ff6488c1b20?, 0x4?, 0x7ff647e48f0f?})
        github.com/ollama/ollama/cmd/cmd.go:1033 +0x4a
github.com/spf13/cobra.(*Command).execute(0xc0000fe608, {0x7ff6488c1b20, 0x0, 0x0})
        github.com/spf13/cobra@v1.7.0/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000c5508)
        github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.7.0/command.go:992
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        github.com/spf13/cobra@v1.7.0/command.go:985
main.main()
        github.com/ollama/ollama/main.go:12 +0x4d

OS

Windows

GPU

Intel

CPU

Intel

Ollama version

0.5.6

Originally created by @blue-sky-sqf on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8880 ### What is the issue? What's wrong with this log ### Relevant log output ```shell 2025/02/06 16:59:25 routes.go:1187: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:E:\\deepseek OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[OLLAMA_ORIGINS http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES:]" time=2025-02-06T16:59:25.510+08:00 level=INFO source=images.go:432 msg="total blobs: 5" time=2025-02-06T16:59:25.511+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0" panic: bad origin: origins must contain '*' or include http://,https://,chrome-extension://,safari-extension://,moz-extension://,ms-browser-extension:// goroutine 1 [running]: github.com/gin-contrib/cors.newCors({0x0, {0xc00059ac80, 0x11, 0x14}, 0x0, 0x0, {0xc0005c32d0, 0x7, 0x7}, 0x0, ...}) github.com/gin-contrib/cors@v1.7.2/config.go:44 +0x29c github.com/gin-contrib/cors.New({0x0, {0xc00059ac80, 0x11, 0x14}, 0x0, 0x0, {0xc0005c32d0, 0x7, 0x7}, 0x0, ...}) github.com/gin-contrib/cors@v1.7.2/cors.go:194 +0x39 github.com/ollama/ollama/server.(*Server).GenerateRoutes(0xc000008180) github.com/ollama/ollama/server/routes.go:1142 +0x4f8 github.com/ollama/ollama/server.Serve({0x7ff6480071c0, 0xc000298980}) github.com/ollama/ollama/server/routes.go:1236 +0x46a github.com/ollama/ollama/cmd.RunServer(0xc0000b6e00?, {0x7ff6488c1b20?, 0x4?, 0x7ff647e48f0f?}) github.com/ollama/ollama/cmd/cmd.go:1033 +0x4a github.com/spf13/cobra.(*Command).execute(0xc0000fe608, {0x7ff6488c1b20, 0x0, 0x0}) github.com/spf13/cobra@v1.7.0/command.go:940 +0x862 github.com/spf13/cobra.(*Command).ExecuteC(0xc0000c5508) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.7.0/command.go:992 github.com/spf13/cobra.(*Command).ExecuteContext(...) github.com/spf13/cobra@v1.7.0/command.go:985 main.main() github.com/ollama/ollama/main.go:12 +0x4d ``` ### OS Windows ### GPU Intel ### CPU Intel ### Ollama version 0.5.6
GiteaMirror added the bug label 2026-04-12 17:04:39 -05:00
Author
Owner

@blue-sky-sqf commented on GitHub (Feb 6, 2025):

Image
<!-- gh-comment-id:2639252467 --> @blue-sky-sqf commented on GitHub (Feb 6, 2025): <img width="371" alt="Image" src="https://github.com/user-attachments/assets/8a1c1ef0-1bbb-4c4c-8c1b-f46dbb2d525c" />
Author
Owner

@geek-mr-xie commented on GitHub (Feb 6, 2025):

it is okay now

<!-- gh-comment-id:2639265762 --> @geek-mr-xie commented on GitHub (Feb 6, 2025): it is okay now
Author
Owner

@blue-sky-sqf commented on GitHub (Feb 6, 2025):

I still report an error

<!-- gh-comment-id:2639304156 --> @blue-sky-sqf commented on GitHub (Feb 6, 2025): I still report an error
Author
Owner

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

Remove the word OLLAMA_ORIGINS from your OLLAMA_ORIGINS environment variable.

<!-- gh-comment-id:2639360759 --> @rick-github commented on GitHub (Feb 6, 2025): Remove the word OLLAMA_ORIGINS from your `OLLAMA_ORIGINS` environment variable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5757