truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
290 stars 278 forks source link

Immich hardware acceleration fix #2645

Closed sync-by-unito[bot] closed 1 month ago

sync-by-unito[bot] commented 1 month ago

I installed Immich from Truecharts

allocated nvidia gpu

set up and logged into Immich

go to Settings > Hardware Acceleration > Acceleration API

changed from “Disabled” to “NVENC (require NVIDIA GPU)”

go to Jobs > TRANSCODE VIDEOS

checked container logs and found that gpu is not found

logged into Immich shell and typed “nvidia-smi” and “command not found “was the output

The fix was that the gpu was only enabled in the machine learnning container and not the server

scaleGPU:
  {{- range $key, $value := . }}
  - gpu:
      {{ $key }}: {{ $value }}
    targetSelector:
      machinelearning:
        - machinelearning
      server:
        - server
  {{- end -}}
{{- end -}}

modfiying “_configuration.tpl” and adding server fixed the issue