blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.94k stars 1.73k forks source link

Docker frigate:0.8.1-amd64 does not save events to database #705

Closed hudsonsecurity closed 3 years ago

hudsonsecurity commented 3 years ago

I get one snapshot on the camera for Tracked Object but there are no entries in the events tab or in the sqlite database. Any reason why this would happen?

mcondren commented 3 years ago

I am seeing this after upgrading to 0.8.1 as well. I had clips saving and showing up in HA media browser and the Frigate Events web UI. Now after the upgrade I still get detection notifications, but no events or clips. Did not change config between 0.8.0 and 0.8.1.

blakeblackshear commented 3 years ago

If you would like support, please provide the information requested in the issue template.

mcondren commented 3 years ago

I am not the OP, so I don't see the template, and when I try to create a new issue just to get the template one doesn't appear, the issue body is just blank. Anyway, I will do my best to include as much data as possible.

Frigate version: 0.8.1 Frigate HA integration: 1.0.3

Upgraded from : 0.8.0 (working)

Configuration

 detectors:
     coral:
       type: edgetpu
       device: usb

   mqtt:
     host: 192.168.1.45
     topic_prefix: frigate

  ffmpeg:
    #  global_args:
    #    - -hide_banner
    #    - -loglevel
    #    - panic
    hwaccel_args:
      - -hwaccel
      - vaapi
      - -hwaccel_device
      - /dev/dri/renderD128
      - -hwaccel_output_format
      - yuv420p

 objects:
    track:
      - person
    filters:
      person:
        threshold: 0.7
        min_area: 0

 cameras:
    driveway:
      ffmpeg:
        inputs:
        - path: rtsp://192.168.1.2:7447/kxsyIbFo1g6kEX6Z
          roles:
            - detect
            - clips
      fps: 5
      width: 1920
      height: 1080

   backporch:
      ffmpeg:
        inputs:
          - path: rtsp://192.168.1.2:7447/bGeTL1VWAa32zPOi
            roles:
              - detect
              - clips
      fps: 5
      width: 1920
      height: 1080

   sidedoor:
      ffmpeg:
        inputs:
          - path: rtsp://192.168.1.2:7447/TxFfDQWA6nQyleT2
            roles:
              - detect
              - clips
      fps: 5
      width: 1920
      height: 1080

    frontdoor:
      ffmpeg:
        inputs:
          - path: rtsp://192.168.1.2:7447/BFkoDhlFATcRc8DM
            roles:
              - detect
              - clips
     fps: 5
       width: 1600
       height: 1200

 clips:
     retain:
       default: 30

Frigate log after a notification triggered but no clip or entry in event database which was the behaviour with 0.8.0.

There is nothing to migrate peewee_migrate INFO : There is nothing to migrate frigate.mqtt INFO : MQTT connected frigate.app INFO : Camera processor started for driveway: 41 frigate.app INFO : Camera processor started for backporch: 42 frigate.app INFO : Camera processor started for sidedoor: 43 frigate.app INFO : Camera processor started for frontdoor: 44 frigate.app INFO : Capture process started for driveway: 45 frigate.app INFO : Capture process started for backporch: 46 frigate.app INFO : Capture process started for sidedoor: 47 frigate.app INFO : Capture process started for frontdoor: 49 detector.coral INFO : Starting detection process: 35 frigate.edgetpu INFO : Attempting to load TPU as usb frigate.edgetpu INFO : TPU found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x556a9078f140] moov atom not found

HA Log entries: None

blakeblackshear commented 3 years ago

Are you running with compose?

mcondren commented 3 years ago

I a running with portainer. If I inspect I get this.

{
    "AppArmorProfile": "unconfined",
    "Args": [],
    "Config": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": [
            "/run.sh"
        ],
        "Domainname": "XXXXXX.XXXX",
        "Entrypoint": null,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "DEBIAN_FRONTEND=noninteractive",
            "FLASK_ENV=development",
            "LIBVA_DRIVER_NAME=i965"
        ],
        "ExposedPorts": {
            "1935/tcp": {},
            "5000/tcp": {}
        },
        "Hostname": "frigate",
        "Image": "blakeblackshear/frigate:stable-amd64",
        "Labels": {
            "maintainer": "blakeb@blakeshome.com"
        },
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/config": {},
            "/etc/localtime": {},
            "/media/frigate/clips": {},
            "/media/frigate/recordings": {}
        },
        "WorkingDir": "/opt/frigate"
    },
    "Created": "2021-02-03T21:21:56.129808998Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/0ae4d09c41e1ba4a0ff1041263d3e61495387f005b4920f69e89cec9033a4a3d-init/diff:/var/lib/docker/overlay2/04e5d1241c43dbb231f31e01a0b7f2cb3d63d94a59bfaca4b3b85e690da4eaa0/diff:/var/lib/docker/overlay2/5e9444cc21147e24b4115bd524f25d1dc03d7aac7012d98ac052d8661b99469c/diff:/var/lib/docker/overlay2/a08ae72fe76aed5e9f7233034f4178fcc266d4aa62c6a2e119296546b5b8cc09/diff:/var/lib/docker/overlay2/4489eef371a14b9be14ebcb03287b088deafe154d1401ba89378b8dfe4370807/diff:/var/lib/docker/overlay2/54b6e7f01ff3e8fe4187b59e13966d6a0c84ecd0fd0ddd8d5c57b6bc0c2822d6/diff:/var/lib/docker/overlay2/fb546ed7da073e9cb61dce5a26f1e3b0b634a0bd18461649fd4a188d61f69a62/diff:/var/lib/docker/overlay2/668b2ea78a6378472870d63ac9e252863d90e8ff4fa98bd0597f024b2820d11f/diff:/var/lib/docker/overlay2/864fff58f9305e908df3b58f342e4c778f435e29bd9c59aa8aa0dea9dc66c49e/diff:/var/lib/docker/overlay2/48d90d5ba9993a76bcf0f3296401e4af2daa63f9c31c2c3825433844f903d9e5/diff:/var/lib/docker/overlay2/0395db265ddedae22158be66b5e3ae9735b12bd008ab9fb1f7ef0b633c0eefd1/diff:/var/lib/docker/overlay2/f5dc6eb14a85bae7a4a85b9833425057d95b996c9aaf0a5f2bab2b8d4dec8ffd/diff:/var/lib/docker/overlay2/06a8ea3aed03067f14fd4a0492ca731376592c9ac81b5b13daf03dde27a5b074/diff:/var/lib/docker/overlay2/79f743771d88a12a8ebc02e197040bb45e28497f14ccf7abad94a47023f6532c/diff:/var/lib/docker/overlay2/aaaa1ac568c1f5632c54f86360ecbe8be443a4747b07d75f3fc1cb0ca6a9f230/diff:/var/lib/docker/overlay2/752a674514d49d42c863687555016c7da4347585a53db7ee2d307bc9e2bcb5a9/diff:/var/lib/docker/overlay2/03bcdca8bf61c94a1359f6fbe6b21246ffb02287ac3fba62d1a170c5df31503f/diff:/var/lib/docker/overlay2/a9c2a9321ac27ae14d92700c01dad12154a86ecbe3f92e745926d7fc738f719d/diff:/var/lib/docker/overlay2/4481659a22e4a622fa1f49aa8490ddf5ee6f459b54ca940972c94418211260c0/diff",
            "MergedDir": "/var/lib/docker/overlay2/0ae4d09c41e1ba4a0ff1041263d3e61495387f005b4920f69e89cec9033a4a3d/merged",
            "UpperDir": "/var/lib/docker/overlay2/0ae4d09c41e1ba4a0ff1041263d3e61495387f005b4920f69e89cec9033a4a3d/diff",
            "WorkDir": "/var/lib/docker/overlay2/0ae4d09c41e1ba4a0ff1041263d3e61495387f005b4920f69e89cec9033a4a3d/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "frigate:/config",
            "/etc/localtime:/etc/localtime:ro",
            "/mnt/media/frigate/clips:/media/frigate/clips",
            "/mnt/media/frigate/recordings:/media/frigate/recordings"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": [
            "AUDIT_WRITE",
            "CHOWN",
            "DAC_OVERRIDE",
            "FOWNER",
            "FSETID",
            "KILL",
            "MKNOD",
            "NET_BIND_SERVICE",
            "NET_RAW",
            "SETFCAP",
            "SETGID",
            "SETPCAP",
            "SETUID",
            "SYS_CHROOT"
        ],
        "CapDrop": [
            "AUDIT_CONTROL",
            "BLOCK_SUSPEND",
            "DAC_READ_SEARCH",
            "IPC_LOCK",
            "IPC_OWNER",
            "LEASE",
            "LINUX_IMMUTABLE",
            "MAC_ADMIN",
            "MAC_OVERRIDE",
            "NET_ADMIN",
            "NET_BROADCAST",
            "SYSLOG",
            "SYS_ADMIN",
            "SYS_BOOT",
            "SYS_MODULE",
            "SYS_NICE",
            "SYS_PACCT",
            "SYS_PTRACE",
            "SYS_RAWIO",
            "SYS_RESOURCE",
            "SYS_TIME",
            "SYS_TTY_CONFIG",
            "WAKE_ALARM"
        ],
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": [
            {
                "CgroupPermissions": "rwm",
                "PathInContainer": "/dev/bus/usb/",
                "PathOnHost": "/dev/bus/usb/"
            }
        ],
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "shareable",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "json-file"
        },
        "MaskedPaths": null,
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "macvlan",
        "OomKillDisable": false,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": 0,
        "PortBindings": {
            "1935/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "1935"
                }
            ],
            "5000/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "5000"
                }
            ]
        },
        "Privileged": true,
        "PublishAllPorts": false,
        "ReadonlyPaths": null,
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "unless-stopped"
        },
        "Runtime": "runc",
        "SecurityOpt": [
            "label=disable"
        ],
        "ShmSize": 1073741824,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": []
    },
    "HostnamePath": "/var/lib/docker/containers/de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd/hostname",
    "HostsPath": "/var/lib/docker/containers/de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd/hosts",
    "Id": "de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd",
    "Image": "sha256:95e4104315b27a2905d1cdf4ad126a53d0aacbdc4228fddfba195a8020f5ba22",
    "LogPath": "/var/lib/docker/containers/de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd/de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd-json.log",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/config",
            "Driver": "local",
            "Mode": "z",
            "Name": "frigate",
            "Propagation": "",
            "RW": true,
            "Source": "/var/lib/docker/volumes/frigate/_data",
            "Type": "volume"
        },
        {
            "Destination": "/etc/localtime",
            "Mode": "ro",
            "Propagation": "rprivate",
            "RW": false,
            "Source": "/etc/localtime",
            "Type": "bind"
        },
        {
            "Destination": "/media/frigate/clips",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/mnt/media/frigate/clips",
            "Type": "bind"
        },
        {
            "Destination": "/media/frigate/recordings",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/mnt/media/frigate/recordings",
            "Type": "bind"
        }
    ],
    "Name": "/Frigate",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "",
        "Networks": {
            "macvlan": {
                "Aliases": [
                    "frigate",
                    "e86ad0f9655a",
                    "9cab7c2aee90",
                    "fe16d30c0667",
                    "de20e0a7cf35"
                ],
                "DriverOpts": null,
                "EndpointID": "46b1cb1668892d02ad5ef56e0c996e9984090b43024aabe0dc5c096c511f83bb",
                "Gateway": "192.168.1.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": {
                    "IPv4Address": "192.168.1.43"
                },
                "IPAddress": "192.168.1.43",
                "IPPrefixLen": 24,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:c0:a8:01:2b",
                "NetworkID": "22d29fe14d5b219e3def31421be878e7577b2b7a51ab8562e8d5651017e3cce8"
            }
        },
        "Ports": {},
        "SandboxID": "157702d3370a0de9f51d7c4a8398a40c16099b6c5e21a90ce7bfa385fe0ca03b",
        "SandboxKey": "/var/run/docker/netns/157702d3370a",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "/run.sh",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 222,
            "ResourceId": "de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd",
            "SubResourceIds": [],
            "Type": 1,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/var/lib/docker/containers/de20e0a7cf3512134aaf93ad55f3f6c010e30848dcb390536b66c3467e2121fd/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "2021-02-05T05:48:20.770144435Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 27252,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2021-02-05T05:52:39.646812466Z",
        "Status": "running"
    }
}
mcondren commented 3 years ago

If it helps I can bring up a container with the same config with 0.8.0 to revert and see if the events come back.

blakeblackshear commented 3 years ago

Is /mnt/media/frigate/clips a local disk on the host? I don't see anything that indicates a problem. I have no idea how it would fail without something in the logs. Try setting the default log level to debug. https://blakeblackshear.github.io/frigate/configuration/advanced#logger

mcondren commented 3 years ago

Yes, it is a local disk bind mount. The folders are there and the clips folder has 8-10 clips from 0.8.0. They are all still playable in HA. I’ll give debug a try.

mcondren commented 3 years ago

I get this when a detection fires. But no actual event gets created.

peewee.sqliteq DEBUG : received query INSERT INTO "event" ("id", "label", "camera", "start_time", "end_time", "top_score", "false_positive", "zones", "thumbnail", "has_clip", "has_snapshot") VALUES (?, ?, ?, ?, ?, ?, ?, json(?), ?, ?, ?)

peewee DEBUG : ('INSERT INTO "event" ("id", "label", "camera", "start_time", "end_time", "top_score", "false_positive", "zones", "thumbnail", "has_clip", "has_snapshot") VALUES (?, ?, ?, ?, ?, ?, ?, json(?), ?, ?, ?)', ['1612583562.180225-yvpj9x', 'person', 'frontdoor', 1612583562.180225, 1612583569.987889, 0.82421875, False, '[]', '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCACvALoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMo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sRWxI/wCWklpKR+pFcN8L9Deyvg+8bnZSCPzr7C8HeAI72HUbK7RP+JtZBJD6iSEKc/rQB/PjrkdvDp26BozO0arxyQeBnisxJrJFWK8lDEAj5iM9cV6H4nsYNLuXtZ4gHQlOBkAgkf0rktUa3llinSNcfaUAXH3eeaAMW4ukF5GYYZ3hMDiTYjMu7K7e3XrTGlKzrBDp8px8wXyiCw9s1tNG+WTzMK3PA/WqXiC9gsJrJpZiMs6E4PORwePegCtYW95DbrDDGvMrHYzlSoLZHbrTrizuruMpGywmKXktznGDx9RTbPWI7q8jtrSF5MgtuYgDC9evP6VcuIvLPnSOVD9FXnt3JoAz5/NtYnmikBZecbBg+3OfzqO6v9Pd2mE0RWYbjubrx6ZqWSORXuNLed2iuoR5qluqBsgfng/gKrCzs7KNs26BQvzbV6f40Aee/GXV3js7fTrbcFlkLnCYX5emPz5rjtGvZ70SSJGS0QG8bfug9/auk+NgXfYXFs5+zpI8T5P3HOCox6YGPwrN+E2k3OoajeWaXCRq9tukym7Kg44zx3oArjxIIJEiubPO6TAcdhxV2TVrGXaxnjx1BJGf1ro5fCWkWrbLm1WXJ2s0gB6f5FZGraPpdlcvawWsfmKu5VVeCp6HNAGTLdW8jeUsmSVJyozwR6imW7IZggvfLxyoZxzx61PLokCkTTwLFnKgR49qppp+lTyukMrO4Ul85BHbNAD1unWR1S6IABypPB9/eql3qhh/fCRcFOWKn5D0qreTpBI0bSE7QcjH+fSqr+ZIuLgqRu6beAO31NAF231lbmNsgcfMCqkdKkGsWTDcbmEE84Lcj9ayJLdUklO4Kqr82M806I3RiUxxkrtG07+1AH//2Q==', False, False])

blakeblackshear commented 3 years ago

Can you see the event in the webUI? You can see that it has False for both has_clip and has_snapshot. Your config doesn't show that you have clips or snapshots enabled for any cameras. They are not enabled by default.

mcondren commented 3 years ago

My config has clips turned on for every camera like this.

frontdoor:
      ffmpeg:
        inputs:
          - path: rtsp://192.168.1.2:7447/BFkoDhlFATcRc8DM
            roles:
              - detect
              - clips

or did the clips definition syntax change between 0.8.0 and 0.8.1 and I missed it?

I do see the False, False, just not sure why. I get a snapshot populated in the snapshot camera entity in HA.

The only events here (192.168.1.43:5000/events) in the web UI are events from before the upgrade to 0.8.1.

blakeblackshear commented 3 years ago

That assigns the clips role to a camera, but does not enable clips. It isn't enabled by default and this didn't change, so I am not sure why it worked before. Did you use the switch in homeassistant to enable? https://blakeblackshear.github.io/frigate/configuration/cameras#clips

It still doesn't make sense why you wouldn't see the events in the web ui though. That is clearly being inserted into the database.

mcondren commented 3 years ago

One thing I did notice is that I went from version 1.0.2 to 1.0.3 of the frigate HA integration when I upgraded to frigate 0.8.1. It’s possible when the integration updated it updated the status of the clips entity switches from on to off. I will check that. I am 100% positive they were on before I updated the integration.

mcondren commented 3 years ago

Yup, that’s what happened. I had omitted ‘enabled:true’ from my config, enabling clips instead from inside HA. It looks like the status of those switches reverted when the integration updated. I’m going to hard code that in my config instead from now on. Thanks for troubleshooting this with me. Still getting used to the new config.yaml syntax and HA integration.

blakeblackshear commented 3 years ago

You should also have had a message in the logs at startup for each camera saying "Camera {name} has clips assigned to an input, but clips is not enabled."