Closed ourhouse7400 closed 2 years ago
Can you please provide your docker compose file?
Also are you sure you have the mqtt correct? The default port is 1883
You shouldn't be specifying the port in the host for mqtt. It has it's own property.
Thanks for the quick replies. I removed the port from the mqtt host and it got stuck here:
rigate | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. frigate | [s6-init] ensuring user provided files have correct perms...exited 0. frigate | [fix-attrs.d] applying ownership & permissions fixes... frigate | [fix-attrs.d] done. frigate | [cont-init.d] executing container initialization scripts... frigate | [cont-init.d] done. frigate | [services.d] starting services frigate | [services.d] done. frigate | [2022-03-23 07:15:14] frigate.app INFO : Starting Frigate (0.10.1-83481af) frigate | Starting migrations frigate | [2022-03-23 07:15:14] peewee_migrate INFO : Starting migrations frigate | There is nothing to migrate frigate | [2022-03-23 07:15:14] peewee_migrate INFO : There is nothing to migrate frigate | [2022-03-23 07:15:14] detector.cpu INFO : Starting detection process: 225 frigate | [2022-03-23 07:15:14] frigate.app INFO : Output process started: 227 frigate | [2022-03-23 07:15:14] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes. frigate | [2022-03-23 07:15:14] ws4py INFO : Using epoll frigate | [2022-03-23 07:15:14] frigate.app INFO : Camera processor started for driveway_camera: 231 frigate | [2022-03-23 07:15:14] frigate.app INFO : Capture process started for driveway_camera: 233 frigate | [2022-03-23 07:15:14] ws4py INFO : Using epoll frigate | [2022-03-23 07:15:14] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:15:14] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:15:14] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:15] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:17] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:21] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:29] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:34] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:15:34] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:15:34] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55e012ca9780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:34] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:15:34] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x55c7416e9740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:34] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:15:34] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:15:34] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:15:34] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:15:34] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:15:44] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:15:44] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:15:44] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x557a314a4780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:44] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:15:44] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x55860e854740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:44] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:15:44] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:15:44] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:15:44] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:15:44] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:15:45] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:15:54] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:15:54] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:15:54] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55e162dc1780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:54] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:15:54] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x5627641d4740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:15:54] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:15:54] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:15:54] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:15:54] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:15:54] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:04] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:04] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:04] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x5632bf83c780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:04] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:04] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x5648423af740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:04] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:04] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:04] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:04] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:04] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:14] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:14] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:14] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55e25b11e780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:14] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:14] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x5626717dd740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:14] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:14] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:14] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:14] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:14] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:17] frigate.mqtt ERROR : Unable to connect to MQTT server: MQTT Not authorized frigate | [2022-03-23 07:16:24] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:24] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:24] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55f99fdc7780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:24] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:24] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x55d040ebc740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:24] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:24] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:24] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:24] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:24] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:34] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:34] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:34] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55859ab44780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:34] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:34] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x56526e9c8740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:34] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:34] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:34] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:34] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:34] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:44] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:44] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:44] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x55fbe654d780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:44] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:44] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x558b88f66740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:44] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:44] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:44] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:44] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:44] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread... frigate | [2022-03-23 07:16:54] watchdog.driveway_camera ERROR : Ffmpeg process crashed unexpectedly for driveway_camera. frigate | [2022-03-23 07:16:54] watchdog.driveway_camera ERROR : The following ffmpeg logs include the last 100 lines prior to exit. frigate | [2022-03-23 07:16:54] ffmpeg.driveway_camera.detect ERROR : [rtsp @ 0x558384546780] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:54] ffmpeg.driveway_camera.detect ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_0: Server returned 404 Not Found frigate | [2022-03-23 07:16:54] ffmpeg.driveway_camera.record_rtmp ERROR : [rtsp @ 0x5613c6052740] method OPTIONS failed: 404 Not Found frigate | [2022-03-23 07:16:54] ffmpeg.driveway_camera.record_rtmp ERROR : rtsp://admin:admin12345$%@192.168.30.10:554/h264Preview_1_01: Server returned 404 Not Found frigate | [2022-03-23 07:16:54] watchdog.driveway_camera INFO : Terminating the existing ffmpeg process... frigate | [2022-03-23 07:16:54] watchdog.driveway_camera INFO : Waiting for ffmpeg to exit gracefully... frigate | [2022-03-23 07:16:54] frigate.video ERROR : driveway_camera: Unable to read frames from ffmpeg process. frigate | [2022-03-23 07:16:54] frigate.video ERROR : driveway_camera: ffmpeg process is not running. exiting capture thread...
I then realized I had used DVR camera URL instead of the IP Cam URL. I corrected that in my config and got stuck here:
Starting frigate ... done
Attaching to frigate
frigate | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
frigate | [s6-init] ensuring user provided files have correct perms...exited 0.
frigate | [fix-attrs.d] applying ownership & permissions fixes...
frigate | [fix-attrs.d] done.
frigate | [cont-init.d] executing container initialization scripts...
frigate | [cont-init.d] done.
frigate | [services.d] starting services
frigate | [services.d] done.
frigate | [2022-03-23 07:19:48] frigate.app INFO : Starting Frigate (0.10.1-83481af)
frigate | Starting migrations
frigate | [2022-03-23 07:19:48] peewee_migrate INFO : Starting migrations
frigate | There is nothing to migrate
frigate | [2022-03-23 07:19:48] peewee_migrate INFO : There is nothing to migrate
frigate | [2022-03-23 07:19:48] detector.cpu INFO : Starting detection process: 225
frigate | [2022-03-23 07:19:48] frigate.app INFO : Output process started: 227
frigate | [2022-03-23 07:19:48] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
frigate | [2022-03-23 07:19:48] ws4py INFO : Using epoll
frigate | [2022-03-23 07:19:48] frigate.app INFO : Camera processor started for driveway_camera: 231
frigate | [2022-03-23 07:19:48] frigate.app INFO : Capture process started for driveway_camera: 233
frigate | [2022-03-23 07:19:48] ws4py INFO : Using epoll
docker-compose is:
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64
shm_size: "64mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/matt/docker-compose/frigate/instruct/frigate.yml:/config/config.yml:ro
- /media/cameradrive:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- 5000:5000
- 1935:1935
environment:
FRIGATE_RTSP_PASSWORD: "password"
I don't see any error messages. What do you mean by "stuck"?
When I ran "docker-compose up" after removing the port from the MQTT host, it just stopped right below the line I sent. The command line "att@Brain:~/docker-compose/frigate$" didn't come back up.
I did just try to web UI and it works though, so I guess I'm good?
I am getting a warning that there is still a process running when I try to close the terminal, so something is a little off.
You need to tell docker-compose to start the containers as a daemon process. docker-compose up -d
Thank you much!
Describe the problem you are having
Thanks for all the work you put into this! I'm admittedly a coding novice, but I've fought through a few invalid config errors to get to an error I can't fix. I'm using the MQTT broker add on to Home Assistant and believe I have that set up correctly. When I execute "sudo docker-compose up", I get Errno -2. I haven't been able to get Web UI up yet, so may not be able to answer all questions. The address I used for camera is the same one I got working in Motioneye.
Version
unsure
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
Amcrest IP5M-T1179EW
Any other information that may be helpful
No response