[GH-ISSUE #9945] Error: mkdir .ollama/models: permission denied #68567

Closed
opened 2026-05-04 14:27:56 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @icf20 on GitHub (Mar 22, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9945

[Unit]
Description=Ollama Service
Wants=network-online.target
After=network.target network-online.target

[Service]
Environment="GIN_MODE=release" "HOME=/home/user/" "OLLAMA_MODELS=.ollama/models/"
Environment="CUDA_VISIBLE_DEVICES=0"
User=user
Group=ollama
Restart=on-failure
RestartSec=3
Type=simple
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes

[Install]
WantedBy=multi-user.target

Error: mkdir /home/user: permission denied
: Main process exited, code=exited, status=1/FAILURE
: ollama.service: Failed with result 'exit-code'.

why?

Originally created by @icf20 on GitHub (Mar 22, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9945 ``` [Unit] Description=Ollama Service Wants=network-online.target After=network.target network-online.target [Service] Environment="GIN_MODE=release" "HOME=/home/user/" "OLLAMA_MODELS=.ollama/models/" Environment="CUDA_VISIBLE_DEVICES=0" User=user Group=ollama Restart=on-failure RestartSec=3 Type=simple PrivateTmp=yes ProtectSystem=full ProtectHome=yes [Install] WantedBy=multi-user.target ``` ``` Error: mkdir /home/user: permission denied : Main process exited, code=exited, status=1/FAILURE : ollama.service: Failed with result 'exit-code'. ``` why?
Author
Owner

@icf20 commented on GitHub (Mar 22, 2025):

f my life WorkingDirectory=/home/user/.ollama need to be set ....

<!-- gh-comment-id:2745382282 --> @icf20 commented on GitHub (Mar 22, 2025): f my life WorkingDirectory=/home/user/.ollama need to be set ....
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68567