Closed ronrath closed 1 year ago
most likely you have webrtc card installed which is also using port 8555, you will need to remove that to start frigate. Once started, you can add back webrtc card (or whatever it is) and use the embedded version of go2rtc
I deleted all the cards and still had the problem. I then disabled the WebRTC integration and was able to get past the port 8555 error but now I get this:
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 go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service nginx-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 go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2023-04-10 16:23:42.812688753 [INFO] Preparing go2rtc config...
2023-04-10 16:23:42.813904190 [INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
2023-04-10 16:23:42.850475600 [INFO] Starting NGINX...
s6-rc: info: service legacy-services successfully started
2023-04-10 16:23:42.963545460 [INFO] Got IP address from supervisor: IP
2023-04-10 16:23:43.100538591 [INFO] Got WebRTC port from supervisor: 8555
2023-04-10 16:23:43.848402063 RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
2023-04-10 16:23:43.848892478 Traceback (most recent call last):
2023-04-10 16:23:43.849033827 File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-04-10 16:23:43.849876383 return _run_code(code, main_globals, None,
2023-04-10 16:23:43.850011454 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2023-04-10 16:23:43.850581035 exec(code, run_globals)
2023-04-10 16:23:43.850708754 File "/opt/frigate/frigate/main.py", line 9, in
what device are you running on? is it an arm device with a 32bit OS?
RPi4
RPi4
32 bit or 64 bit OS?
recommendation is to update to 64 bit
Okay. I don't really have time to do that now so I've just restored back to 0.11.0 and everything is back up and running so I'll just stay there for now. Thanks.
I have the same problem. So I have to replace WebRtc for go2rtc? I was using WebRtc because of PTZ...
I have the same problem. So I have to replace WebRtc for go2rtc? I was using WebRtc because of PTZ...
webrtc card uses go2rtc behind the scenes. So you simply remove the integration and then re-add it pointing the integration at frigate:1984
Could you please be more specific? How do I do that?
And what about these cards?
Thank you!
type: custom:webrtc-camera
show_state: true
show_name: true
camera_view: auto
url: rtsp://admin:xxxxxxxxxxxxx@192.168.0.203:554/Streaming/Channels/101
intersection: 0.75
ui: true
ptz:
opacity: 0.8
service: onvif.ptz
distance: 0.1
speed: 0.8
move_mode: RelativeMove
data_left:
pan: LEFT
device_id: 59b6890852a183a12d10985a1502aad6
data_right:
pan: RIGHT
device_id: 59b6890852a183a12d10985a1502aad6
data_up:
tilt: UP
device_id: 59b6890852a183a12d10985a1502aad6
data_down:
tilt: DOWN
device_id: 59b6890852a183a12d10985a1502aad6
data_zoom_in:
zoom: ZOOM_IN
entity_id: 59b6890852a183a12d10985a1502aad6
data_zoom_out:
zoom: ZOOM_OUT
entity_id: 59b6890852a183a12d10985a1502aad6
Could you please be more specific? How do I do that?
And what about these cards?
Thank you!
type: custom:webrtc-camera show_state: true show_name: true camera_view: auto url: rtsp://admin:xxxxxxxxxxxxx@192.168.0.203:554/Streaming/Channels/101 intersection: 0.75 ui: true ptz: opacity: 0.8 service: onvif.ptz distance: 0.1 speed: 0.8 move_mode: RelativeMove data_left: pan: LEFT device_id: 59b6890852a183a12d10985a1502aad6 data_right: pan: RIGHT device_id: 59b6890852a183a12d10985a1502aad6 data_up: tilt: UP device_id: 59b6890852a183a12d10985a1502aad6 data_down: tilt: DOWN device_id: 59b6890852a183a12d10985a1502aad6 data_zoom_in: zoom: ZOOM_IN entity_id: 59b6890852a183a12d10985a1502aad6 data_zoom_out: zoom: ZOOM_OUT entity_id: 59b6890852a183a12d10985a1502aad6
you simply go to Settings -> Devices & Services -> webRTC Camera
and press the 3 dots then delete. Then you press the add button, webRTC Camera and then add it. When it asks for the location of the server it will either have frigate autofilled if you run the addon or you will put frigate_ip:1984 making sure that frigate_ip is actually the ip address of frigate
Upgraded to 64-bit, deleted and reinstalled webRTC, deleted all camera cards, and no change. Same error message.
Also, no log to share since it never gets to trying to start
there will definitely be logs in the addon logs section
Could you please be more specific? How do I do that? And what about these cards? Thank you!
type: custom:webrtc-camera show_state: true show_name: true camera_view: auto url: rtsp://admin:xxxxxxxxxxxxx@192.168.0.203:554/Streaming/Channels/101 intersection: 0.75 ui: true ptz: opacity: 0.8 service: onvif.ptz distance: 0.1 speed: 0.8 move_mode: RelativeMove data_left: pan: LEFT device_id: 59b6890852a183a12d10985a1502aad6 data_right: pan: RIGHT device_id: 59b6890852a183a12d10985a1502aad6 data_up: tilt: UP device_id: 59b6890852a183a12d10985a1502aad6 data_down: tilt: DOWN device_id: 59b6890852a183a12d10985a1502aad6 data_zoom_in: zoom: ZOOM_IN entity_id: 59b6890852a183a12d10985a1502aad6 data_zoom_out: zoom: ZOOM_OUT entity_id: 59b6890852a183a12d10985a1502aad6
you simply go to
Settings -> Devices & Services -> webRTC Camera
and press the 3 dots then delete. Then you press the add button, webRTC Camera and then add it. When it asks for the location of the server it will either have frigate autofilled if you run the addon or you will put frigate_ip:1984 making sure that frigate_ip is actually the ip address of frigate
Deleted WebRTC, restarted, frigate still won't start.
Port '8555' is already in use by something else on the host
the problem appears to be with go2rtc. Stopping that addon allows me to start frigate, after which i can then restart go2rtc. WebRTC has no impact on the problem for me.
Well it's exactly the same as I said above, go2rtc uses the same ports so of course you can't run both on the same port. Frigates internal go2rtc supports all features so there's no reason to run both.
Frigates internal go2rtc supports all features so there's no reason to run both.
Ah, does it support two-way audio ?
Frigates internal go2rtc supports all features so there's no reason to run both.
Ah, does it support two-way audio ?
Yes, of course
Hrm, i had go2rtc in parallel to the previous version of frigate because i wanted both the motion detection and the ability to use 2-way audio via a webrtc card, but now it seems i'll have to redo my customizations.
I disabled go2rtc and attempting to access the go2rtc dashboard in the top right of frigate's system section, i get a 404. Moreover my cards stop working with a connect call failed on port 1984 error
Sounds like i'm probably going to have to uninstall both and only reinstall frigate and see i can get that working
I disabled go2rtc and attempting to access the go2rtc dashboard in the top right of frigate's system section, i get a 404.
the dashboard is not supported via frigate ingress, you need to use the port to access it
Moreover my cards stop working with a connect call failed on port 1984 error
Sounds like i'm probably going to have to uninstall both and only reinstall frigate and see i can get that working
You just need to simply remove the webrtc card integration and then add it back pointing at frigate_ip:1984 (making sure the port is open)
I'm still getting the following errors during startup when I upgrade to .12
Everything work in .11
Home Assistant Core
Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [Connect call failed ('172.30.33.3', 5000)] 1:20:11 PM – (ERROR) Frigate (custom integration) - message first occurred at 1:15:56 PM and shows up 7 times Failed to to call /addons/ccab4aaf_frigate/start - Port '8555' is already in use by something else on the host. 1:17:17 PM – (ERROR) Home Assistant Supervisor - message first occurred at 1:17:00 PM and shows up 2 times
You are probably running webrtc card integration. You should disable that, upgrade frigate, and then re-setup the webrtc card integration
I've disabled the webrtc card and get the following log on startup
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 nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
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
2023-05-24 13:13:06.341195633 [INFO] Preparing go2rtc config...
2023-05-24 13:13:06.345474608 [INFO] Starting Frigate...
s6-rc: info: service nginx successfully started
2023-05-24 13:13:06.361241278 [INFO] Starting NGINX...
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2023-05-24 13:13:06.492558183 [INFO] Got IP address from supervisor: 192.168.1.112
2023-05-24 13:13:06.629623666 [INFO] Got WebRTC port from supervisor: 8555
2023-05-24 13:13:07.406732594 RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
2023-05-24 13:13:07.407268195 Traceback (most recent call last):
2023-05-24 13:13:07.407469321 File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-05-24 13:13:07.408181530 return _run_code(code, main_globals, None,
2023-05-24 13:13:07.408400860 File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2023-05-24 13:13:07.408924516 exec(code, run_globals)
2023-05-24 13:13:07.409136975 File "/opt/frigate/frigate/main.py", line 9, in
are you running on a 32 bit OS?
no, 64
Can you send a screenshot of your HA OS system info?
pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" pi@raspberrypi:~ $ uname -m aarch64
Oh, so you're not running HA OS like the issue says. In that case, I'd suggest updating docker as some users found older versions of docker caused problems.
Sorry about that. I think I have the latest version of docker
Client: Docker Engine - Community Version: 24.0.1 API version: 1.43 Go version: go1.20.4 Git commit: 6802122 Built: Fri May 19 18:06:18 2023 OS/Arch: linux/arm Context: default
Server: Docker Engine - Community Engine: Version: 24.0.1 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 463850e Built: Fri May 19 18:06:18 2023 OS/Arch: linux/arm Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
I had the identical error after the last update. In my case there was a conflict with go2rtc. After disabling go2rtc Frigate started without a problem.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had even dummier case. I had been playing around by installing Frigate and also Frigate (full access). When I decided that I will be using only Frigate (full access) - I uninstalled original Frigate (w/o full access) add-on. But then I couldn't start Frigate (full access) as HassOS coulnd't find docker image or something like that.
So I installed previously removed Frigate add-on and was mostly playing around with Frigate (full access). After few days I couldn't manage to start add-on as it was throwing this error (about used port).
Found out that Frigate add-on had "Start on boot" checked (turned on). So looks like after reboot 1st add-on (which I don't use) started and I couldn't start Frigate (full access).
Leaving this comment here, maybe someone will do something dummy like me and will try to figure out what's wrong 😆
Describe the problem you are having
I just upgraded to 0.12.0 and Frigate won't start. When I click on "Start" I get the following message: "Failed to start add-on Port '8555' is already in use by something else on the host." Nothing in the log file since it didn't try to start. Everything was working fine prior to upgrade. I tried repotting my host and that did not fix the problem.
Version
0.12.0
Frigate config file
Relevant log output
Frigate stats
No response
Operating system
HassOS
Install method
HassOS Addon
Coral version
USB
Any other information that may be helpful
No response