AirenSoft/OvenMediaEngine

wss not connecting Server version 8

AndyObeng opened this issue · 10 comments

I have ovenmediaengine 0.16.5 running in docker on Centos. I am able to stream without SSL but when I modified my server.xml with the details from letsencrypt, the browser hangs for a while and then returns a code: 501 ​ message: "Connection with low-latency(OME) server failed." ​ reason: "WebSocket connection failed."

To Reproduce
Steps to reproduce the behavior:

  1. Set Server.xml as follows '

    default

    ovenmediaengine.com

     	<!-- Settings for multi ip/domain and TLS -->
     	<Host>
     		<Names>
     			<!-- Host names
     				<Name>stream1.airensoft.com</Name>
    
     				<Name>stream2.airensoft.com</Name>
     				<Name>*.sub.airensoft.com</Name>
     					-->
     				<Name>2schooldirect.net</Name>
    
     			<Name>*</Name>
     		</Names>
     		<TLS>
     			<CertPath>/etc/letsencrypt/live/2schooldirect.net/cert.pem</CertPath>
     			<KeyPath>/etc/letsencrypt/live/2schooldirect.net/privkey.pem</KeyPath>
     			<ChainCertPath>/etc/letsencrypt/live/2schooldirect.net/fullchain.pem</ChainCertPath>
     		</TLS>
     	</Host>'
    
  2. With Encoder 'OBS 27.2.4 on Mac Sonoma 14.2'

  3. See error

Expected behavior
I should receive the playback via wss://2schooldirect.net:3334/app/{streamname}

Logs
code: 501 ​ message: "Connection with low-latency(OME) server failed." ​ reason: "WebSocket connection failed.".

Server (please complete the following information):

  • OS: Centos
  • OvenMediaEngine Version:0.16.5
  • Branch: Not sure

Player (please complete the following information):

  • Device: Laptop/Phones
  • OS: Mac OS/ Android/IOS
  • Browser All browsers
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Server.xml.zip
Find attached my Server.xml.
Thanks

I have changed the port of the llhs to prevent conflicts and restarted OME. I have also confirmed that 3334 port is open through 'netstat -nlp'. The browser hangs for a while and then returns the same result. Please help

bchah commented

I see you have TcpForce=True in your ICE candidate config, in that case is port 3478 TCP open? If we could see the output logs from OME those may have more clues.

I see you have TcpForce=True in your ICE candidate config, in that case is port 3478 TCP open? If we could see the output logs from OME those may have more clues.

OME doesnt produce any logs. I thought by the documentation, the logs should appear in /var/log/ovenmediaengine but there is nothing there. This issue doesnt exist if I had installed without docker. I have verified that port 3478 TCP and 3334 TCP is open. I will keep trying till close of day. If nothing changes, I will install OME directly without docker. Please share if available a live chat support you may have. Thanks

Thanks so much. I have the logs now It says
'[2024-06-19 10:50:56.476] E [SPRtcSig-t3334:12] HTTP.Server | https_server.cpp:100 | Could not handle connection event: there is no certificate
[2024-06-19 10:51:02.045] E [SPRtcSig-t3334:12] HTTP.Server | https_server.cpp:100 | Could not handle connection event: there is no certificate' .
I guess there is something wrong with my letsencrpt installation. I will check and give update. Thanks again

This issue is not a bug so it is moved to discussion.