Adding second JVB giving errors

I am posting this issue after rummaging through the forums several times in last 3-4 weeks.

I have done this multiple times yet I am getting the following error on JVB2.

    org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: 'localhost:5222' failed because: localhost/127.0.0.1 exception: java.net.ConnectException: Connection refused (Connection refused)
        at org.jivesoftware.smack.SmackException$ConnectionException.from(SmackException.java:278)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:619)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:902)
        at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:383)
        at org.jitsi.xmpp.mucclient.MucClient.lambda$getConnectAndLoginCallable$7(MucClient.java:638)
        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)

I have done the following, yet I get the above error…

  1. Copy the whole sip properties file from JMS to JVB. Except for the MUC ID, everything else is same as the JMS.
  2. Added the public and private IPs for the NAT harvester

My system is on Oracle Cloud on Ubuntu 18.04.

My Jicofo gives this when I restart the second JVB2 server

        Jicofo 2020-06-23 21:09:30.377 INFO: [37] org.jitsi.jicofo.xmpp.BaseBrewery.log() Removed brewery instance: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d
    Jicofo 2020-06-23 21:09:30.377 INFO: [37] org.jitsi.jicofo.xmpp.BaseBrewery.log() A bridge left the MUC: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d
    Jicofo 2020-06-23 21:09:30.378 INFO: [37] org.jitsi.jicofo.bridge.BridgeSelector.log() Removing JVB: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d
    Jicofo 2020-06-23 21:09:30.379 INFO: [45] org.jitsi.jicofo.bridge.JvbDoctor.log() Stopping health-check task for: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d
    Jicofo 2020-06-23 21:09:36.208 INFO: [37] org.jitsi.jicofo.xmpp.BaseBrewery.log() Added brewery instance: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d
    Jicofo 2020-06-23 21:09:36.208 INFO: [37] org.jitsi.jicofo.bridge.BridgeSelector.log() Added new videobridge: Bridge[jid=jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d, relayId=null, region=null, stress=0.00]
    Jicofo 2020-06-23 21:09:36.209 INFO: [45] org.jitsi.jicofo.bridge.JvbDoctor.log() Scheduled health-check task for: jvbbrewery@internal.auth.mydomain/3068bf45-a6e7-4dfb-85a1-74411adab90d

I have not changed the Prosody Config since there were some posts which never mentioned about changiing. Also the official documentation of adding the second server does not mention it.

Another question is, do I need to have a “A Record” setup for XMPP or is it fine?

I have been trying this since last 3 weeks now. What is it that I am missing that I am unable to add the second JVB2 server?

Regards,

JVB tries to connect to the xmpp server on the localhost. I understand that is not the case, you need to fix that in jvb config setting the xmpp server ip address to connect to.

@damencho I have added the IP address to the shard.HOSTNAME but the the localhost:5222 error is gone.

While the issue remains the same in the frontend which is : the conference crashing every 10 - 15 seconds saying there is a problem, while I have a new error in the JVB logs.

2020-06-24 03:34:26.262 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=bu8th1ebi686u2 epId=4c4ae7b8 local_ufrag=bu8th1ebi686u2] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 172.18.20.225:53320/udp/host (stream-4c4ae7b8.RTP)
2020-06-24 03:34:26.283 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=bu8th1ebi686u2 epId=4c4ae7b8 local_ufrag=bu8th1ebi686u2] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 169.254.59.181:53321/udp/host (stream-4c4ae7b8.RTP)
2020-06-24 03:34:26.303 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=bu8th1ebi686u2 epId=4c4ae7b8 local_ufrag=bu8th1ebi686u2] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 192.168.1.6:53322/udp/host (stream-4c4ae7b8.RTP)
2020-06-24 03:34:26.354 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=53qsg1ebi686ug epId=25a7ee31 local_ufrag=53qsg1ebi686ug] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 172.18.20.225:53323/udp/host (stream-25a7ee31.RTP)
2020-06-24 03:34:26.375 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=53qsg1ebi686ug epId=25a7ee31 local_ufrag=53qsg1ebi686ug] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 169.254.59.181:53324/udp/host (stream-25a7ee31.RTP)
2020-06-24 03:34:26.395 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=53qsg1ebi686ug epId=25a7ee31 local_ufrag=53qsg1ebi686ug] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 192.168.1.6:53325/udp/host (stream-25a7ee31.RTP)
2020-06-24 03:34:26.576 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=53qsg1ebi686ug epId=25a7ee31 local_ufrag=53qsg1ebi686ug] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 152.67.167.16:64526/udp/relay (stream-25a7ee31.RTP)
2020-06-24 03:34:26.786 INFO: [182] [confId=a3553027cb735e9c gid=ff3143 stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=bu8th1ebi686u2 epId=4c4ae7b8 local_ufrag=bu8th1ebi686u2] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 152.67.167.16:59934/udp/relay (stream-4c4ae7b8.RTP)
2020-06-24 03:35:20.231 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=9okti1ebi69rm1 epId=6648f90a local_ufrag=9okti1ebi69rm1] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 172.18.20.225:53351/udp/host (stream-6648f90a.RTP)
2020-06-24 03:35:20.251 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=9okti1ebi69rm1 epId=6648f90a local_ufrag=9okti1ebi69rm1] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 169.254.59.181:53352/udp/host (stream-6648f90a.RTP)
2020-06-24 03:35:20.272 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=9okti1ebi69rm1 epId=6648f90a local_ufrag=9okti1ebi69rm1] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 192.168.1.6:53353/udp/host (stream-6648f90a.RTP)
2020-06-24 03:35:20.297 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=1qetg1ebi69rlh epId=62e277ac local_ufrag=1qetg1ebi69rlh] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 172.18.20.225:53354/udp/host (stream-62e277ac.RTP)
2020-06-24 03:35:20.318 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=1qetg1ebi69rlh epId=62e277ac local_ufrag=1qetg1ebi69rlh] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 169.254.59.181:53355/udp/host (stream-62e277ac.RTP)
2020-06-24 03:35:20.338 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=1qetg1ebi69rlh epId=62e277ac local_ufrag=1qetg1ebi69rlh] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 192.168.1.6:53356/udp/host (stream-62e277ac.RTP)
2020-06-24 03:35:20.479 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=1qetg1ebi69rlh epId=62e277ac local_ufrag=1qetg1ebi69rlh] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 152.67.167.16:54035/udp/relay (stream-62e277ac.RTP)
2020-06-24 03:35:20.675 INFO: [182] [confId=50612026cb2859da gid=ff2d0f stats_id=Deborah-bEf conf_name=beautifulundergraduatesstresscheaply ufrag=9okti1ebi69rm1 epId=6648f90a local_ufrag=9okti1ebi69rm1] ConnectivityCheckClient$PaceMaker.run#919: Pair failed: 10.0.0.20:10000/udp/host -> 152.67.167.16:52377/udp/relay (stream-6648f90a.RTP)

I dont see any errors in Jicofo and Prosody logs except the logs rolling that a new conference is added and a new BOSH connection initiated.

Again, I got this error in past and tried all steps yet the conference keeps restarting.

I tried this too as well Room crashes when anyone trys to join