Jump to content
  • 0

Clustering not working in EE


Ant Media Support
 Share

Question

Hi Alex,
Hope you are doing well.
Can you please set useGlobalIp=true in server settings. You can find the server settings under <AMS_DIR>/conf/red5.properties
Also, can you describe how you made the cluster and is it on a local machine or cloud hosted!
--
Best Regards,
Mohit Dubey


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 31 Aug at 10:23 AM , Alex Lion <miister.alex@gmail.com> wrote: 
Hi,

I have a AntMedia EE 2.3.3.1 with Haproxy in front(443: edges, 5443: origins)
I have the same problem with AntMedia 2.4.

When I publish in origins and play from origins I don't have problem.
The problem is when I want to play from edges. I cannot get the WebRTC stream.

In the edges logs I have:

2021-08-31 07:20:20,833 [vert.x-eventloop-thread-3] ERROR io.vertx.core.impl.ContextImpl - Unhandled exception
java.lang.NullPointerException: null
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.stopDataChannel(EdgeClient.java:362)
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.stop(EdgeClient.java:337)
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.lambda$start$0(EdgeClient.java:126)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:919)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:887)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:229)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:221)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.run(VertxImpl.java:913)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:176)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)

What could be wrong ?

Thanks
-- 
 You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
 To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4cd1f80c-095b-4835-9c30-b28b17ffce42n%40googlegroups.com.
46433:1264838
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
Hi Alex,
Please let me know if you had any chance to see my last mail.
--
Best Regards,
Mohit Dubey


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 31 Aug at 9:46 PM , Ant Media Support <support@antmedia.io> wrote:
Hi Alex,
Hope you are doing well.
Can you please set useGlobalIp=true in server settings. You can find the server settings under <AMS_DIR>/conf/red5.properties
Also, can you describe how you made the cluster and is it on a local machine or cloud hosted!
--
Best Regards,
Mohit Dubey


 
Star Ant Media Server on GitHub and get a chance to win an AMS Annual Enterprise Edition License.


On Tue, 31 Aug at 10:23 AM , Alex Lion <miister.alex@gmail.com> wrote: 
Hi,

I have a AntMedia EE 2.3.3.1 with Haproxy in front(443: edges, 5443: origins)
I have the same problem with AntMedia 2.4.

When I publish in origins and play from origins I don't have problem.
The problem is when I want to play from edges. I cannot get the WebRTC stream.

In the edges logs I have:

2021-08-31 07:20:20,833 [vert.x-eventloop-thread-3] ERROR io.vertx.core.impl.ContextImpl - Unhandled exception
java.lang.NullPointerException: null
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.stopDataChannel(EdgeClient.java:362)
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.stop(EdgeClient.java:337)
at io.antmedia.enterprise.cluster.webrtc.EdgeClient.lambda$start$0(EdgeClient.java:126)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:919)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.handle(VertxImpl.java:887)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:229)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:221)
at io.vertx.core.impl.VertxImpl$InternalTimerHandler.run(VertxImpl.java:913)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:176)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)

What could be wrong ?

Thanks
-- 
 You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
 To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4cd1f80c-095b-4835-9c30-b28b17ffce42n%40googlegroups.com.
46433:1264838
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...