AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.35k stars 161 forks source link

"WebRTC Server not available" error after migrating HAS #509

Open rusty-genius opened 1 year ago

rusty-genius commented 1 year ago

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 commented 1 year ago

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

intgyl commented 1 year ago

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.

rusty-genius commented 1 year ago

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!

intgyl commented 1 year ago

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

AlexxIT commented 1 year ago

You can increase log level to check fail reason.

Duke-Box commented 11 months ago

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

gideondon commented 10 months ago

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

AlexxIT commented 10 months ago

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

flyman1664 commented 9 months ago

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

image

flyman1664 commented 9 months ago

After uninstalling and reinstalling webrtc it is still not working.

image

flyman1664 commented 8 months ago

Hi,

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

mylbeee commented 8 months ago

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.

TLongstride commented 6 months ago

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

ness7288 commented 6 months ago

config-directory, and then re-adding the

also work for me, great thanks!!!

EDelsman commented 1 month ago

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?