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.43k stars 168 forks source link

"WebRTC server not available" #456

Open Shivy011 opened 1 year ago

Shivy011 commented 1 year ago

Hi

I am getting the above error The RTSP streams work fine in VLC on multiple computers. IT was also working fine on my raspberry pi, I have now swapped to an ubuntu based VM They are hikvision cameras through an NVR

Shivy011 commented 1 year ago

Also working through camera & stream component within HA

AlexxIT commented 1 year ago

Try to remove go2rtc binary from your Hass config folder and restart Hass

Shivy011 commented 1 year ago

Try to remove go2rtc binary from your Hass config folder and restart Hass

Thanks tried and stream is semi working . However I have to keep restarting gortc add on as the stream just stops loading on dashboards, any tips?

jonasf21 commented 1 year ago

Had the same problem after i migrated from a rpi 4 to a intel nuc (w/proxmox). The go2rtc binary was for aarch64 (rpi) and thus did no longer work, causing the "webrtc server not available" message. I tried removing and reinstalling webrtc but it didnt help - i manually had to remove the go2rtc binary, restart HA and it apparently downloaded the correct binary.

@AlexxIT Maybe add some check at startup to see if the arch has changed to prevent this?

AlexxIT commented 1 year ago

Perhaps there was an error when downloading go2rtc binary. And you need to delete it manually, so that it can be downloaded again.

I'll think about some validation after download.

luxmoel commented 11 months ago

Had the same problem after i migrated from a rpi 4 to a intel nuc (w/proxmox). The go2rtc binary was for aarch64 (rpi) and thus did no longer work, causing the "webrtc server not available" message. I tried removing and reinstalling webrtc but it didnt help - i manually had to remove the go2rtc binary, restart HA and it apparently downloaded the correct binary.

@AlexxIT Maybe add some check at startup to see if the arch has changed to prevent this?

I have exactly this problem => how can I remove the go2rtc binary? => for beginners please

jonasf21 commented 11 months ago

Its in /config. Open HA in your browser and choose terminal. cd /config rm go2rtc Thats it.

luxmoel commented 11 months ago

Its in /config. Open HA in your browser and choose terminal. cd /config rm go2rtc Thats it.

thanks a lot, it works. Thanks so much!!!