Jitsi with loadbalacing problem

I am stuck…

I have one Jistsi server with Jicofo, JVB, Prosody “Base install”, and Second server just with JVB

Both servers are over NAT.

If i set in prosody component_interface and i set ip of master server = 10.0.0.72 second server connect component and its look okey.
BUT:

  • focus component stop working
  • subdomain jitsi-videobridge.onmy.domain with error " componet not connected, bouncing error"
  • focus component not connected

If i comment in prosody config file line component_interface

  • focus work
  • subdomain work jitsi-videobridge.onmy.domain

bud on second server jvb stop connecting with error on master server

  • Incomming jabber connection, Component authentication faild for video3.onmy.domain

I am not sure what i made wrong… i am made it as video tutorial said so i am confused.

You need to change in /etc/jitsi/jicofo/config from JICOFO_HOST=“127.0.0.1” to JICOFO_HOST=“10.0.0.72”.

I am used here DNS name video2.onmy.domain with is public ip addres, translated on Firewall to 10.0.0.72.

It should by okey ? but IP address solution was my first tried and its dosent work too so i move it to hostnames, beacose looks like prosody is sensitive for diference between IP or DNS name, on his components

There is styl some errors, but its look that its work… i can see trafic on second server.

and UPS, on main server JVB didnt work conference faild… when is second server up, conference works on him… but on master uppps…

JVB LOG:
JVB 2019-06-27 10:00:22.809 SEVERE: [67] org.jitsi.meet.ComponentMain.call().299 not-authorized, host:10.0.0.72, port:5347
org.xmpp.component.ComponentException: not-authorized
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:243)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:242)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:222)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:291)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:276)
at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
JVB 2019-06-27 10:00:22.946 SEVERE: [48] org.jitsi.videobridge.health.Health.log() Health check failed in 0ms:
java.lang.Exception: No XMPP components
at org.jitsi.videobridge.health.Health.checkXmppConnection(Health.java:269)
at org.jitsi.videobridge.health.Health.doCheck(Health.java:225)
at org.jitsi.videobridge.health.Health.doRun(Health.java:495)
at org.jitsi.utils.concurrent.PeriodicRunnableWithObject.run(PeriodicRunnableWithObject.java:89)
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.run(RecurringRunnableExecutor.java:216)
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.runInThread(RecurringRunnableExecutor.java:292)
at org.jitsi.utils.concurrent.RecurringRunnableExecutor.access$000(RecurringRunnableExecutor.java:36)
at org.jitsi.utils.concurrent.RecurringRunnableExecutor$1.run(RecurringRunnableExecutor.java:328)

Prosody LOG:

Jun 27 10:03:22 jcp562c15e40df0 info    Incoming Jabber component connection
Jun 27 10:03:22 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:22 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:22 jcp562c15e40df0 info    component disconnected: video3.video2.onmy.domain (false)
Jun 27 10:03:27 jcp562c15639b80 info    Incoming Jabber component connection
Jun 27 10:03:27 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:27 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:27 jcp562c15639b80 info    component disconnected: video3.video2.onmy.domain (false)
Jun 27 10:03:32 jcp562c15f8d9a0 info    Incoming Jabber component connection
Jun 27 10:03:32 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:32 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:32 jcp562c15f8d9a0 info    component disconnected: video3.video2.onmy.domain (false)
Jun 27 10:03:37 jcp562c15ff7350 info    Incoming Jabber component connection
Jun 27 10:03:37 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:37 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:37 jcp562c15ff7350 info    component disconnected: video3.video2.onmy.domain (false)
Jun 27 10:03:42 jcp562c15a6acf0 info    Incoming Jabber component connection
Jun 27 10:03:42 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:42 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:42 jcp562c15a6acf0 info    component disconnected: video3.video2.onmy.domain (false)
Jun 27 10:03:44 jitsi-videobridge.video2.onmy.domain:component      warn    Component not connected, bouncing error for: <iq id='5TuRk-591' type='get' to='jitsi-videobridge.video2.onmy.domain' from='focus@auth.video2.onmy.domain/focus1475749520766'>
Jun 27 10:03:47 jcp562c160297e0 info    Incoming Jabber component connection
Jun 27 10:03:47 video3.video2.onmy.domain:component info    Component authentication failed for video3.video2.onmy.domain
Jun 27 10:03:47 mod_component   info    Disconnecting component, <stream:error> is: <stream:error><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Given token does not match calculated token</text></stream:error>
Jun 27 10:03:47 jcp562c160297e0 info    component disconnected: video3.video2.onmy.domain (false)

Not authorized, probably wrong secret for the component, or wrong id for the component. When subdomain is not specified the id is jitsi-videobridge.your-domain-com.

I found it…

I am not sure maybe is problem my English, but in tutorial is one point what you can bad undrestud. and he made one more mistake in syntax in video. But i found your post with same configuration but little bit different…

Dont setup on default install --subdomain… , just on slave server not at all…

Second i had bad full name of admin in prosody configuration.

Now i hadnt any error

So thanks you for help :slight_smile: