WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

"WebRTC Server not available" error after migrating HAS

Open rusty-genius opened this issue 1 year ago • 15 comments

Hello,

I migrated HAS from an RPI4 to a generic PC and everything works fine.

However, the custom WebRTC card always gives me an error when trying to show an rtsp stream.

This happens regardless from the underlying camera. It worked before the migration though.

I reinstalled the webrtc integration and even hacs itself but nothing seems to work.

When I look at the logs, i usually see this mistake (I have no idea if it belongs to this specific error)

I am no expert so I hope someone can help in this matter. Thanks!

Logger: frontend.js.latest.202306080
Source: components/system_log/__init__.py:257
First occurred: 11:10:23 (94 occurrences)
Last logged: 12:15:02

blob:http://homeassistant.local:8123/1fbd3798-1522-4650-9868-b6f6f3ed2285:1:100 ReferenceError: t is not defined
blob:http://homeassistant.local:8123/2d698d0e-bd91-4bf7-a596-f5216c79d03e:1:100 ReferenceError: t is not defined
blob:http://homeassistant.local:8123/d845f96b-0cf0-448e-95b6-3571570de5ec:1:100 ReferenceError: t is not defined
blob:http://homeassistant.local:8123/8bf97cd0-8811-4e8c-a787-0797eba44624:1:100 ReferenceError: t is not defined
blob:http://homeassistant.local:8123/19e0a8d4-0d8f-4e1c-a323-007aba3e2ad7:1:100 ReferenceError: t is not defined

1

rusty-genius avatar Jun 23 '23 10:06 rusty-genius

No one able to help with this? There must be someone else out there with this problem I guess?

rusty-genius avatar Jun 25 '23 14:06 rusty-genius

No one able to help with this? There must be someone else out there with this problem I guess?

I have the same issue Modify the go2rtc version to 1.2.0 and reboot HA , it works ok.

intgyl avatar Jun 28 '23 02:06 intgyl

No one able to help with this? There must be someone else out there with this problem I guess?

I have the same issue Modify the go2rtc version to 1.2.0 and reboot HA , it works ok.

Hey, thanks for your answer.

Could you give me a hint as to how I modify the go2rtc version?

In my Studio Code Server I have a got2rtc.yaml but this file only includes 2 lines with api and rtsp and the go2rtc-1.5.0 file is not editable.

Can you help me out? thanks!

rusty-genius avatar Jun 29 '23 15:06 rusty-genius

No one able to help with this? There must be someone else out there with this problem I guess?

I have the same issue Modify the go2rtc version to 1.2.0 and reboot HA , it works ok.

Hey, thanks for your answer.

Could you give me a hint as to how I modify the go2rtc version?

In my Studio Code Server I have a got2rtc.yaml but this file only includes 2 lines with api and rtsp and the go2rtc-1.5.0 file is not editable.

Can you help me out? thanks!

image

In file utils.py, BINARY_VERSION

intgyl avatar Jun 30 '23 00:06 intgyl

You can increase log level to check fail reason.

AlexxIT avatar Jul 06 '23 12:07 AlexxIT

Hi,

I confirm this is an issue. I did the same migration from Pi4 to Generic PC laptop and found the same that WebRTC server unavailable.

I followed @intgyl instructions and it works again - Thanks

Duke-Box avatar Aug 02 '23 12:08 Duke-Box

I've had exaclty the same issue. followed these steps and it works again. Took me so much time trying to find out.

gideondon avatar Aug 18 '23 21:08 gideondon

You shouldn't follow @intgyl instructions. It's bad advice. Better to download old integration version with same old binary version in the code.

AlexxIT avatar Aug 23 '23 17:08 AlexxIT

Same issue on my side after migrating HAOS from Rpi3 to N100 mini pc

image

flyman1664 avatar Sep 14 '23 19:09 flyman1664

After uninstalling and reinstalling webrtc it is still not working.

image

flyman1664 avatar Sep 18 '23 15:09 flyman1664

Hi,

Since v3.4.0 update, all seems to be back to normal. Thanks

flyman1664 avatar Oct 15 '23 08:10 flyman1664

Had this same issue. Noticed, that nothing was running at :1984. Resolved by manually deleting "go2rtc-1.8.1" file from the Home Assistant config-directory, and then re-adding the WebRTC device via GUI.

mylbeee avatar Nov 01 '23 09:11 mylbeee

Had this same issue. Noticed, that nothing was running at :1984. Resolved by manually deleting "go2rtc-1.8.1" file from the Home Assistant config-directory, and then re-adding the WebRTC device via GUI.

Thinks it the best solution, it work for me

TLongstride avatar Dec 16 '23 19:12 TLongstride

config-directory, and then re-adding the

also work for me, great thanks!!!

ness7288 avatar Dec 26 '23 14:12 ness7288

Thanks, manually deleting "go2rtc-1.8.1" file from the Home Assistant config-directory, and then re-adding the WebRTC device via GUI as mentioned by @mylbeee also worked for me. Maybe the issue can be closed?

EDelsman avatar May 26 '24 11:05 EDelsman

Had this same issue. Noticed, that nothing was running at :1984. Resolved by manually deleting "go2rtc-1.8.1" file from the Home Assistant config-directory, and then re-adding the WebRTC device via GUI.

Can also confirm this worked for me.

nsimons avatar Aug 17 '24 18:08 nsimons