[Support]: #15833
-
Describe the problem you are having``Hello,
Here’s a summary of diagnostics and tests performed: Infrastructure: Running Docker on Ubuntu. The HTTP 400 error consistently appears without any additional context. Checked logs for other errors: nothing relevant beyond the 400. Communication with cameras is active. I can interact with them using ffprobe, and they respond correctly. Cannot access Frigate Web UI (no response on the default port). No evident network issues. Other services on the same server are accessible. I have enabled debug mode you can look here : Version0.14 What browser(s) are you using?Brave Version 1.73.104 Chromium: 131.0.6778.204 (Official Build) (64-bit) Frigate config filemqtt:
enabled: True
host: 127.0.0.1
port: 1883
topic_prefix: frigate
client_id: frigate
user: frigate
password: *****
cameras:
camera_garage:
enabled: True
ffmpeg:
inputs:
- path: rtsp://*****:******@192.168.1.137:8554/Streaming/Channels/101
roles:
- audio
- detect
- record
record:
enabled: True
retain:
days: 7
mode: motion
detect:
width: 1920
height: 1080
fps: 5
logger:
default: debug # Augmenter la verbosité par défaut
logs:
frigate.event: debug # Plus de détails sur les événements spécifiques
version: 0.14 Relevant Frigate log outputs6-rc: info: service nginx-log successfully started
s6-rc: info: service certsync-log successfully started
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 frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2025-01-05 22:47:42.813842121 [INFO] Preparing new go2rtc config...
2025-01-05 22:47:42.814464750 [INFO] Preparing Frigate...
2025-01-05 22:47:42.816150692 [INFO] Starting NGINX...
2025-01-05 22:47:42.823068253 [INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2025-01-05 22:47:42.932193209 [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2025-01-05 22:47:43.022588273 127.0.0.1 - - [05/Jan/2025:22:47:43 +0100] "" 400 0 "-" "-" "-"
2025-01-05 22:47:43.121881077 [INFO] Starting go2rtc...
2025-01-05 22:47:43.224240872 22:47:43.223 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-01-05 22:47:43.224246251 22:47:43.223 INF config path=/dev/shm/go2rtc.yaml
2025-01-05 22:47:43.224248401 22:47:43.223 INF [rtsp] listen addr=:8554
2025-01-05 22:47:43.224250395 22:47:43.223 INF [webrtc] listen addr=:8555/tcp
2025-01-05 22:47:43.224551880 22:47:43.224 INF [api] listen addr=:1984
2025-01-05 22:47:44.215517086 [2025-01-05 22:47:44] frigate.app INFO : Starting Frigate (0.14.1-f4f3cfa)
2025-01-05 22:47:44.215617924 [2025-01-05 22:47:44] frigate.util.config INFO : Checking if frigate config needs migration...
2025-01-05 22:47:44.227636922 [2025-01-05 22:47:44] frigate.util.config INFO : frigate config does not need migration...
2025-01-05 22:47:44.335967671 [2025-01-05 22:47:44] frigate.util.services INFO : Automatically detected vaapi hwaccel for video decoding
2025-01-05 22:47:44.356980703 [2025-01-05 22:47:44] peewee DEBUG : ('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
2025-01-05 22:47:44.358422883 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
2025-01-05 22:47:44.361381794 [2025-01-05 22:47:44] peewee_migrate.logs INFO : Starting migrations
2025-01-05 22:47:44.361474307 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
2025-01-05 22:47:44.361947615 [2025-01-05 22:47:44] peewee_migrate.logs INFO : There is nothing to migrate
2025-01-05 22:47:44.371563777 [2025-01-05 22:47:44] frigate.app INFO : Recording process started: 381
2025-01-05 22:47:44.371736136 [2025-01-05 22:47:44] frigate.app INFO : Recording process started: 383
2025-01-05 22:47:44.374768879 [2025-01-05 22:47:44] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:47:44.374984952 [2025-01-05 22:47:44] frigate.app INFO : go2rtc process pid: 97
2025-01-05 22:47:44.395968979 [2025-01-05 22:47:44] detector.cpu INFO : Starting detection process: 411
2025-01-05 22:47:44.399445985 [2025-01-05 22:47:44] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-01-05 22:47:44.400152075 [2025-01-05 22:47:44] frigate.app INFO : Output process started: 413
2025-01-05 22:47:44.400155999 [2025-01-05 22:47:44] peewee.sqliteq DEBUG : received query DELETE FROM "regions" WHERE NOT ("regions"."camera" IN (?))
2025-01-05 22:47:44.400161337 [2025-01-05 22:47:44] peewee DEBUG : ('DELETE FROM "regions" WHERE NOT ("regions"."camera" IN (?))', ['camera_garage'])
2025-01-05 22:47:44.403688552 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT "t1"."camera", "t1"."grid", "t1"."last_update" FROM "regions" AS "t1" WHERE ("t1"."camera" = ?) LIMIT ? OFFSET ?', ['camera_garage', 1, 0])
2025-01-05 22:47:44.403695541 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT "t1"."id" FROM "event" AS "t1" WHERE ((("t1"."camera" = ?) AND (("t1"."false_positive" IS NULL) OR ("t1"."false_positive" = ?))) AND ("t1"."start_time" > ?))', ['camera_garage', False, 0])
2025-01-05 22:47:44.406235607 [2025-01-05 22:47:44] frigate.util.object DEBUG : Found 0 new events for camera_garage
2025-01-05 22:47:44.407179094 [2025-01-05 22:47:44] frigate.app INFO : Camera processor not started for disabled camera camera_garage
2025-01-05 22:47:44.407183353 [2025-01-05 22:47:44] frigate.app INFO : Capture process not started for disabled camera camera_garage
2025-01-05 22:47:44.412828570 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT COUNT(?) FROM "recordings" AS "t1" WHERE (("t1"."camera" = ?) AND ("t1"."segment_size" > ?))', ['*', 'camera_garage', 0.0])
2025-01-05 22:47:44.412833433 [2025-01-05 22:47:44] urllib3.connectionpool DEBUG : Starting new HTTPS connection (1): api.github.com:443
2025-01-05 22:47:44.412835814 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT AVG("t1"."segment_size" / ("t1"."end_time" - "t1"."start_time")) FROM "recordings" AS "t1" WHERE (("t1"."camera" = ?) AND ("t1"."segment_size" > ?)) LIMIT ?', ['camera_garage', 0.0, 100])
2025-01-05 22:47:44.412850807 [2025-01-05 22:47:44] frigate.storage DEBUG : camera_garage has a bandwidth of 0 MiB/hr.
2025-01-05 22:47:44.490661505 [2025-01-05 22:47:44] urllib3.connectionpool DEBUG : https://api.github.com:443 "GET /repos/blakeblackshear/frigate/releases/latest HTTP/11" 200 1667
2025-01-05 22:47:44.499564123 [2025-01-05 22:47:44] frigate.api.auth DEBUG : Using jwt secret from .jwt_secret file in config directory.
2025-01-05 22:47:44.521126958 [2025-01-05 22:47:44] peewee.sqliteq DEBUG : received query UPDATE "reviewsegment" SET "end_time" = ? WHERE ("reviewsegment"."end_time" IS NULL)
2025-01-05 22:47:44.521248944 [2025-01-05 22:47:44] peewee DEBUG : ('UPDATE "reviewsegment" SET "end_time" = ? WHERE ("reviewsegment"."end_time" IS NULL)', [1736113664.505223])
2025-01-05 22:47:44.543203471 [2025-01-05 22:47:44] peewee.sqliteq DEBUG : received query UPDATE "event" SET "end_time" = ("event"."start_time" + ?) WHERE ("event"."end_time" IS NULL)
2025-01-05 22:47:44.543394165 [2025-01-05 22:47:44] peewee DEBUG : ('UPDATE "event" SET "end_time" = ("event"."start_time" + ?) WHERE ("event"."end_time" IS NULL)', [30])
2025-01-05 22:47:44.544251547 [2025-01-05 22:47:44] peewee DEBUG : ('SELECT COUNT(1) FROM (SELECT 1 FROM "user" AS "t1") AS "_wrapped"', [])
2025-01-05 22:47:49.378624915 [2025-01-05 22:47:49] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:47:52.814192602 [INFO] Starting go2rtc healthcheck service...
2025-01-05 22:47:54.383702489 [2025-01-05 22:47:54] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:47:59.387927674 [2025-01-05 22:47:59] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:04.393054375 [2025-01-05 22:48:04] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:09.395763607 [2025-01-05 22:48:09] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:09.501278859 [2025-01-05 22:48:09] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:48:09.501468341 [2025-01-05 22:48:09] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:10.084785202 [2025-01-05 22:48:10] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2025-01-05 22:48:10.084890470 [2025-01-05 22:48:10] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:48:14.396509295 [2025-01-05 22:48:14] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:19.399994249 [2025-01-05 22:48:19] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:24.403972508 [2025-01-05 22:48:24] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:25.086466715 [2025-01-05 22:48:25] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:48:25.086708400 [2025-01-05 22:48:25] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:25.663438232 [2025-01-05 22:48:25] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:48:29.406330382 [2025-01-05 22:48:29] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:34.407997406 [2025-01-05 22:48:34] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:39.413052732 [2025-01-05 22:48:39] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:40.664121160 [2025-01-05 22:48:40] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:48:40.664290062 [2025-01-05 22:48:40] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:41.244185910 [2025-01-05 22:48:41] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:48:43.050851136 127.0.0.1 - - [05/Jan/2025:22:48:43 +0100] "" 400 0 "-" "-" "-"
2025-01-05 22:48:44.417146127 [2025-01-05 22:48:44] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:44.548986173 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Start expire recordings.
2025-01-05 22:48:44.549178872 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Start deleted cameras.
2025-01-05 22:48:44.549284986 [2025-01-05 22:48:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."path" FROM "recordings" AS "t1" WHERE (("t1"."camera" NOT IN (?)) AND ("t1"."end_time" < ?))', ['camera_garage', 1735508924.547101])
2025-01-05 22:48:44.551775103 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-01-05 22:48:44.552393832 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : End deleted cameras.
2025-01-05 22:48:44.552400006 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Start all cameras.
2025-01-05 22:48:44.552403501 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Start camera: camera_garage.
2025-01-05 22:48:44.552413279 [2025-01-05 22:48:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."start_time", "t1"."end_time", "t1"."path", "t1"."objects", "t1"."motion" FROM "recordings" AS "t1" WHERE (("t1"."camera" = ?) AND ("t1"."end_time" < ?)) ORDER BY "t1"."start_time"', ['camera_garage', 1735508924.550171])
2025-01-05 22:48:44.553420292 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-01-05 22:48:44.553653476 [2025-01-05 22:48:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."start_time", "t1"."end_time", "t1"."path" FROM "previews" AS "t1" WHERE (("t1"."camera" = ?) AND ("t1"."end_time" < ?)) ORDER BY "t1"."start_time"', ['camera_garage', 1735508924.550171])
2025-01-05 22:48:44.554741093 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Expiring 0 previews
2025-01-05 22:48:44.554964064 [2025-01-05 22:48:44] peewee DEBUG : ('SELECT "t1"."id", "t1"."start_time", "t1"."end_time", "t1"."thumb_path" FROM "reviewsegment" AS "t1" WHERE (("t1"."camera" = ?) AND ("t1"."end_time" < ?)) ORDER BY "t1"."start_time"', ['camera_garage', 1735508924.550171])2025-01-05 22:48:44.555627157 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : Expiring 0 segments
2025-01-05 22:48:44.555792368 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : End camera: camera_garage.
2025-01-05 22:48:44.555914972 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : End all cameras.
2025-01-05 22:48:44.556050894 [2025-01-05 22:48:44] frigate.record.cleanup DEBUG : End expire recordings.
2025-01-05 22:48:49.418235510 [2025-01-05 22:48:49] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:54.423316334 [2025-01-05 22:48:54] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:56.245321633 [2025-01-05 22:48:56] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:48:56.245485353 [2025-01-05 22:48:56] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:48:56.823171483 [2025-01-05 22:48:56] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:48:59.427941166 [2025-01-05 22:48:59] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:04.433057136 [2025-01-05 22:49:04] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:09.437378264 [2025-01-05 22:49:09] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:11.824419937 [2025-01-05 22:49:11] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:49:11.824609178 [2025-01-05 22:49:11] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:12.400946930 [2025-01-05 22:49:12] frigate.comms.mqtt ERROR : Unable to publish to stats: client is not connected
2025-01-05 22:49:12.401070036 [2025-01-05 22:49:12] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:49:14.442626673 [2025-01-05 22:49:14] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:19.446953937 [2025-01-05 22:49:19] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:24.451960459 [2025-01-05 22:49:24] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:27.402242430 [2025-01-05 22:49:27] frigate.stats.emitter DEBUG : Starting stats collection
2025-01-05 22:49:27.402422123 [2025-01-05 22:49:27] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:27.981443666 [2025-01-05 22:49:27] frigate.stats.emitter DEBUG : Finished stats collection
2025-01-05 22:49:29.456272165 [2025-01-05 22:49:29] asyncio DEBUG : Using selector: EpollSelector
2025-01-05 22:49:34.459973795 [2025-01-05 22:49:34] asyncio DEBUG : Using selector: EpollSelector Relevant go2rtc log outputI don't know FFprobe output from your cameraMy camera is unpluged but it work i have alredy try, the url two i have tried with ODM software Frigate statsNo response Install methodDocker Compose docker-compose file or Docker CLI commandversion: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb" # update for your cameras based on calculation above
devices:
- /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /root/frigate/config:/config
- /root/frigate/storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8080:5000" # Internal unauthenticated access. Expose carefully.
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "*******" Object DetectorCPU (no coral) Network connectionWired Camera make and modelCodnida 2K Camera 360 Screenshots of the Frigate UI's System metrics pagesI have no ui, no web ui Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 11 replies
-
With what address are you trying to access Frigate? The 400 log lines are expected and don't indicate any issue. |
Beta Was this translation helpful? Give feedback.
-
It's good if the 400 error doesn't indicate any problems. |
Beta Was this translation helpful? Give feedback.
-
Yes i do that, ill send you log, with debug false let juste just few minutes |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I run docker on my Ubuntu server 22.04LTS |
Beta Was this translation helpful? Give feedback.
-
Like 8082, 8083 ? |
Beta Was this translation helpful? Give feedback.
-
It not work two i config 8085 port but |
Beta Was this translation helpful? Give feedback.
-
I have find fix, I freed port 5000 and I put 5000:5000 in my config, so frigate must be on 5000 it doesn't work 8046:5000 |
Beta Was this translation helpful? Give feedback.
-
Ok I see, thanks for your help, since you are here can you guide me for the https configuration, should I remove port 5000 in the docker configuration and should I replace it with 8971. I am confused |
Beta Was this translation helpful? Give feedback.
-
Ok, this is more complicated than I thought, what I want is to make sure that I can access the frigate UI from my domain by securing it via Cloudflare with an SSL certificate and that all the features are available. I try to follow the doc but there are things that escape me like enabling ipv6 for example |
Beta Was this translation helpful? Give feedback.
-
Allright, so i have remove 5000:5000 on docker compose file and add 8971:8971, disable tls, my nginx frigate config seems to that :
But when i go on https://xxx.mydomain.com im on another web instance installed on my server (grafana) (because I also have a reverse proxy for grafana). I think that it comes from the fact that I don't have the ssl_certificates_key lines which allow me to put my cloudflare certificate but as tls is disabled I don't need it? |
Beta Was this translation helpful? Give feedback.
-
Okay I understand better, I included the lines of my certificate but it still doesn't work, I'll dig, can you confirm that in my docker-compose.yml
And so in my nginx file I come to do a reverse proxy on port 8971, except that even me locally I can't find anything |
Beta Was this translation helpful? Give feedback.
-
I managed to figure out that the problem was with my nginx configuration, so the correct configuration is :
and i have been remove 5000:5000 and i have 8971:8971 in ports: in my docker compose file |
Beta Was this translation helpful? Give feedback.
-
Thanks ! |
Beta Was this translation helpful? Give feedback.
I managed to figure out that the problem was with my nginx configuration, so the correct configuration is :