[jitsi-dev] JICOFO : Load Balancing error


#1

Hello,

I'm trying to enable JICOFO Load Balancing between two JVBs, the first JVB
is on the same server as JICOFO and the 2nd one is on an external
server.(please see the diagram attached)

I followed the documentation
https://github.com/jitsi/jicofo/blob/master/doc/load_balancing.md but I get
this error after restarting Jitsi services :

INFOS: [91]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().358
Subscribing to sharedStatsNode node at gipsy-ida02.ida.melanie2.i2
GRAVE: [91]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().377 Failed
to subscribe to sharedStatsNode at gipsy-ida02.ida.melanie2.i2 error:
item-not-found(-1)

​Concerning the step 3 in the documentation, I should add the videobridge
JIDs​ in /etc/prosody/prosody.cfg.lua right ? but how we connect JICOFO to
an external JVB?

Best regards,

···

--
*Hamza KHAIT*


#2

Jicofo uses a pubsub node to discover videobridges (you configure JVB to publish stats to that pubsub node). The errors you are getting indicate that the pubsub node doesn’t exist. JVB will try to create the pubsub node when it starts up. Do you see any errors in the JVB logs.

To answer your question about connecting an external JVB to jicofo, all you shoul need to do is configure the JVB to connect to the same xmpp server and xmpp domain that jicofo is connected to.

Devin

···

From: dev [mailto:dev-bounces@jitsi.org] On Behalf Of Hamza Khait
Sent: Tuesday, April 12, 2016 3:19 AM
To: Jitsi Developers
Subject: [jitsi-dev] JICOFO : Load Balancing error

Hello,

I'm trying to enable JICOFO Load Balancing between two JVBs, the first JVB is on the same server as JICOFO and the 2nd one is on an external server.(please see the diagram attached)

I followed the documentation https://github.com/jitsi/jicofo/blob/master/doc/load_balancing.md but I get this error after restarting Jitsi services :

INFOS: [91] org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().358 Subscribing to sharedStatsNode node at gipsy-ida02.ida.melanie2.i2
GRAVE: [91] org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().377 Failed to subscribe to sharedStatsNode at gipsy-ida02.ida.melanie2.i2 error: item-not-found(-1)

​Concerning the step 3 in the documentation, I should add the videobridge JIDs​ in /etc/prosody/prosody.cfg.lua right ? but how we connect JICOFO to an external JVB?

Best regards,

--
Hamza KHAIT
This email message is for the sole use of the intended recipient(s) and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, copying, disclosure or dissemination is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


#3

Thank you for your answer Devin.

JICOFO and JVB1 logs seems fine but JVB2 (the external one) can't reach
sharedStatsNode.

Here are logs of JVBs and Jicofo concerning sharedStatsNode :

- The 1st JVB (on the same server as JICOFO):
JVB 2016-04-12 17:00:33.244 INFOS: [21]
org.jitsi.videobridge.xmpp.ComponentImpl.info() SENT: <iq id="bVT42-1015"
to="gipsy-ida02.ida.melanie2.i2"
from="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2" type="set"><pubsub
xmlns="http://jabber.org/protocol/pubsub"><publish
node="sharedStatsNode"><item
id="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"><stats xmlns="
http://jitsi.org/protocol/colibri"><stat name="cpu_usage"
value="0,02284"/><stat name="used_memory" value="2245"/><stat
name="audiochannels" value="0"/><stat name="bit_rate_download"
value="0"/><stat name="rtp_loss" value="0"/><stat name="bit_rate_upload"
value="0"/><stat name="conferences" value="1"/><stat name="participants"
value="0"/><stat name="current_timestamp" value="2016-04-12
15:00:32.500"/><stat name="graceful_shutdown" value="false"/><stat
name="threads" value="63"/><stat name="total_memory" value="4206"/><stat
name="videochannels" value="0"/><stat name="videostreams"
value="0"/></stats></item></publish></pubsub></iq>
JVB 2016-04-12 17:00:33.245 INFOS: [60]
org.jitsi.videobridge.xmpp.ComponentImpl.info() RECV: <iq id="bVT42-1015"
type="result" to="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"
from="gipsy-ida02.ida.melanie2.i2"><pubsub xmlns="
http://jabber.org/protocol/pubsub"><publish node="sharedStatsNode"><item
id="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"/></publish></pubsub></iq>

- The 2nd JVB :
JVB 2016-04-12 17:03:47.107 INFOS: [1]
org.jitsi.impl.configuration.ConfigurationServiceImpl.info()
org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode
JVB 2016-04-12 17:03:47.233 INFOS: [12]
org.jitsi.videobridge.xmpp.ComponentImpl.info() SENT: <iq id="Q10AB-0"
to="gipsy-ida02.ida.melanie2.i2"
from="jitsi-videobridge.gipsy-ida01.ida.melanie2.i2" type="set"><pubsub
xmlns="http://jabber.org/protocol/pubsub"><create
node="sharedStatsNode"/></pubsub></iq>
JVB 2016-04-12 17:03:48.123 GRAVE: [26]
org.jitsi.videobridge.stats.PubSubStatsTransport.publishStatistics().282
Failed to publish to PubSub node: sharedStatsNode - it does not exist yet

- JICOFO logs:
Jicofo 2016-04-12 17:02:43.945 INFOS: [1]
org.jitsi.impl.configuration.ConfigurationServiceImpl.info()
org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode
Jicofo 2016-04-12 17:02:44.338 INFOS: [16]
org.jitsi.jicofo.ComponentsDiscovery.start().448 Bridges will be discovered
through PubSub stats on node: sharedStatsNode
Jicofo 2016-04-12 17:02:44.360 INFOS: [40]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().358
Subscribing to sharedStatsNode node at gipsy-ida02.ida.melanie2.i2

Do you have any idea about how to fix it ?

best regards,

···

On 12 April 2016 at 16:28, Devin Wilson <devin.wilson@readytalk.com> wrote:

Jicofo uses a pubsub node to discover videobridges (you configure JVB to
publish stats to that pubsub node). The errors you are getting indicate
that the pubsub node doesn’t exist. JVB will try to create the pubsub node
when it starts up. Do you see any errors in the JVB logs.

To answer your question about connecting an external JVB to jicofo, all
you shoul need to do is configure the JVB to connect to the same xmpp
server and xmpp domain that jicofo is connected to.

Devin

*From:* dev [mailto:dev-bounces@jitsi.org] *On Behalf Of *Hamza Khait
*Sent:* Tuesday, April 12, 2016 3:19 AM
*To:* Jitsi Developers
*Subject:* [jitsi-dev] JICOFO : Load Balancing error

Hello,

I'm trying to enable JICOFO Load Balancing between two JVBs, the first JVB
is on the same server as JICOFO and the 2nd one is on an external
server.(please see the diagram attached)

I followed the documentation
https://github.com/jitsi/jicofo/blob/master/doc/load_balancing.md but I
get this error after restarting Jitsi services :

INFOS: [91]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().358
Subscribing to sharedStatsNode node at gipsy-ida02.ida.melanie2.i2

GRAVE: [91]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().377 Failed
to subscribe to sharedStatsNode at gipsy-ida02.ida.melanie2.i2 error:
item-not-found(-1)

​Concerning the step 3 in the documentation, I should add the videobridge
JIDs​ in /etc/prosody/prosody.cfg.lua right ? but how we connect JICOFO
to an external JVB?

Best regards,

--

*Hamza KHAIT*
This email message is for the sole use of the intended recipient(s) and
may contain information that is privileged, confidential, and exempt from
disclosure under applicable law. Any unauthorized review, use, copying,
disclosure or dissemination is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
*Hamza KHAIT*


#4

Hi !

···

On Tue, Apr 12, 2016 at 10:09 AM, Hamza Khait <hamzakhait@gmail.com> wrote:

Thank you for your answer Devin.

JICOFO and JVB1 logs seems fine but JVB2 (the external one) can't reach
sharedStatsNode.

Here are logs of JVBs and Jicofo concerning sharedStatsNode :

- The 1st JVB (on the same server as JICOFO):
JVB 2016-04-12 17:00:33.244 INFOS: [21]
org.jitsi.videobridge.xmpp.ComponentImpl.info() SENT: <iq id="bVT42-1015"
to="gipsy-ida02.ida.melanie2.i2"
from="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2" type="set"><pubsub
xmlns="http://jabber.org/protocol/pubsub"><publish
node="sharedStatsNode"><item
id="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"><stats
xmlns="http://jitsi.org/protocol/colibri"><stat name="cpu_usage"
value="0,02284"/><stat name="used_memory" value="2245"/><stat
name="audiochannels" value="0"/><stat name="bit_rate_download"
value="0"/><stat name="rtp_loss" value="0"/><stat name="bit_rate_upload"
value="0"/><stat name="conferences" value="1"/><stat name="participants"
value="0"/><stat name="current_timestamp" value="2016-04-12
15:00:32.500"/><stat name="graceful_shutdown" value="false"/><stat
name="threads" value="63"/><stat name="total_memory" value="4206"/><stat
name="videochannels" value="0"/><stat name="videostreams"
value="0"/></stats></item></publish></pubsub></iq>
JVB 2016-04-12 17:00:33.245 INFOS: [60]
org.jitsi.videobridge.xmpp.ComponentImpl.info() RECV: <iq id="bVT42-1015"
type="result" to="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"
from="gipsy-ida02.ida.melanie2.i2"><pubsub
xmlns="http://jabber.org/protocol/pubsub"><publish
node="sharedStatsNode"><item
id="jitsi-videobridge.gipsy-ida02.ida.melanie2.i2"/></publish></pubsub></iq>

- The 2nd JVB :
JVB 2016-04-12 17:03:47.107 INFOS: [1]
org.jitsi.impl.configuration.ConfigurationServiceImpl.info()
org.jitsi.videobridge.PUBSUB_NODE=sharedStatsNode
JVB 2016-04-12 17:03:47.233 INFOS: [12]
org.jitsi.videobridge.xmpp.ComponentImpl.info() SENT: <iq id="Q10AB-0"
to="gipsy-ida02.ida.melanie2.i2"
from="jitsi-videobridge.gipsy-ida01.ida.melanie2.i2" type="set"><pubsub
xmlns="http://jabber.org/protocol/pubsub"><create
node="sharedStatsNode"/></pubsub></iq>
JVB 2016-04-12 17:03:48.123 GRAVE: [26]
org.jitsi.videobridge.stats.PubSubStatsTransport.publishStatistics().282
Failed to publish to PubSub node: sharedStatsNode - it does not exist yet

- JICOFO logs:
Jicofo 2016-04-12 17:02:43.945 INFOS: [1]
org.jitsi.impl.configuration.ConfigurationServiceImpl.info()
org.jitsi.jicofo.STATS_PUBSUB_NODE=sharedStatsNode
Jicofo 2016-04-12 17:02:44.338 INFOS: [16]
org.jitsi.jicofo.ComponentsDiscovery.start().448 Bridges will be discovered
through PubSub stats on node: sharedStatsNode
Jicofo 2016-04-12 17:02:44.360 INFOS: [40]
org.jitsi.impl.protocol.xmpp.OpSetSubscriptionImpl.doSubscribe().358
Subscribing to sharedStatsNode node at gipsy-ida02.ida.melanie2.i2

Do you have any idea about how to fix it ?

Try setting org.jitsi.videobridge.PUBSUB_SERVICE=gipsy-ida02.ida.melanie2.i2
on JVB2