Docker install w/ hwaccel not working

I've been trying to get immich working on a fresh Ubuntu install for the better part of today and I can't get past this error. When I try attempt docker compose up -d it returns the error yaml: line 7: did not find expected key. It will launch if I use the bash script and don't try to activate hwaccel, but once I comment the lines out for the docker-compose I get errors.
22 Replies
bo0tzz
bo0tzz2y ago
Do you have the hwaccel yaml file in the folder as well?
mariomare22
mariomare222y ago
did you mange to solve it?
Alex Tran
Alex Tran2y ago
pretty sure this is the indentation issue
mariomare22
mariomare222y ago
Hey Alex, I tried everything but cannot manage to make it work 😐
Alex Tran
Alex Tran2y ago
what did you try and what is the error message and can you share the content of the file?
mariomare22
mariomare222y ago
I am using portainer https://pastebin.com/kYMhu3vu this is the compose file plus in the ui-administration I have enabled the nvidia transcoding
Pastebin
version: "3.8"networks: caddy_proxy_local: external: true na...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Alex Tran
Alex Tran2y ago
and what is the errormessage are you seeing?
mariomare22
mariomare222y ago
no error message, i just think it's not being used
❯ nvidia-smi
Wed Nov 15 17:48:43 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 Quadro M2000 On | 00000000:81:00.0 On | N/A |
| 57% 48C P0 25W / 75W | 248MiB / 4096MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2035 G /usr/lib/xorg/Xorg 74MiB |
| 0 N/A N/A 3283583 C ffmpeg 84MiB |
| 0 N/A N/A 3283586 C ffmpeg 84MiB |
+-----------------------------------------------------------------------------+
❯ nvidia-smi
Wed Nov 15 17:48:43 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 Quadro M2000 On | 00000000:81:00.0 On | N/A |
| 57% 48C P0 25W / 75W | 248MiB / 4096MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2035 G /usr/lib/xorg/Xorg 74MiB |
| 0 N/A N/A 3283583 C ffmpeg 84MiB |
| 0 N/A N/A 3283586 C ffmpeg 84MiB |
+-----------------------------------------------------------------------------+
these 2 ffmpeg are from frigate
Alex Tran
Alex Tran2y ago
Did you enable it in the settings?
Alex Tran
Alex Tran2y ago
No description
mariomare22
mariomare222y ago
indeed I did
Alex Tran
Alex Tran2y ago
Can you set LOG_LEVEL=debug in the .env file and restart the stack? then try upload a video
mariomare22
mariomare222y ago
what can I video u?
Alex Tran
Alex Tran2y ago
? I mean upload a video to your instance so that it will kick off the encoding process
mariomare22
mariomare222y ago
this is the log of microservices container
No description
mariomare22
mariomare222y ago
ah ok so I understood correctly I did that
Alex Tran
Alex Tran2y ago
and what indicate that the GPU wasn't used?
mariomare22
mariomare222y ago
alright! it's working now
No description
mariomare22
mariomare222y ago
+-----------------------------------------------------------------------------+
Wed Nov 15 18:44:16 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 Quadro M2000 On | 00000000:81:00.0 On | N/A |
| 57% 48C P0 25W / 75W | 388MiB / 4096MiB | 6% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2035 G /usr/lib/xorg/Xorg 76MiB |
| 0 N/A N/A 4009740 C ffmpeg 84MiB |
| 0 N/A N/A 4009743 C ffmpeg 84MiB |
| 0 N/A N/A 4058926 C ffmpeg 138MiB |
+-----------------------------------------------------------------------------+
+-----------------------------------------------------------------------------+
Wed Nov 15 18:44:16 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 Quadro M2000 On | 00000000:81:00.0 On | N/A |
| 57% 48C P0 25W / 75W | 388MiB / 4096MiB | 6% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2035 G /usr/lib/xorg/Xorg 76MiB |
| 0 N/A N/A 4009740 C ffmpeg 84MiB |
| 0 N/A N/A 4009743 C ffmpeg 84MiB |
| 0 N/A N/A 4058926 C ffmpeg 138MiB |
+-----------------------------------------------------------------------------+
what about that error?
Alex Tran
Alex Tran2y ago
that error is unrelated to this issue. You will have to check if there is any issue with your machine-learning container
mariomare22
mariomare222y ago
Ok encoding working like a charm!! thank you. this is from ML container:
[11/15/23 18:37:31] INFO Loading facial recognition model 'buffalo_l'
[11/15/23 18:37:31] INFO Loading clip model 'ViT-B-32__openai'
Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.
Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.
/opt/venv/lib/python3.11/site-packages/transformers/models/convnext/feature_extraction_convnext.py:28: FutureWarning: The class ConvNextFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use ConvNextImageProcessor instead.
warnings.warn(
[11/15/23 18:37:42] INFO Loading clip model 'ViT-B-32__openai'
[11/15/23 18:37:31] INFO Loading facial recognition model 'buffalo_l'
[11/15/23 18:37:31] INFO Loading clip model 'ViT-B-32__openai'
Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.
Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration.
/opt/venv/lib/python3.11/site-packages/transformers/models/convnext/feature_extraction_convnext.py:28: FutureWarning: The class ConvNextFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use ConvNextImageProcessor instead.
warnings.warn(
[11/15/23 18:37:42] INFO Loading clip model 'ViT-B-32__openai'
Thank you a lot Alex!!!

Did you find this page helpful?