Frigate integration won't connect anymore

Hi,

Moved my Ubuntu VM ( wich contain my frigate docker ) , so reconfigure ip of frigate proxy and addon, but now addon refuse to connect :frowning: ( proxy is ok )

HAOSS : raspi 192.168.0.10
Frigate : docker on Ubuntu host 192.168.0.6

2022-06-22 22:46:09 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://192.168.0.6:5000/api/stats: 500, message='INTERNAL SERVER ERROR', url=URL('http://192.168.0.6:5000/api/stats')

Frigate is running. Alive and healthy!
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
  • Ping from HAOS to my Ubuntu VM :
| |  | |                          /\           (_)   | |            | |  
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_ 
|  __  |/ _ \| '_ \ _ \ / _ \   / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_ 
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for eth0:  192.168.0.10/24
  IPv6 addresses for eth0:  2a01:e0a:3c5:8d90:840:e0aa:1de4:39a5/64, fe80::81d7:a7e6:50c8:8f62/64
  IPv4 addresses for wlan0: 

  OS Version:               Home Assistant OS 8.2
  Home Assistant Core:      2022.6.7

  Home Assistant URL:       http://homeassistant.local:8123
  Observer URL:             http://homeassistant.local:4357
➜  ~ ping 192.168.0.6
PING 192.168.0.6 (192.168.0.6): 56 data bytes
64 bytes from 192.168.0.6: seq=0 ttl=64 time=0.799 ms
64 bytes from 192.168.0.6: seq=1 ttl=64 time=0.634 ms
64 bytes from 192.168.0.6: seq=2 ttl=64 time=0.763 ms
64 bytes from 192.168.0.6: seq=3 ttl=64 time=0.631 ms
^C
--- 192.168.0.6 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.631/0.706/0.799 ms
  • Frigate Docker Compose ( changed nothing )
---
version: "3.8"
services:
  frigate:
    container_name: frigate
    privileged: true
    restart: unless-stopped
    image: blakeblackshear/frigate:stable-amd64
    shm_size: "64mb"
    devices:
      - /dev/dri/renderD128
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - $PWD/data/config.yml:/config/config.yml:ro
      - /mnt/drives/docs/_FRIGATE/:/media/frigate
      - $PWD/data/db:/db
      - type: tmpfs
        target: /tmp/cache
        tmpfs:
          size: 2000000000
    ports:
      - "5000:5000"
      - "1935:1935"
    environment:
      - PUID=1005
      - PGID=1007
      - TZ=Europe/Paris
      - FRIGATE_RTSP_PASSWORD= "xxxxx"
  • Telnet from another computer ( 192.168.0.2 ) β€˜telnet 192.168.0.6:5000’ connected successfully

  • Proof of the correct IP and frigate running :

  • Tested with blakeblackshear/frigate:0.11.0-beta4 same problem

  • Tested with addon v2.3 & 3.0.0 rc2, same error, I will go crazy ^^

Any idea ? thanks !

Found the solution with the help of NickM-27

My problem was :slight_smile:

OSError: [Errno 9] Bad file descriptor: '/media/frigate/recordings'

The solution :
create the docker with : β€œ$PWD/media:/media/frigate:rw” ( create media folder locally to rasbpi )
configure the integration
kill the docker
restart it with β€œ/mnt/drives/docs/_FRIGATE/:/media/frigate:rw” ( use media folder on another disk )