Commit 9702d43
committed
ollama: UID 815 (was 818, collided with searxng) + loopback IPv4 bind
Two compounding bugs both broke ollama on the operator's 2026-05-11
install:
1. automation/lib/globals.sh + globals.ps1 hardcoded MIOS_OLLAMA_UID
to 818. usr/lib/sysusers.d/50-mios-services.conf reserves
mios-ollama at 815 (818 is mios-searxng). The renderer exported
MIOS_OLLAMA_UID=818 into 15-render-quadlets.sh's env, which then
substituted the Quadlet's `User=${MIOS_OLLAMA_UID:-815}` template
to literal `User=818`. ollama started as UID 818, host bind-mount
/var/lib/ollama is chowned to UID 815 (mios-ollama per sysusers),
container died with:
Error: could not create directory
mkdir /var/lib/ollama/.ollama: permission denied
2. After fixing UID, ollama bound `*:11434` -- AF_INET6 dual-stack,
not AF_INET. WSL2 NAT-mode localhostForwarding only forwards
AF_INET binds, so Windows-side 127.0.0.1:11434 still TIMED OUT.
Same Go-net.Listen-upgrades-to-dual-stack pattern that hit
mios-forge (gitea) earlier today.
Fix the UID in BOTH globals.sh and globals.ps1 so the renderer (bash)
and any PowerShell-side codepath both pick up 815. Switch ollama's
OLLAMA_HOST env to 127.0.0.1:N so Go's net.Listen takes the AF_INET
literal path. Verified live: TcpClient.ConnectAsync 127.0.0.1:11434
returns OK after both fixes.
7/7 MiOS service ports now reachable on Windows-side localhost:
3000 forge / 3030 webui / 8080 ai / 8642 hermes /
8888 searxng / 9090 cockpit / 11434 ollama
LAN-side reach for forge + ollama (the two loopback-only binds) is
the next follow-up -- both need the same socat AF_INET wildcard
bridge to AF_INET6 loopback that webui/ai/hermes/searxng already get
free via their native binds.1 parent 2ea44a3 commit 9702d43
3 files changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
0 commit comments