Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats #754

Open
mathgim opened this issue Oct 31, 2024 · 9 comments
Open

Comments

@mathgim
Copy link

mathgim commented Oct 31, 2024

Hello there! I have two separate and independent instances of Home Assistant running HA OS and core on RPi5 with Google Coral. On both of them I run Frigate custom component and official addon and I have the same error log on both instances. The two instances are in different cities, so in different networks.

Version of the custom_component

v.5.4.0 on HACS and 0.14.1 for the full access addon

Debug log

Log entry

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [None]
@NickM-27
Copy link
Collaborator

NickM-27 commented Nov 1, 2024

Need to see the logs of the addon itself

@mathgim
Copy link
Author

mathgim commented Nov 1, 2024

So sorry @NickM-27, here it is. What I find weird is that addon logs are mentioning only cam_one whereas HA logs are mentioning both of my cameras.

2024-11-01 08:52:03.723739662  127.0.0.1 - - [01/Nov/2024:09:52:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:53:03.767511486  127.0.0.1 - - [01/Nov/2024:09:53:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:53:49.079131499  172.30.32.2 - - [01/Nov/2024:09:53:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 08:54:03.811722933  127.0.0.1 - - [01/Nov/2024:09:54:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:55:03.861432737  127.0.0.1 - - [01/Nov/2024:09:55:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:55:49.083551001  172.30.32.2 - - [01/Nov/2024:09:55:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 08:56:03.903294151  127.0.0.1 - - [01/Nov/2024:09:56:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:57:03.951381023  127.0.0.1 - - [01/Nov/2024:09:57:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:57:49.089409685  172.30.32.2 - - [01/Nov/2024:09:57:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 08:58:03.994692149  127.0.0.1 - - [01/Nov/2024:09:58:03 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:59:04.040365191  127.0.0.1 - - [01/Nov/2024:09:59:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 08:59:49.093636995  172.30.32.2 - - [01/Nov/2024:09:59:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:00:04.084694987  127.0.0.1 - - [01/Nov/2024:10:00:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:01:04.126396716  127.0.0.1 - - [01/Nov/2024:10:01:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:01:49.097853470  172.30.32.2 - - [01/Nov/2024:10:01:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:02:04.170576354  127.0.0.1 - - [01/Nov/2024:10:02:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:03:04.215059277  127.0.0.1 - - [01/Nov/2024:10:03:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:03:49.102662930  172.30.32.2 - - [01/Nov/2024:10:03:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:04:04.259697532  127.0.0.1 - - [01/Nov/2024:10:04:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:04:12.969252207  10:04:12.969 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:45868->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:04:18.124351427  10:04:18.124 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:44268->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:04:23.290180340  10:04:23.289 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:44292->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:04:23.320222934  [2024-11-01 10:04:23] frigate.video                  ERROR   : cam_one: Unable to read frames from ffmpeg process.
2024-11-01 09:04:23.320298656  [2024-11-01 10:04:23] frigate.video                  ERROR   : cam_one: ffmpeg process is not running. exiting capture thread...
2024-11-01 09:04:32.034747879  [2024-11-01 10:04:32] watchdog.cam_one            ERROR   : Ffmpeg process crashed unexpectedly for cam_one.
2024-11-01 09:04:32.044041560  [2024-11-01 10:04:32] watchdog.cam_one            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-11-01 09:04:32.044795404  [2024-11-01 10:04:32] ffmpeg.cam_one.detect       ERROR   : [swscaler @ 0x55a065cd60] deprecated pixel format used, make sure you did set range correctly
2024-11-01 09:05:04.303075052  127.0.0.1 - - [01/Nov/2024:10:05:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:05:49.108457715  172.30.32.2 - - [01/Nov/2024:10:05:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:06:04.348356889  127.0.0.1 - - [01/Nov/2024:10:06:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:07:04.392840717  127.0.0.1 - - [01/Nov/2024:10:07:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:07:49.112276618  172.30.32.2 - - [01/Nov/2024:10:07:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:08:04.439364883  127.0.0.1 - - [01/Nov/2024:10:08:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:09:04.485755993  127.0.0.1 - - [01/Nov/2024:10:09:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:09:49.117148661  172.30.32.2 - - [01/Nov/2024:10:09:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:10:04.529596508  127.0.0.1 - - [01/Nov/2024:10:10:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:11:04.576820273  127.0.0.1 - - [01/Nov/2024:10:11:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:11:49.121353194  172.30.32.2 - - [01/Nov/2024:10:11:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:12:04.623453758  127.0.0.1 - - [01/Nov/2024:10:12:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:12:44.612425220  10:12:44.612 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:48802->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:12:49.774156922  10:12:49.773 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:36392->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:12:54.961910351  [2024-11-01 10:12:54] frigate.video                  ERROR   : cam_one: Unable to read frames from ffmpeg process.
2024-11-01 09:12:54.962124149  [2024-11-01 10:12:54] frigate.video                  ERROR   : cam_one: ffmpeg process is not running. exiting capture thread...
2024-11-01 09:13:02.089042945  [2024-11-01 10:13:02] watchdog.cam_one            ERROR   : Ffmpeg process crashed unexpectedly for cam_one.
2024-11-01 09:13:02.089228575  [2024-11-01 10:13:02] watchdog.cam_one            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-11-01 09:13:02.089232890  [2024-11-01 10:13:02] ffmpeg.cam_one.detect       ERROR   : [swscaler @ 0x55824527e0] deprecated pixel format used, make sure you did set range correctly
2024-11-01 09:13:04.668779289  127.0.0.1 - - [01/Nov/2024:10:13:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:13:19.802395754  10:13:19.802 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:39330->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:13:25.033983369  10:13:25.033 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:34196->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:13:30.152213809  [2024-11-01 10:13:30] frigate.video                  ERROR   : cam_one: Unable to read frames from ffmpeg process.
2024-11-01 09:13:30.152500422  [2024-11-01 10:13:30] frigate.video                  ERROR   : cam_one: ffmpeg process is not running. exiting capture thread...
2024-11-01 09:13:32.103771712  [2024-11-01 10:13:32] watchdog.cam_one            ERROR   : Ffmpeg process crashed unexpectedly for cam_one.
2024-11-01 09:13:32.103983880  [2024-11-01 10:13:32] watchdog.cam_one            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-11-01 09:13:32.104801441  [2024-11-01 10:13:32] ffmpeg.cam_one.detect       ERROR   : [swscaler @ 0x55a27c9210] deprecated pixel format used, make sure you did set range correctly
2024-11-01 09:13:49.127416664  172.30.32.2 - - [01/Nov/2024:10:13:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:13:49.792781096  10:13:49.792 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:37192->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:13:54.937580403  10:13:54.937 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:60376->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:14:00.097239183  10:14:00.097 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:60392->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:14:00.138743617  [2024-11-01 10:14:00] frigate.video                  ERROR   : cam_one: Unable to read frames from ffmpeg process.
2024-11-01 09:14:00.139030267  [2024-11-01 10:14:00] frigate.video                  ERROR   : cam_one: ffmpeg process is not running. exiting capture thread...
2024-11-01 09:14:02.120141741  [2024-11-01 10:14:02] watchdog.cam_one            ERROR   : Ffmpeg process crashed unexpectedly for cam_one.
2024-11-01 09:14:02.120146667  [2024-11-01 10:14:02] watchdog.cam_one            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-11-01 09:14:02.120148649  [2024-11-01 10:14:02] ffmpeg.cam_one.detect       ERROR   : [swscaler @ 0x55930ca930] deprecated pixel format used, make sure you did set range correctly
2024-11-01 09:14:04.712137848  127.0.0.1 - - [01/Nov/2024:10:14:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:15:04.760361824  127.0.0.1 - - [01/Nov/2024:10:15:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:15:49.133808059  172.30.32.2 - - [01/Nov/2024:10:15:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:16:04.805939835  127.0.0.1 - - [01/Nov/2024:10:16:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:17:04.849952791  127.0.0.1 - - [01/Nov/2024:10:17:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:17:49.138577748  172.30.32.2 - - [01/Nov/2024:10:17:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:18:04.894211361  127.0.0.1 - - [01/Nov/2024:10:18:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:19:04.938186870  127.0.0.1 - - [01/Nov/2024:10:19:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:19:49.143458712  172.30.32.2 - - [01/Nov/2024:10:19:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:20:04.980824964  127.0.0.1 - - [01/Nov/2024:10:20:04 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:21:05.025290335  127.0.0.1 - - [01/Nov/2024:10:21:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:21:49.146511259  172.30.32.2 - - [01/Nov/2024:10:21:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:22:05.070564761  127.0.0.1 - - [01/Nov/2024:10:22:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:23:05.115780000  127.0.0.1 - - [01/Nov/2024:10:23:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:23:49.149472527  172.30.32.2 - - [01/Nov/2024:10:23:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:24:05.163761129  127.0.0.1 - - [01/Nov/2024:10:24:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:25:05.205943477  127.0.0.1 - - [01/Nov/2024:10:25:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:25:49.152958349  172.30.32.2 - - [01/Nov/2024:10:25:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:26:05.250343449  127.0.0.1 - - [01/Nov/2024:10:26:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:27:05.295353238  127.0.0.1 - - [01/Nov/2024:10:27:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:27:21.729826185  10:27:21.729 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:42082->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:27:26.897942330  10:27:26.897 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.30.33.3:51312->cam_one_ip:554: i/o timeout" url=rtsp://admin:my_password@cam_one_ip:554/cam/realmonitor?channel=1&subtype=1
2024-11-01 09:27:32.079601308  [2024-11-01 10:27:32] frigate.video                  ERROR   : cam_one: Unable to read frames from ffmpeg process.
2024-11-01 09:27:32.079847862  [2024-11-01 10:27:32] frigate.video                  ERROR   : cam_one: ffmpeg process is not running. exiting capture thread...
2024-11-01 09:27:32.191265177  [2024-11-01 10:27:32] watchdog.cam_one            ERROR   : Ffmpeg process crashed unexpectedly for cam_one.
2024-11-01 09:27:32.191271140  [2024-11-01 10:27:32] watchdog.cam_one            ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2024-11-01 09:27:32.191273659  [2024-11-01 10:27:32] ffmpeg.cam_one.detect       ERROR   : [swscaler @ 0x559e1398f0] deprecated pixel format used, make sure you did set range correctly
2024-11-01 09:27:49.157209913  172.30.32.2 - - [01/Nov/2024:10:27:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:28:05.339994111  127.0.0.1 - - [01/Nov/2024:10:28:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:29:05.383378752  127.0.0.1 - - [01/Nov/2024:10:29:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:29:49.161358998  172.30.32.2 - - [01/Nov/2024:10:29:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:30:05.427135631  127.0.0.1 - - [01/Nov/2024:10:30:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:31:05.470004684  127.0.0.1 - - [01/Nov/2024:10:31:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:31:49.165479203  172.30.32.2 - - [01/Nov/2024:10:31:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-01 09:32:05.513512899  127.0.0.1 - - [01/Nov/2024:10:32:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:33:05.559283273  127.0.0.1 - - [01/Nov/2024:10:33:05 +0100] "" 400 0 "-" "-" "-"
2024-11-01 09:33:49.178497435  172.30.32.2 - - [01/Nov/2024:10:33:49 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"

And here are the different log entries in HA related to Frigate:

Logger: homeassistant.components.media_player.const
Source: helpers/deprecation.py:197
integration: Media player (documentation, issues)
First occurred: October 31, 2024 at 10:55:05 PM (6 occurrences)
Last logged: October 31, 2024 at 10:55:05 PM

MEDIA_CLASS_IMAGE was used from frigate, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaClass.IMAGE instead, please report it to the author of the 'frigate' custom integration
MEDIA_CLASS_MOVIE was used from frigate, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaClass.MOVIE instead, please report it to the author of the 'frigate' custom integration
MEDIA_CLASS_VIDEO was used from frigate, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaClass.VIDEO instead, please report it to the author of the 'frigate' custom integration
MEDIA_TYPE_IMAGE was used from frigate, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.IMAGE instead, please report it to the author of the 'frigate' custom integration
MEDIA_TYPE_VIDEO was used from frigate, this is a deprecated constant which will be removed in HA Core 2025.10. Use MediaType.VIDEO instead, please report it to the author of the 'frigate' custom integration




This error originated from a custom integration.

Logger: custom_components.frigate.api
Source: custom_components/frigate/api.py:259
integration: Frigate (documentation, issues)
First occurred: October 31, 2024 at 10:55:08 PM (2 occurrences)
Last logged: October 31, 2024 at 10:55:34 PM

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [None]



Logger: homeassistant.components.stream.stream.camera.cam_one
Source: components/stream/__init__.py:448
integration: Stream (documentation, issues)
First occurred: 7:53:05 AM (45 occurrences)
Last logged: 10:38:06 AM

Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed), rtsp://ccab4aaf-frigate-fa:8554/cam_one)



Logger: homeassistant.components.stream.stream.camera.cam_two
Source: components/stream/__init__.py:448
integration: Stream (documentation, issues)
First occurred: 7:53:06 AM (45 occurrences)
Last logged: 10:38:06 AM

Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed), rtsp://ccab4aaf-frigate-fa:8554/cam_two)

@NickM-27
Copy link
Collaborator

NickM-27 commented Nov 1, 2024

Looks like the camera connection is timing out

@mathgim
Copy link
Author

mathgim commented Nov 1, 2024

  • Damn, is there anything I could do? Thank you Nick for helping me out :)

@NickM-27
Copy link
Collaborator

NickM-27 commented Nov 1, 2024

There are things to try like increasing timeout

@mathgim
Copy link
Author

mathgim commented Nov 1, 2024 via email

@NickM-27
Copy link
Collaborator

NickM-27 commented Nov 4, 2024

As a #timeout on the go2rtc streams

@mathgim
Copy link
Author

mathgim commented Nov 5, 2024

Ok, it seems to work for the moment. However, I still get the error log in HA when I restart Frigate addon:

This error originated from a custom integration.

Logger: custom_components.frigate
Source: helpers/update_coordinator.py:386
integration: Frigate (documentation, issues)
First occurred: 9:57:09 PM (1 occurrences)
Last logged: 9:57:09 PM

Error fetching frigate data:



This error originated from a custom integration.

Logger: custom_components.frigate.api
Source: custom_components/frigate/api.py:259
integration: Frigate (documentation, issues)
First occurred: 9:22:58 PM (4 occurrences)
Last logged: 9:57:14 PM

Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: Cannot connect to host ccab4aaf-frigate-fa:5000 ssl:default [None]
Error fetching information from http://ccab4aaf-frigate-fa:5000/api/stats: 500, message='Internal Server Error', url='http://ccab4aaf-frigate-fa:5000/api/stats'

And in the starting process in the Frigate addon log:

s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-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 go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2024-11-05 20:57:12.774703219  [INFO] Preparing Frigate...
2024-11-05 20:57:12.777508305  [INFO] Starting NGINX...
2024-11-05 20:57:12.788014468  [INFO] No TLS certificate found. Generating a self signed certificate...
2024-11-05 20:57:12.870975463  [INFO] Preparing new go2rtc config...
2024-11-05 20:57:12.878396992  [INFO] Starting Frigate...
2024-11-05 20:57:12.914499329  [INFO] Got IP address from supervisor: my_IP
2024-11-05 20:57:12.956384093  [INFO] Got WebRTC port from supervisor: 8555
2024-11-05 20:57:13.448408697  [INFO] Starting go2rtc...
2024-11-05 20:57:13.541152028  21:57:13.541 INF go2rtc platform=linux/arm64 revision=b2399f3 version=1.9.2
2024-11-05 20:57:13.541207341  21:57:13.541 INF config path=/dev/shm/go2rtc.yaml
2024-11-05 20:57:13.541922210  21:57:13.541 INF [rtsp] listen addr=:8554
2024-11-05 20:57:13.542038484  21:57:13.541 INF [api] listen addr=:1984
2024-11-05 20:57:13.542262774  21:57:13.542 INF [webrtc] listen addr=:8555/tcp
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
2024-11-05 20:57:14.218622771  [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
2024-11-05 20:57:14.324741484  2024/11/05 21:57:14 [error] 173#173: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "ccab4aaf-frigate-fa:5000"
2024-11-05 20:57:14.324748688  2024/11/05 21:57:14 [error] 173#173: *2 auth request unexpected status: 502 while sending to client, client: 172.30.32.1, server: , request: "GET /api/stats HTTP/1.1", host: "ccab4aaf-frigate-fa:5000"
2024-11-05 20:57:14.335159206  127.0.0.1 - - [05/Nov/2024:21:57:14 +0100] "" 400 0 "-" "-" "-"
2024-11-05 20:57:14.810469313  [2024-11-05 21:57:14] frigate.app                    INFO    : Starting Frigate (0.14.1-f4f3cfa)
2024-11-05 20:57:14.810601105  [2024-11-05 21:57:14] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-11-05 20:57:14.810688029  [2024-11-05 21:57:14] frigate.util.config            INFO    : Checking if frigate config needs migration...
2024-11-05 20:57:14.839259825  [2024-11-05 21:57:14] frigate.util.config            INFO    : frigate config does not need migration...
2024-11-05 20:57:15.217165776  [2024-11-05 21:57:15] frigate.util.services          WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
2024-11-05 20:57:15.256750204  [2024-11-05 21:57:15] peewee_migrate.logs            INFO    : Starting migrations
2024-11-05 20:57:15.257730806  [2024-11-05 21:57:15] peewee_migrate.logs            INFO    : There is nothing to migrate
2024-11-05 20:57:15.293147575  [2024-11-05 21:57:15] frigate.app                    INFO    : Recording process started: 378
2024-11-05 20:57:15.293153816  [2024-11-05 21:57:15] frigate.app                    INFO    : Recording process started: 387
2024-11-05 20:57:15.295436232  [2024-11-05 21:57:15] frigate.app                    INFO    : go2rtc process pid: 105
2024-11-05 20:57:15.340760312  [2024-11-05 21:57:15] detector.coral                 INFO    : Starting detection process: 407
2024-11-05 20:57:15.356220131  [2024-11-05 21:57:15] frigate.app                    INFO    : Output process started: 410
2024-11-05 20:57:15.496418471  [2024-11-05 21:57:15] frigate.app                    INFO    : Camera processor started for cam_mazot: 438
2024-11-05 20:57:15.496432563  [2024-11-05 21:57:15] frigate.app                    INFO    : Camera processor started for cam_chalet: 439
2024-11-05 20:57:15.514197650  [2024-11-05 21:57:15] frigate.app                    INFO    : Capture process started for cam_two: 447
2024-11-05 20:57:15.533291995  [2024-11-05 21:57:15] frigate.app                    INFO    : Capture process started for cam_one: 455
2024-11-05 20:57:17.722750571  2024/11/05 21:57:17 [error] 172#172: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2024-11-05 20:57:17.722775089  2024/11/05 21:57:17 [error] 172#172: *4 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2024-11-05 20:57:18.015741292  [2024-11-05 21:57:15] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-11-05 20:57:18.022648430  [2024-11-05 21:57:18] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found
2024-11-05 20:57:22.773154956  [INFO] Starting go2rtc healthcheck service...
2024-11-05 20:57:31.070794441  172.30.32.2 - - [05/Nov/2024:21:57:31 +0100] "GET / HTTP/1.1" 200 2651 "-" "HomeAssistantSupervisor/2024.10.3 aiohttp/3.10.10 Python/3.12" "-"
2024-11-05 20:58:14.383640767  127.0.0.1 - - [05/Nov/2024:21:58:14 +0100] "" 400 0 "-" "-" "-"
2024-11-05 20:59:14.429939802  127.0.0.1 - - [05/Nov/2024:21:59:14 +0100] "" 400 0 "-" "-" "-"

@JoseL-Tizon
Copy link

Tengo el mismo problema desde la ultima Actualizacion de HA, llevaba funcionando mas de 1 año sin problemas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants