[GH-ISSUE #12576] [Windows] Ollama server exits immediately on startup with "exit status 1" #34104

Closed
opened 2026-04-22 17:22:08 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @woyaoxingfua on GitHub (Oct 11, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12576

System Information

  • **OS:**Windows 11
  • Ollama Version: 0.12.5
  • **Graphics Card:*NVIDIA GeForce RTX 4060 laptop
  • **GPU Driver Version:**NVIDIA-SMI 566.36 Driver Version: 566.36 CUDA Version: 12.7

Describe the bug

When I start the Ollama application on Windows, the backend server fails to launch. It seems to be in a crash loop, repeatedly trying to start and then exiting with "exit status 1". The UI cannot connect to the server on port 11434 because it's not running.I have also started it as an administrator, but it still doesn't work.

Steps to Reproduce

  1. Install Ollama version 0.12.5 on a fresh Windows system.
  2. Launch the Ollama application from the Start Menu.
  3. The application fails to become ready.
  4. Checking the logs reveals the server is crashing.

Troubleshooting Steps Taken

I have already tried the following steps without success:

  • Checked for port conflicts on 11434 using netstat. The port is free.
    Image

  • Disabled Windows Firewall and any antivirus software.

  • Performed a clean installation of the latest GPU drivers and rebooted.

  • Completely uninstalled Ollama, deleted the .ollama user folder, and reinstalled as an administrator.

Logs

Here are the logs from ollama_app.log:
(
app.log

server.log

)

Originally created by @woyaoxingfua on GitHub (Oct 11, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12576 ### System Information - **OS:**Windows 11 - **Ollama Version:** 0.12.5 - **Graphics Card:*NVIDIA GeForce RTX 4060 laptop - **GPU Driver Version:**NVIDIA-SMI 566.36 Driver Version: 566.36 CUDA Version: 12.7 ### Describe the bug When I start the Ollama application on Windows, the backend server fails to launch. It seems to be in a crash loop, repeatedly trying to start and then exiting with "exit status 1". The UI cannot connect to the server on port 11434 because it's not running.I have also started it as an administrator, but it still doesn't work. ### Steps to Reproduce 1. Install Ollama version 0.12.5 on a fresh Windows system. 2. Launch the Ollama application from the Start Menu. 3. The application fails to become ready. 4. Checking the logs reveals the server is crashing. ### Troubleshooting Steps Taken I have already tried the following steps without success: - Checked for port conflicts on `11434` using `netstat`. The port is free. <img width="637" height="61" alt="Image" src="https://github.com/user-attachments/assets/21a703ee-7022-4150-a0ad-0a5b00c9f8e4" /> - Disabled Windows Firewall and any antivirus software. - Performed a clean installation of the latest GPU drivers and rebooted. - Completely uninstalled Ollama, deleted the `.ollama` user folder, and reinstalled as an administrator. ### Logs Here are the logs from `ollama_app.log`: ( [app.log](https://github.com/user-attachments/files/22864860/app.log) [server.log](https://github.com/user-attachments/files/22864872/server.log) )
Author
Owner

@rick-github commented on GitHub (Oct 11, 2025):

What's the output of:

curl http://localhost:11434
<!-- gh-comment-id:3393415485 --> @rick-github commented on GitHub (Oct 11, 2025): What's the output of: ``` curl http://localhost:11434 ```
Author
Owner

@woyaoxingfua commented on GitHub (Oct 12, 2025):

Hi @rick-github, thank you for your response.

This is a strange update, but the issue seems to have resolved itself today. Ollama is starting and running correctly now.

The important detail is that I did not take any specific action to fix it. I had already tried rebooting my computer multiple times in the past few days, and that did not solve the problem. It just started working when I tried it today.

As confirmation that the service is now running, netstat shows it is listening correctly:

C:\Users\Lenovo> netstat -ano | findstr "11434"
TCP    0.0.0.0:11434          0.0.0.0:0              LISTENING       4472
TCP    [::]:11434             [::]:0                 LISTENING       4472

And here is the output of the curl http://localhost:11434 command you requested, which now shows a successful connection:

PS C:\Users\Lenovo> curl http://localhost:11434

StatusCode        : 200
StatusDescription : OK
Content           : Ollama is running
RawContent        : HTTP/1.1 200 OK
                    Content-Length: 17
                    Content-Type: text/plain; charset=utf-8
                    Date: Sun, 12 Oct 2025 08:49:18 GMT

                    Ollama is running
Forms             : {}
Headers           : {[Content-Length, 17], [Content-Type, text/plain; charset=utf-8], [Date, Sun, 12 Oct 2025 08:49:18 GMT]}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 17

Since the problem disappeared without a clear cause, perhaps it was related to a silent background process or update. For now, the application is working.
Thank you again for your time. I will leave it to you to decide if you want to close this issue or keep it open for monitoring.

server.log
app.log

<!-- gh-comment-id:3394081987 --> @woyaoxingfua commented on GitHub (Oct 12, 2025): Hi @rick-github, thank you for your response. This is a strange update, but the issue seems to have resolved itself today. Ollama is starting and running correctly now. The important detail is that I did not take any specific action to fix it. I had already tried rebooting my computer multiple times in the past few days, and that did not solve the problem. It just started working when I tried it today. As confirmation that the service is now running, `netstat` shows it is listening correctly: ```plaintext C:\Users\Lenovo> netstat -ano | findstr "11434" TCP 0.0.0.0:11434 0.0.0.0:0 LISTENING 4472 TCP [::]:11434 [::]:0 LISTENING 4472 ``` And here is the output of the curl http://localhost:11434 command you requested, which now shows a successful connection: ```plaintext PS C:\Users\Lenovo> curl http://localhost:11434 StatusCode : 200 StatusDescription : OK Content : Ollama is running RawContent : HTTP/1.1 200 OK Content-Length: 17 Content-Type: text/plain; charset=utf-8 Date: Sun, 12 Oct 2025 08:49:18 GMT Ollama is running Forms : {} Headers : {[Content-Length, 17], [Content-Type, text/plain; charset=utf-8], [Date, Sun, 12 Oct 2025 08:49:18 GMT]} Images : {} InputFields : {} Links : {} ParsedHtml : mshtml.HTMLDocumentClass RawContentLength : 17 ``` Since the problem disappeared without a clear cause, perhaps it was related to a silent background process or update. For now, the application is working. Thank you again for your time. I will leave it to you to decide if you want to close this issue or keep it open for monitoring. [server.log](https://github.com/user-attachments/files/22870277/server.log) [app.log](https://github.com/user-attachments/files/22870276/app.log)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#34104