blakeblackshear / frigate-hass-integration

Frigate integration for Home Assistant
MIT License
655 stars 109 forks source link

Frigate somehow get restarted frequently #691

Open allenrong88 opened 4 days ago

allenrong88 commented 4 days ago

Current setup:

Have been using HA for years and also Frigate for quite some time now.

The latest HA is installed with Frigate integration and the Frigate main instance is being hosted on a separate Ubuntu server by using docker-compose. Both are within the same VLAN, so no firewall or anything.

Have no issue accessing Frigate through HA or directly via 5000 port. Recently noticed the detection & snapshot were turned off on some cameras and then went digging into the log and found the following errors, which occur a lot. I assume it got restarted somehow after the below error occurred.

Error fetching information from http://Frigate_ip:5000/api/stats: Cannot connect to host Frigate_ip:5000 ssl:default [Connect call failed ('Frigate_ip', 5000)] Error fetching information from http://Frigate_ip:5000/api/stats: 502, message='Bad Gateway', url=URL('http://Frigate_ip:5000/api/stats') Error fetching information from http://Frigate_ip:5000/api/stats: Server disconnected

allenrong88 commented 4 days ago

The config is attached below and It is fairly standard. Frigate config.txt

allenrong88 commented 4 days ago

Confirmed that the Frigate got restarted when the above error occurred. No error was mentioned during the Frigate starting process.