[GH-ISSUE #2634] Error: unable to initialize llm library Radeon card detected #27317

Closed
opened 2026-04-22 04:33:23 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @DocMAX on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2634

services:
  ollama:
    image: ollama/ollama:latest
    container_name: ollama
    devices:
      - /dev/dri
      - /dev/kfd
    volumes:
      - data:/root/.ollama
    restart: unless-stopped

volumes:
  data:

Having this docker compose config i get the following error:

Error: unable to initialize llm library Radeon card detected, but permissions not set up properly.  Either run ollama as root, or add you user account to the render group.
time=2024-02-21T12:25:30.862Z level=INFO source=images.go:706 msg="total blobs: 31"
time=2024-02-21T12:25:30.863Z level=INFO source=images.go:713 msg="total unused blobs removed: 0"
time=2024-02-21T12:25:30.864Z level=INFO source=routes.go:1014 msg="Listening on [::]:11434 (version 0.1.25)"
time=2024-02-21T12:25:30.864Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..."
Error: unable to initialize llm library Radeon card detected, but permissions not set up properly.  Either run ollama as root, or add you user account to the render group.
time=2024-02-21T12:25:43.219Z level=INFO source=images.go:706 msg="total blobs: 31"
time=2024-02-21T12:25:43.220Z level=INFO source=images.go:713 msg="total unused blobs removed: 0"
time=2024-02-21T12:25:43.221Z level=INFO source=routes.go:1014 msg="Listening on [::]:11434 (version 0.1.25)"
time=2024-02-21T12:25:43.222Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..."

I wonder how to fix the permission error. Can it be fixed in the docker compose code?

Originally created by @DocMAX on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2634 ``` services: ollama: image: ollama/ollama:latest container_name: ollama devices: - /dev/dri - /dev/kfd volumes: - data:/root/.ollama restart: unless-stopped volumes: data: ``` Having this docker compose config i get the following error: ``` Error: unable to initialize llm library Radeon card detected, but permissions not set up properly. Either run ollama as root, or add you user account to the render group. time=2024-02-21T12:25:30.862Z level=INFO source=images.go:706 msg="total blobs: 31" time=2024-02-21T12:25:30.863Z level=INFO source=images.go:713 msg="total unused blobs removed: 0" time=2024-02-21T12:25:30.864Z level=INFO source=routes.go:1014 msg="Listening on [::]:11434 (version 0.1.25)" time=2024-02-21T12:25:30.864Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..." Error: unable to initialize llm library Radeon card detected, but permissions not set up properly. Either run ollama as root, or add you user account to the render group. time=2024-02-21T12:25:43.219Z level=INFO source=images.go:706 msg="total blobs: 31" time=2024-02-21T12:25:43.220Z level=INFO source=images.go:713 msg="total unused blobs removed: 0" time=2024-02-21T12:25:43.221Z level=INFO source=routes.go:1014 msg="Listening on [::]:11434 (version 0.1.25)" time=2024-02-21T12:25:43.222Z level=INFO source=payload_common.go:107 msg="Extracting dynamic libraries..." ``` I wonder how to fix the permission error. Can it be fixed in the docker compose code?
Author
Owner

@DocMAX commented on GitHub (Feb 21, 2024):

Never mind i had an error in LXC mount options

<!-- gh-comment-id:1956574839 --> @DocMAX commented on GitHub (Feb 21, 2024): Never mind i had an error in LXC mount options
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27317