[GH-ISSUE #8056] Create Endpoint Appears Broken #82832

Closed
opened 2026-05-09 15:54:11 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mcmah309 on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8056

What is the issue?

The create endpoint seems broken. The cli seems to work fine though.

henry@nixos:~/work/my_packages/rust/olinker (master)$ curl http://localhost:11434/api/create -d '{
  "model": "mario",
  "path": "/tmp/Modelfile"
}'
{"error":"error reading modelfile: open /tmp/Modelfile: no such file or directory"}
henry@nixos:~/work/my_packages/rust/olinker (master)$ l /tmp/Modelfile
-rw-rw-rw- 1 henry users 66 Dec 11 23:42 /tmp/Modelfile
henry@nixos:~/work/my_packages/rust/olinker (master)$ cat /tmp/Modelfile
FROM llama3.2:latest
SYSTEM You are a pirate. Talk like a pirate.
henry@nixos:~/work/my_packages/rust/olinker (master)$ ollama create mario -f /tmp/Modelfile
transferring model data 
using existing layer sha256:dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff 
using existing layer sha256:966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396 
using existing layer sha256:fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d 
using existing layer sha256:a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd 
creating new layer sha256:f46dc188082a32395fbc945d945848751b7277dd07fbc4f8e05b01e21390c4b3 
using existing layer sha256:56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb 
creating new layer sha256:2209cd0c52697efc6274ab77fbb070cec2d3318e506849a42d691415e5e53a41 
writing manifest 
success 

OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

5.0.0

Originally created by @mcmah309 on GitHub (Dec 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8056 ### What is the issue? The create endpoint seems broken. The cli seems to work fine though. ```console henry@nixos:~/work/my_packages/rust/olinker (master)$ curl http://localhost:11434/api/create -d '{ "model": "mario", "path": "/tmp/Modelfile" }' {"error":"error reading modelfile: open /tmp/Modelfile: no such file or directory"} henry@nixos:~/work/my_packages/rust/olinker (master)$ l /tmp/Modelfile -rw-rw-rw- 1 henry users 66 Dec 11 23:42 /tmp/Modelfile henry@nixos:~/work/my_packages/rust/olinker (master)$ cat /tmp/Modelfile FROM llama3.2:latest SYSTEM You are a pirate. Talk like a pirate. henry@nixos:~/work/my_packages/rust/olinker (master)$ ollama create mario -f /tmp/Modelfile transferring model data using existing layer sha256:dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff using existing layer sha256:966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396 using existing layer sha256:fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d using existing layer sha256:a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd creating new layer sha256:f46dc188082a32395fbc945d945848751b7277dd07fbc4f8e05b01e21390c4b3 using existing layer sha256:56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb creating new layer sha256:2209cd0c52697efc6274ab77fbb070cec2d3318e506849a42d691415e5e53a41 writing manifest success ``` ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version 5.0.0
GiteaMirror added the bug label 2026-05-09 15:54:11 -05:00
Author
Owner

@rick-github commented on GitHub (Dec 12, 2024):

Is your ollama server running in a VM, docker container, or some other chroot jail? Server logs may shed some light.

<!-- gh-comment-id:2537513941 --> @rick-github commented on GitHub (Dec 12, 2024): Is your ollama server running in a VM, docker container, or some other chroot jail? Server logs may shed some light.
Author
Owner

@mcmah309 commented on GitHub (Dec 12, 2024):

Just ran the command again, here are the logs, everything else is from hours before.

Dec 12 03:50:34 nixos ollama[1637]: [GIN] 2024/12/12 - 03:50:34 | 404 |        7.89µs |       127.0.0.1 | GET      "/api/create"
Dec 12 03:50:34 nixos ollama[1637]: [GIN] 2024/12/12 - 03:50:34 | 404 |        7.41µs |       127.0.0.1 | GET      "/favicon.ico"
Dec 12 03:51:23 nixos ollama[1637]: [GIN] 2024/12/12 - 03:51:23 | 400 |    1.154548ms |       127.0.0.1 | POST     "/api/create"

No VM, container, possibly a chroot jail. Testing some things out, I think this may actually be an issue with how the service is configured in nixos. I'll put this on hold and ask there while linking to this issue.

<!-- gh-comment-id:2537771824 --> @mcmah309 commented on GitHub (Dec 12, 2024): Just ran the command again, here are the logs, everything else is from hours before. ```console Dec 12 03:50:34 nixos ollama[1637]: [GIN] 2024/12/12 - 03:50:34 | 404 | 7.89µs | 127.0.0.1 | GET "/api/create" Dec 12 03:50:34 nixos ollama[1637]: [GIN] 2024/12/12 - 03:50:34 | 404 | 7.41µs | 127.0.0.1 | GET "/favicon.ico" Dec 12 03:51:23 nixos ollama[1637]: [GIN] 2024/12/12 - 03:51:23 | 400 | 1.154548ms | 127.0.0.1 | POST "/api/create" ``` No VM, container, possibly a chroot jail. Testing some things out, I think this may actually be an issue with how the service is configured in nixos. I'll put this on hold and ask there while linking to this issue.
Author
Owner

@rick-github commented on GitHub (Dec 14, 2024):

NixOS sandbox issue.

<!-- gh-comment-id:2543178040 --> @rick-github commented on GitHub (Dec 14, 2024): NixOS sandbox issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#82832