[Support]: Unable to #11410
-
Describe the problem you are havingFrigate is creating folders when I do But he is not populating those folders with I see the actual folders created
I tried various locations for the folder, and the same thing always happens. I am trying to migrate from a Proxmox VM to the Asustor to use its quick sync encoder and free VRAM on my main rig for other inference functions. VersionLatest tag in docker Frigate config fileobjects:
track:
- person
detect:
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
max_disappeared: 50
detectors:
coral:
type: edgetpu
device: usb
database:
path: /config/database/frigate.db
mqtt:
# Required: host name
host: 192.168.0.15
# Optional: port (default: shown below)
port: 1883
# Optional: topic prefix (default: shown below)
# WARNING: must be unique if you are running multiple instances
topic_prefix: frigate
# Optional: client id (default: shown below)
# WARNING: must be unique if you are running multiple instances
client_id: frigate
# Optional: user
user: mosquitto
# Optional: password
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.
# eg. password: '{FRIGATE_MQTT_PASSWORD}'
password: 'pwd'
# Optional: interval in seconds for publishing stats (default: shown below)
stats_interval: 60
ffmpeg:
hwaccel_args: preset-nvidia-h264
go2rtc:
streams:
front_door_camera_sub:
- 'ffmpeg:rtmp://192.168.0.210/bcs/channel0_sub.bcs?channel=1&stream=1&user=admin&password=pwd#video=h264#audio=opus#hardware'
front_door_camera_main:
- 'ffmpeg:rtmp://192.168.0.210/bcs/channel0_main.bcs?channel=1&stream=1&user=admin&password=pwd#video=h264#audio=opus#hardware'
patio_camera:
- rtsp://192.168.50.10:554/live/main
patio_camera_sub:
- rtsp://192.168.50.10:554/live/sub
faceshot_camera:
- 'ffmpeg:rtsp://admin:[email protected]:8554/live0#video=h264#rotate=90#hardware'
faceshot_camera_sub:
- 'ffmpeg:rtsp://admin:[email protected]:8554/live1#video=h264#rotate=90#hardware'
back_door_camera:
- 'ffmpeg:rtsp://192.168.50.5:8554/CH001.sdp#video=h264#rotate=90#hardware'
back_door_camera_sub:
- 'ffmpeg:rtsp://192.168.50.5:8554/CH002.sdp#video=h264#rotate=90#hardware'
cameras:
patio_camera:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 1000
ffmpeg:
input_args: preset-rtsp-restream
inputs:
- path: rtsp://127.0.0.1:8554/patio_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/patio_camera_sub
roles:
- detect
output_args:
rtmp: -c copy -f flv
detect:
width: 704
height: 576
fps: 5
# zones:
# entrance:
# coordinates: 2560,1920,2560,0,1661,0,1410,359,950,442,0,1253,0,1920
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: false
# required_zones:
# Optional: height to resize the snapshot to (default: original size)
# Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
record:
# Optional: Enable recording (default: shown below)
enabled: true
# Optional: Number of days to retain (default: shown below)
#retain_days: 60
# Optional: Event recording settings
events:
# Optional: Enable event recording retention settings (default: shown below)
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event unless retain_days under record is > 0.
#max_seconds: 60000
# Optional: Number of seconds before the event to include in the event (default: shown below)
pre_capture: 60
# Optional: Number of seconds after the event to include in the event (default: shown below)
post_capture: 60
# Optional: Objects to save event for. (default: all tracked objects)
objects:
- person
# Optional: Restrict event to objects that entered any of the listed zones (default: no required zones)
# required_zones: ["entrance"]
# Optional: Retention settings for event
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
front_door_camera:
ffmpeg:
hwaccel_args: preset-nvidia-h264
input_args: preset-rtsp-restream
inputs:
- path: rtsp://127.0.0.1:8554/front_door_camera_main
roles:
- record
- path: rtsp://127.0.0.1:8554/front_door_camera_sub
roles:
- detect
detect:
width: 640
height: 480
fps: 5
live:
stream_name: front_door_camera_sub
record:
# Optional: Enable recording (default: shown below)
enabled: true
# Optional: Number of days to retain (default: shown below)
#retain_days: 60
# Optional: Event recording settings
events:
# Optional: Enable event recording retention settings (default: shown below)
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event unless retain_days under record is > 0.
# max_seconds: 60000
# Optional: Number of seconds before the event to include in the event (default: shown below)
pre_capture: 2
# Optional: Number of seconds after the event to include in the event (default: shown below)
post_capture: 10
# Optional: Objects to save event for. (default: all tracked objects)
objects:
- person
# Optional: Restrict event to objects that entered any of the listed zones (default: no required zones)
# required_zones: ["entrance"]
# Optional: Retention settings for event
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
objects:
filters:
person:
mask:
- 0,405,0,267,0,0,464,0,466,121,382,135,197,337,171,370,153,397,137,413,96,480,0,480,0,448
back_door_camera:
ffmpeg:
input_args: preset-rtsp-restream
inputs:
- path: rtsp://127.0.0.1:8554/back_door_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/back_door_camera_sub
roles:
- detect
detect:
width: 252
height: 448
fps: 5
snapshots:
enabled: true
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: false
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: true
# Optional: crop the snapshot (default: shown below)
crop: false
required_zones: []
# Optional: height to resize the snapshot to (default: original size)
# Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
record:
# Optional: Enable recording (default: shown below)
enabled: true
# Optional: Number of days to retain (default: shown below)
#retain_days: 0
# Optional: Event recording settings
events:
# Optional: Enable event recording retention settings (default: shown below)
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event unless retain_days under record is > 0.
#max_seconds: 60000
# Optional: Number of seconds before the event to include in the event (default: shown below)
pre_capture: 10
# Optional: Number of seconds after the event to include in the event (default: shown below)
post_capture: 10
# Optional: Objects to save event for. (default: all tracked objects)
objects:
- person
# Optional: Restrict event to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Retention settings for event
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
#objects:
objects:
filters:
person:
mask:
- 0,402,0,0,23,0,75,190
faceshot_camera:
ffmpeg:
input_args: preset-rtsp-restream
inputs:
- path: rtsp://127.0.0.1:8554/faceshot_camera
roles:
- record
- path: rtsp://127.0.0.1:8554/faceshot_camera_sub
roles:
- detect
detect:
width: 1080
height: 1920
fps: 5
snapshots:
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: print a timestamp on the snapshots (default: shown below)
timestamp: False
# Optional: draw bounding box on the snapshots (default: shown below)
bounding_box: True
# Optional: crop the snapshot (default: shown below)
crop: False
required_zones: []
# Optional: height to resize the snapshot to (default: original size)
# Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
record:
# Optional: Enable recording (default: shown below)
enabled: true
# Optional: Number of days to retain (default: shown below)
#retain_days: 60
# Optional: Event recording settings
events:
# Optional: Enable event recording retention settings (default: shown below)
# Optional: Maximum length of time to retain video during long events. (default: shown below)
# NOTE: If an object is being tracked for longer than this amount of time, the cache
# will begin to expire and the resulting clip will be the last x seconds of the event unless retain_days under record is > 0.
# max_seconds: 60000
# Optional: Number of seconds before the event to include in the event (default: shown below)
pre_capture: 10
# Optional: Number of seconds after the event to include in the event (default: shown below)
post_capture: 10
# Optional: Objects to save event for. (default: all tracked objects)
objects:
- person
# Optional: Restrict event to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Retention settings for event
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 60
#objects:
objects:
filters:
person:
min_area: 20000
zones:
facecam_zone:
coordinates: 1296,2304,1296,0,0,0,0,2304 Relevant log outputs6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2024-05-17 17:33:25.212275321 [INFO] Preparing Frigate...
2024-05-17 17:33:25.212395197 [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2024-05-17 17:33:26.350293525 [INFO] Preparing new go2rtc config...
2024-05-17 17:33:26.351207132 [INFO] Starting Frigate...
2024-05-17 17:33:29.936943972 2024/05/17 17:33:29 [error] 146#146: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:33:34.996637791 2024/05/17 17:33:34 [error] 148#148: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:33:35.190729567 [INFO] Starting go2rtc healthcheck service...
2024-05-17 17:33:35.272650033 [INFO] Starting go2rtc...
2024-05-17 17:33:35.497595659 17:33:35.497 INF go2rtc version 1.8.4 linux/amd64
2024-05-17 17:33:35.498561596 17:33:35.498 INF [api] listen addr=:1984
2024-05-17 17:33:35.498735910 17:33:35.498 INF [rtsp] listen addr=:8554
2024-05-17 17:33:35.499290712 17:33:35.499 INF [webrtc] listen addr=:8555
2024-05-17 17:33:40.057272749 2024/05/17 17:33:40 [error] 147#147: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:33:45.118645398 2024/05/17 17:33:45 [error] 150#150: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:33:50.475911551 2024/05/17 17:33:50 [error] 146#146: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:33:55.533928726 2024/05/17 17:33:55 [error] 146#146: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:34:00.597031307 2024/05/17 17:34:00 [error] 146#146: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", upstream: "http://127.0.0.1:5001version", host: "127.0.0.1:5000"
2024-05-17 17:34:01.932819241 [2024-05-17 17:34:01] frigate.app INFO : Starting Frigate (0.13.2-6476f8a)
2024-05-17 17:34:01.933234459 [2024-05-17 17:34:01] frigate.app INFO : Creating directory: /media/frigate/recordings
2024-05-17 17:34:01.933383314 [2024-05-17 17:34:01] frigate.app INFO : Creating directory: /media/frigate/clips
2024-05-17 17:34:01.933942561 [2024-05-17 17:34:01] frigate.app INFO : Creating directory: /media/frigate/exports
2024-05-17 17:34:02.313565359 unable to open database file
2024-05-17 17:34:02.313608924 [2024-05-17 17:34:02] peewee_migrate.logs INFO : Starting migrations
2024-05-17 17:34:03.948181562 [INFO] Service Frigate exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service go2rtc-healthcheck: stopping
2024-05-17 17:34:04.258254376 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-05-17 17:34:04.332627231 [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service frigate successfully stopped
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
s6-rc: info: service nginx-log successfully stopped
2024-05-17 17:34:04.341446154 exit with signal: terminated
s6-rc: info: service frigate-log successfully stopped
2024-05-17 17:34:04.350216402 [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped FFprobe output from your cameraThe thing won't start... Frigate statsNo response Operating systemOther Linux Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelGeovision,Reolink,BrillCam,Revotech Any other information that may be helpfulDocker-compose:
The host is an Asustor AS6404T-29BF |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I'd suggest just storing the DB in /config |
Beta Was this translation helpful? Give feedback.
-
How? |
Beta Was this translation helpful? Give feedback.
-
This failing because you specified an override for the database location in a folder that doesn't exist. database:
path: /config/database/frigate.db Either remove it from your config or create the folder inside the config directory on the host before starting frigate. |
Beta Was this translation helpful? Give feedback.
-
That worked! Thanks Blake! I now encounter an issue with
on my NAS, I will open another ticket if I cannot resolve it. |
Beta Was this translation helpful? Give feedback.
This failing because you specified an override for the database location in a folder that doesn't exist.
Either remove it from your config or create the folder inside the config directory on the host before starting frigate.