[GH-ISSUE #9143] Ollama fails because it is not part of the vglusers group #52459

Open
opened 2026-04-28 23:24:16 -05:00 by GiteaMirror · 8 comments
Owner

Originally created by @songzijiang on GitHub (Feb 15, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9143

What is the issue?

I can use the GPUs correct before I reinstall the Nvidia driver. Now, the nvidia-smi and nvcc -V is right

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
Sun Feb 16 02:33:34 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.86.16              Driver Version: 570.86.16      CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 6000 Ada Gene...    Off |   00000000:21:00.0 Off |                  Off |
| 30%   39C    P0             63W /  300W |       1MiB /  49140MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA RTX 6000 Ada Gene...    Off |   00000000:41:00.0 Off |                  Off |
| 30%   41C    P0             62W /  300W |       1MiB /  49140MiB |      2%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   2  NVIDIA RTX 6000 Ada Gene...    Off |   00000000:81:00.0 Off |                  Off |
| 30%   36C    P0             67W /  300W |       1MiB /  49140MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   3  NVIDIA RTX 6000 Ada Gene...    Off |   00000000:A1:00.0 Off |                  Off |
| 30%   35C    P0             57W /  300W |       1MiB /  49140MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

and the log of ollama is

Feb 16 02:27:36 sms-ubuntu systemd[1]: Started Ollama Service.
Feb 16 02:27:36 sms-ubuntu ollama[179286]: 2025/02/16 02:27:36 routes.go:1186: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVE>
Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.964+08:00 level=INFO source=images.go:432 msg="total blobs: 11"
Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.965+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0"
Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.965+08:00 level=INFO source=routes.go:1237 msg="Listening on 127.0.0.1:11434 (version 0.5.11)"
Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.966+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs"
Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.001+08:00 level=INFO source=gpu.go:602 msg="no nvidia devices detected by library /usr/lib/x86_64-linux-gnu/l>
Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.011+08:00 level=INFO source=gpu.go:377 msg="no compatible GPUs were discovered"
Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.011+08:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=cpu variant="" compute="" drive>
Feb 16 02:27:58 sms-ubuntu ollama[179286]: [GIN] 2025/02/16 - 02:27:58 | 200 |     408.159µs |       127.0.0.1 | HEAD     "/"
Feb 16 02:27:58 sms-ubuntu ollama[179286]: [GIN] 2025/02/16 - 02:27:58 | 200 |   13.803036ms |       127.0.0.1 | POST     "/api/show"
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.013+08:00 level=INFO source=server.go:100 msg="system memory" total="1511.5 GiB" free="1475.6 GiB" free_swap=>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.013+08:00 level=INFO source=memory.go:356 msg="offload to cpu" layers.requested=-1 layers.model=29 layers.off>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=server.go:380 msg="starting llama server" cmd="/usr/bin/ollama runner --model /us>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=sched.go:449 msg="loaded runners" count=1
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=server.go:557 msg="waiting for llama runner to start responding"
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.015+08:00 level=INFO source=server.go:591 msg="waiting for server to become available" status="llm server err>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:936 msg="starting go runner"
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:937 msg=system info="CPU : LLAMAFILE = 1 | CPU : LLAMAFILE = 1 | cgo(gc>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:995 msg="Server listening on 127.0.0.1:42679"
Feb 16 02:27:59 sms-ubuntu ollama[179286]: load_backend: loaded CPU backend from /usr/lib/ollama/libggml-cpu-icelake.so
Feb 16 02:27:59 sms-ubuntu ollama[179286]: llama_model_loader: loaded meta data with 26 key-value pairs and 339 tensors from /usr/share/ollama/.ollama/models/blobs/sha256-96c415>
Feb 16 02:27:59 sms-ubuntu ollama[179286]: llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.

What's wrong with my machine?

Relevant log output


OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

0.5.11

Originally created by @songzijiang on GitHub (Feb 15, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9143 ### What is the issue? I can use the GPUs correct before I reinstall the Nvidia driver. Now, the nvidia-smi and nvcc -V is right ``` nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0 ``` ``` Sun Feb 16 02:33:34 2025 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 570.86.16 Driver Version: 570.86.16 CUDA Version: 12.8 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA RTX 6000 Ada Gene... Off | 00000000:21:00.0 Off | Off | | 30% 39C P0 63W / 300W | 1MiB / 49140MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 1 NVIDIA RTX 6000 Ada Gene... Off | 00000000:41:00.0 Off | Off | | 30% 41C P0 62W / 300W | 1MiB / 49140MiB | 2% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 2 NVIDIA RTX 6000 Ada Gene... Off | 00000000:81:00.0 Off | Off | | 30% 36C P0 67W / 300W | 1MiB / 49140MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 3 NVIDIA RTX 6000 Ada Gene... Off | 00000000:A1:00.0 Off | Off | | 30% 35C P0 57W / 300W | 1MiB / 49140MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | No running processes found | +-----------------------------------------------------------------------------------------+ ``` and the log of ollama is ``` Feb 16 02:27:36 sms-ubuntu systemd[1]: Started Ollama Service. Feb 16 02:27:36 sms-ubuntu ollama[179286]: 2025/02/16 02:27:36 routes.go:1186: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVE> Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.964+08:00 level=INFO source=images.go:432 msg="total blobs: 11" Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.965+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0" Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.965+08:00 level=INFO source=routes.go:1237 msg="Listening on 127.0.0.1:11434 (version 0.5.11)" Feb 16 02:27:36 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:36.966+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs" Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.001+08:00 level=INFO source=gpu.go:602 msg="no nvidia devices detected by library /usr/lib/x86_64-linux-gnu/l> Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.011+08:00 level=INFO source=gpu.go:377 msg="no compatible GPUs were discovered" Feb 16 02:27:37 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:37.011+08:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=cpu variant="" compute="" drive> Feb 16 02:27:58 sms-ubuntu ollama[179286]: [GIN] 2025/02/16 - 02:27:58 | 200 | 408.159µs | 127.0.0.1 | HEAD "/" Feb 16 02:27:58 sms-ubuntu ollama[179286]: [GIN] 2025/02/16 - 02:27:58 | 200 | 13.803036ms | 127.0.0.1 | POST "/api/show" Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.013+08:00 level=INFO source=server.go:100 msg="system memory" total="1511.5 GiB" free="1475.6 GiB" free_swap=> Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.013+08:00 level=INFO source=memory.go:356 msg="offload to cpu" layers.requested=-1 layers.model=29 layers.off> Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=server.go:380 msg="starting llama server" cmd="/usr/bin/ollama runner --model /us> Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=sched.go:449 msg="loaded runners" count=1 Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.014+08:00 level=INFO source=server.go:557 msg="waiting for llama runner to start responding" Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.015+08:00 level=INFO source=server.go:591 msg="waiting for server to become available" status="llm server err> Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:936 msg="starting go runner" Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:937 msg=system info="CPU : LLAMAFILE = 1 | CPU : LLAMAFILE = 1 | cgo(gc> Feb 16 02:27:59 sms-ubuntu ollama[179286]: time=2025-02-16T02:27:59.051+08:00 level=INFO source=runner.go:995 msg="Server listening on 127.0.0.1:42679" Feb 16 02:27:59 sms-ubuntu ollama[179286]: load_backend: loaded CPU backend from /usr/lib/ollama/libggml-cpu-icelake.so Feb 16 02:27:59 sms-ubuntu ollama[179286]: llama_model_loader: loaded meta data with 26 key-value pairs and 339 tensors from /usr/share/ollama/.ollama/models/blobs/sha256-96c415> Feb 16 02:27:59 sms-ubuntu ollama[179286]: llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output. ``` What's wrong with my machine? ### Relevant log output ```shell ``` ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version 0.5.11
GiteaMirror added the bug label 2026-04-28 23:24:16 -05:00
Author
Owner

@songzijiang commented on GitHub (Feb 15, 2025):

I used ollama as a service and the service config is

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

[Service]
ExecStart=/usr/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_ORIGINS=*"

[Install]
WantedBy=default.target
<!-- gh-comment-id:2661040961 --> @songzijiang commented on GitHub (Feb 15, 2025): I used ollama as a service and the service config is ``` [Unit] Description=Ollama Service After=network-online.target [Service] ExecStart=/usr/bin/ollama serve User=ollama Group=ollama Restart=always RestartSec=3 Environment="OLLAMA_HOST=0.0.0.0" Environment="OLLAMA_ORIGINS=*" [Install] WantedBy=default.target ```
Author
Owner

@jmorganca commented on GitHub (Feb 15, 2025):

Hi there, does restarting your machine help? Sometimes when reinstalling the drivers there are issues discovering GPUs. Sorry about this

<!-- gh-comment-id:2661055685 --> @jmorganca commented on GitHub (Feb 15, 2025): Hi there, does restarting your machine help? Sometimes when reinstalling the drivers there are issues discovering GPUs. Sorry about this
Author
Owner

@songzijiang commented on GitHub (Feb 15, 2025):

Hi there, does restarting your machine help? Sometimes when reinstalling the drivers there are issues discovering GPUs. Sorry about this

Yes, I have rebooted the machine, and still can't use gpus. It is so confused. Maybe some environment is wrong leads to this results?

<!-- gh-comment-id:2661056740 --> @songzijiang commented on GitHub (Feb 15, 2025): > Hi there, does restarting your machine help? Sometimes when reinstalling the drivers there are issues discovering GPUs. Sorry about this Yes, I have rebooted the machine, and still can't use gpus. It is so confused. Maybe some environment is wrong leads to this results?
Author
Owner

@jmorganca commented on GitHub (Feb 15, 2025):

Sorry about that – do you have the full logs – journalctl by default will cut off horizontally? journalctl -u ollama --no-pager should do it. Thanks so much

<!-- gh-comment-id:2661087466 --> @jmorganca commented on GitHub (Feb 15, 2025): Sorry about that – do you have the full logs – `journalctl` by default will cut off horizontally? `journalctl -u ollama --no-pager` should do it. Thanks so much
Author
Owner

@songzijiang commented on GitHub (Feb 16, 2025):

Sorry about that – do you have the full logs – journalctl by default will cut off horizontally? journalctl -u ollama --no-pager should do it. Thanks so much

Sure, here is the full log

Feb 16 13:10:05 sms-ubuntu systemd[1]: Started Ollama Service.
Feb 16 13:10:05 sms-ubuntu ollama[435235]: 2025/02/16 13:10:05 routes.go:1186: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/usr/share/ollama/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[* http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=images.go:432 msg="total blobs: 11"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=routes.go:1237 msg="Listening on [::]:11434 (version 0.5.11)"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.901+08:00 level=INFO source=gpu.go:602 msg="no nvidia devices detected by library /usr/lib/x86_64-linux-gnu/libcuda.so.570.86.16"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.912+08:00 level=INFO source=gpu.go:377 msg="no compatible GPUs were discovered"
Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.912+08:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=cpu variant="" compute="" driver=0.0 name="" total="1511.5 GiB" available="1459.0 GiB"
<!-- gh-comment-id:2661250314 --> @songzijiang commented on GitHub (Feb 16, 2025): > Sorry about that – do you have the full logs – `journalctl` by default will cut off horizontally? `journalctl -u ollama --no-pager` should do it. Thanks so much Sure, here is the full log ``` Feb 16 13:10:05 sms-ubuntu systemd[1]: Started Ollama Service. Feb 16 13:10:05 sms-ubuntu ollama[435235]: 2025/02/16 13:10:05 routes.go:1186: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/usr/share/ollama/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[* http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=images.go:432 msg="total blobs: 11" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=images.go:439 msg="total unused blobs removed: 0" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=routes.go:1237 msg="Listening on [::]:11434 (version 0.5.11)" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.883+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.901+08:00 level=INFO source=gpu.go:602 msg="no nvidia devices detected by library /usr/lib/x86_64-linux-gnu/libcuda.so.570.86.16" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.912+08:00 level=INFO source=gpu.go:377 msg="no compatible GPUs were discovered" Feb 16 13:10:05 sms-ubuntu ollama[435235]: time=2025-02-16T13:10:05.912+08:00 level=INFO source=types.go:130 msg="inference compute" id=0 library=cpu variant="" compute="" driver=0.0 name="" total="1511.5 GiB" available="1459.0 GiB" ```
Author
Owner

@songzijiang commented on GitHub (Feb 16, 2025):

Sorry about that – do you have the full logs – journalctl by default will cut off horizontally? journalctl -u ollama --no-pager should do it. Thanks so much

The problem solved by reinstalling ollama, although I don`t how it happened, I will close the issue, thank you so much.

<!-- gh-comment-id:2661253543 --> @songzijiang commented on GitHub (Feb 16, 2025): > Sorry about that – do you have the full logs – `journalctl` by default will cut off horizontally? `journalctl -u ollama --no-pager` should do it. Thanks so much The problem solved by reinstalling ollama, although I don`t how it happened, I will close the issue, thank you so much.
Author
Owner

@songzijiang commented on GitHub (Feb 16, 2025):

Sorry, I made a mistake, reinstalling ollama didn't sloved the problem. However, I found run ollama serve can use GPU normally and use the service ollama start can't use GPU. I guess the user ollama do not have the permission. So I test the command sudo -H -u ollama bash -c 'nvidia-smi' and return the Failed to initialize NVML: Insufficient Permissions

So I add ollama into vglusers groups by sudo usermod -a -G vglusers ollama, and everything is ok.
This may a bug of ollama, and you can check if some steps are missing of installing ollama.

<!-- gh-comment-id:2661283309 --> @songzijiang commented on GitHub (Feb 16, 2025): Sorry, I made a mistake, reinstalling ollama didn't sloved the problem. However, I found run `ollama serve` can use GPU normally and use the `service ollama start` can't use GPU. I guess the user `ollama` do not have the permission. So I test the command `sudo -H -u ollama bash -c 'nvidia-smi'` and return the `Failed to initialize NVML: Insufficient Permissions` So I add ollama into vglusers groups by `sudo usermod -a -G vglusers ollama`, and everything is ok. This may a bug of ollama, and you can check if some steps are missing of installing ollama.
Author
Owner

@jmorganca commented on GitHub (Feb 16, 2025):

Awesome! I'll re-open this just so we can mark it as fixed once the installer is updated. Really appreciate the help hunting this down @songzijiang

<!-- gh-comment-id:2661576220 --> @jmorganca commented on GitHub (Feb 16, 2025): Awesome! I'll re-open this just so we can mark it as fixed once the installer is updated. Really appreciate the help hunting this down @songzijiang
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52459