systemd service fails to start #6100

Closed
opened 2025-11-12 13:21:28 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @hczs on GitHub (Feb 25, 2025).

System info:
OS: Ubuntu 20.04.3 LTS x86_64
Kernel: 5.15.0-84-generic

sudo mkdir /var/lib/ollama
sudo chown ollama:ollama /var/lib/ollama

I execute the command, but not work. This is log

2月 25 17:49:00 boco-All-Series ollama[3156758]: 2025/02/25 17:49:00 routes.go:1186: INFO server config env="map[CUDA_VISIB>
2月 25 17:49:00 boco-All-Series ollama[3156758]: Error: mkdir /mnt/raid_disk/ollama: permission denied
2月 25 17:49:00 boco-All-Series systemd[1]: ollama.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit ollama.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
2月 25 17:49:00 boco-All-Series systemd[1]: ollama.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit ollama.service has entered the 'failed' state with result 'exit-code'.
(base) boco@boco-All-Series:/etc/systemd/system$ ls -ld /mnt /mnt/raid_disk /mnt/raid_disk/ollama/
drwxr-xr-x  3 root   root   4096 Feb 17 11:24 /mnt
drwx----w- 35 boco   boco   4096 Feb 17 16:21 /mnt/raid_disk
drwxrwxrwx  3 ollama ollama 4096 Feb 17 16:27 /mnt/raid_disk/ollama/

Originally posted by @hczs in #9148

Originally created by @hczs on GitHub (Feb 25, 2025). System info: OS: Ubuntu 20.04.3 LTS x86_64 Kernel: 5.15.0-84-generic > ``` > sudo mkdir /var/lib/ollama > sudo chown ollama:ollama /var/lib/ollama > ``` > > I execute the command, but not work. This is log > ```log > 2月 25 17:49:00 boco-All-Series ollama[3156758]: 2025/02/25 17:49:00 routes.go:1186: INFO server config env="map[CUDA_VISIB> > 2月 25 17:49:00 boco-All-Series ollama[3156758]: Error: mkdir /mnt/raid_disk/ollama: permission denied > 2月 25 17:49:00 boco-All-Series systemd[1]: ollama.service: Main process exited, code=exited, status=1/FAILURE > -- Subject: Unit process exited > -- Defined-By: systemd > -- Support: http://www.ubuntu.com/support > -- > -- An ExecStart= process belonging to unit ollama.service has exited. > -- > -- The process' exit code is 'exited' and its exit status is 1. > 2月 25 17:49:00 boco-All-Series systemd[1]: ollama.service: Failed with result 'exit-code'. > -- Subject: Unit failed > -- Defined-By: systemd > -- Support: http://www.ubuntu.com/support > -- > -- The unit ollama.service has entered the 'failed' state with result 'exit-code'. > ``` > > ```shell > (base) boco@boco-All-Series:/etc/systemd/system$ ls -ld /mnt /mnt/raid_disk /mnt/raid_disk/ollama/ > drwxr-xr-x 3 root root 4096 Feb 17 11:24 /mnt > drwx----w- 35 boco boco 4096 Feb 17 16:21 /mnt/raid_disk > drwxrwxrwx 3 ollama ollama 4096 Feb 17 16:27 /mnt/raid_disk/ollama/ > ``` _Originally posted by @hczs in [#9148](https://github.com/ollama/ollama/issues/9148#issuecomment-2681382919)_
Author
Owner

@rick-github commented on GitHub (Feb 25, 2025):

chmod +x /mnt/raid_disk
@rick-github commented on GitHub (Feb 25, 2025): ``` chmod +x /mnt/raid_disk ```
Author
Owner

@hczs commented on GitHub (Feb 25, 2025):

chmod +x /mnt/raid_disk

Thanks!!

@hczs commented on GitHub (Feb 25, 2025): > ``` > chmod +x /mnt/raid_disk > ``` Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#6100
No description provided.