[HW Accel Support]: Container Not Starting Up With GPU #12329
-
Describe the problem you are havingHello, I am tring to deploy frigate in Portainer using the below yaml. I am getting an error that pertains to the GPU and not sure if its something with the drivers or something with my config. I am using Proxmox LXC, blacklisted the nouveau drivers, installed the latest drivers I could get for my P2000, NVIDIA-Linux-x86_64-550.90.07, this is installed in both my Proxmox host and my LXC. The error: Nvidia drivers: /dev/nvidia-caps: My LXC config: Not sure if I need to add anything else so please ask. VersionStable Frigate config fileui:
use_experimental: false
live_mode: mse
mqtt:
enabled: True
host: ha.home.cigas
port: 1883
topic_prefix: frigate
client_id: frigate
user: mqtt-user
password: !
#ffmpeg:
# hwaccel_args: preset-nvidia-h264
go2rtc:
streams:
backyard:
- rtsp://*:[email protected]:554/cam/realmonitor?channel=1&subtype=0
backyard_sub:
- rtsp://*:[email protected]:554/cam/realmonitor?channel=1&subtype=1
front_porch:
- rtsp://*:[email protected]:554/cam/realmonitor?channel=1&subtype=0#backchannel=0
front_porch_sub:
- rtsp://*:[email protected]:554/cam/realmonitor?channel=1&subtype=1#backchannel=0
timestamp_style:
position: tl
format: '%m/%d/%Y %H:%M:%S'
color:
red: 255
green: 255
blue: 255
thickness: 2
effect: shadow
cameras:
Front_Porch:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/front_porch_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/front_porch
input_args: preset-rtsp-restream
roles:
- record
#hwaccel_args: preset-nvidia-h264
record:
enabled: True
retain:
days: 14
mode: all
events:
retain:
default: 2
mode: active_objects
pre_capture: 5
post_capture: 30
detect:
width: 640
height: 480
fps: 5
objects:
track:
- person
Backyard:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
- path: rtsp://127.0.0.1:8554/backyard_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/backyard
input_args: preset-rtsp-restream
roles:
- record
#hwaccel_args: preset-nvidia-h265
record:
enabled: True
retain:
days: 14
mode: all
events:
retain:
default: 2
mode: active_objects
pre_capture: 5
post_capture: 10
detect:
width: 640
height: 480
fps: 5
objects:
track:
- person
rtmp:
enabled: false
detectors:
coral:
type: edgetpu
device: usb
birdseye:
enabled: true
restream: true
width: 1280
height: 720
quality: 1
mode: objects docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "1047MB"
devices:
- /dev/bus/usb:/dev/bus/usb
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
count: 1
capabilities: [gpu]
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config.yml:/config/config.yml
- /mnt/nvr/frigate/recordings:/media/frigate/recordings
- /mnt/nvr/frigate/clips:/media/frigate/clips
- /opt/frigate/db/frigate.db:/db/frigate.db
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000" # Web GUI
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "***" Relevant log outputNetwork frigate_default Creating Network frigate_default Created Container frigate Creating Container frigate Created Container frigate Starting Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]] FFprobe output from your cameraNone Operating systemProxmox Install methodDocker Compose Network connectionWired Camera make and modelAmcrest Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Missed installing nvidia-container-toolkit, once I did that everything worked fine. No errors in the frigate log that I could find. |
Beta Was this translation helpful? Give feedback.
Missed installing nvidia-container-toolkit, once I did that everything worked fine. No errors in the frigate log that I could find.