Skip to content

[Bug]: 500 Internal Server Error in v0.30.4 due to non-ASCII Windows username path #16493

Description

@turtlechang

What is the issue?

Bug Description
After updating to Ollama version 0.30.4 on Windows, running a model results in a 500 Internal Server Error. The llama-server process terminates because it fails to load the model.

The root cause appears to be an encoding or parsing issue with Windows user profiles that contain non-ASCII characters (e.g., Traditional Chinese) and spaces. My user directory is C:\Users\張 庭 綱, but the error logs show the path is mangled into garbled text (e.g., C:\Users\ix...), leading to a failure in locating the model blobs.

Environment Details

OS: Windows

Ollama Version: 0.30.4

Model: gemma4:e2b

Steps to Reproduce

Log into a Windows user account containing Chinese characters and spaces (e.g., 張 庭 綱).

Install or update Ollama to v0.30.4.

Open Command Prompt and run the command: ollama run gemma4:e2b --verbose

The server crashes and fails to read the path.

Relevant log output

C:\Users\張 庭 綱>ollama run gemma4:e2b --verbose
Error: 500 Internal Server Error: llama-server process has terminated: exit status 1: error: Failed to load CLIP model from C:\Users\ix\.ollama\models\blobs\sha256-4e30e2665218745ef463f722c0bf86be0cab6ee676320f1cfadf91e989107448
error loading model: llama_model_loader: failed to load model from C:\Users\ix\.ollama\models\blobs\sha256-4e30e2665218745ef463f722c0bf86be0cab6ee676320f1cfadf91e989107448

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.30.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions