[jitsi-dev] Jitsi installation on Centos gives error


#1

Dear Yasen,

Thank you for the reply. We are studying to utilize the information. Appreciate your help. Below is the information requested (Point # 2).

1. How can we shutdown any running instance of jicofo or jvb? There is a script at: jicofo-master/script called "graceful_shutdown.py". Would you know its usage?
     Jicofo is started with our domain and secret as parameters.

2. An error is reported after we run ./jvb.sh as follows:

cd <base-dir>/jitsi-videobridge-linux-x86-462

./jvb.sh --host=localhost --domain=<our-domain>.local --port=5347 --secret=<our-secret>

The error logs:

*Prosody.error*

Jun 14 13:10:43 jitsi-videobridge.jitsi.<our-domain>.local:componenterrorSecond component attempted to connect, denying connection

*Prosody.log*

Jun 14 12:55:05 jcpdd7770infoIncoming Jabber component connection

Jun 14 12:55:05 jitsi-videobridge.jitsi.<our-domain>.local:componentinfoExternal component successfully authenticated

Jun 14 12:57:09 jcpdf7ec0infoIncoming Jabber component connection

Jun 14 12:57:09 jitsi-videobridge.jitsi.<our-domain>.local:componenterrorSecond component attempted to connect, denying connection

Jun 14 12:57:09 mod_componentinfoDisconnecting component, <stream:error> is: <stream:error><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Component already connected</text></stream:error>

Jun 14 12:57:09 jcpdf7ec0infocomponent disconnected: jitsi-videobridge.jitsi.<our-domain>.local (false)

Jun 14 13:10:43 jcpea1090infoIncoming Jabber component connection

Jun 14 13:10:43 jitsi-videobridge.jitsi.<our-domain>.local:componenterrorSecond component attempted to connect, denying connection

Jun 14 13:10:43 mod_componentinfoDisconnecting component, <stream:error> is: <stream:error><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Component already connected</text></stream:error>

Jun 14 13:10:43 jcpea1090infocomponent disconnected: jitsi-videobridge.jitsi.<our-domain>.local (false)

Jitsi / JVB Error Log:

2015-05-14 13:10:42.609 INFO: [9] org.jitsi.impl.configuration.ConfigurationServiceImpl.info() failed to find jitsi-defaults.properties with class loader, will continue without it.

2015-05-14 13:10:42.609 INFO: [9] org.jitsi.impl.configuration.ConfigurationServiceImpl.info() Normal classloader

2015-05-14 13:10:42.610 INFO: [9] org.jitsi.impl.configuration.ConfigurationServiceImpl.info() failed to find jitsi-default-overrides.properties with class loader, will continue without it.

2015-05-14 13:10:42.737 INFO: [9] impl.resources.ResourceManagementActivator.start().70 Resource manager STARTED

2015-05-14 13:10:42.738 INFO: [9] impl.resources.ResourceManagementActivator.start().79 Resource manager REGISTERED

2015-05-14 13:10:42.759 INFO: [9] impl.netaddr.NetworkAddressManagerServiceImpl.start().81 Network Address Manager...[STARTED ]

2015-05-14 13:10:42.759 INFO: [9] impl.netaddr.NetworkAddressManagerServiceImpl.start().87 Network Address Manager Service ...[REGISTERED]

2015-05-14 13:10:42.763 INFO: [9] impl.packetlogging.PacketLoggingActivator.start().89 Packet Logging Service ...[REGISTERED]

2015-05-14 13:10:42.775 INFO: [9] org.jitsi.videobridge.metrics.MetricLoggingHandler.info() Metric services enabled: 0

2015-05-14 13:10:43.095 INFO: [9] org.jitsi.videobridge.version.VersionActivator.start().67 Jitsi Videobridge Version: JVB 0.1.462

2015-05-14 13:10:43.136 INFO: [9] org.jitsi.videobridge.osgi.OSGiBundleActivator.info() net.java.sip.communicator.SC_HOME_DIR_NAME=.sip-communicator

2015-05-14 13:10:43.136 INFO: [9] org.jitsi.videobridge.osgi.OSGiBundleActivator.info() net.java.sip.communicator.SC_HOME_DIR_LOCATION=/root

2015-05-14 13:10:43.208 SEVERE: [1] util.UtilActivator.uncaughtException().108 An uncaught exception occurred in thread=Thread[main,5,main] and message was: conflict

org.xmpp.component.ComponentException: conflict

at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:219)

at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:221)

at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:201)

at org.jitsi.videobridge.Main.main(Main.java:273)

···

--

Regards,

Susheel Jalali

Customer Operations Leader,

Coscend Communications Solutions

_Susheel.Jalali@CoscendCommunications.com_

Web site:www.CoscendCommunications.com <http://www.coscendcommunications.com/>

------------------------------------------------------------------

CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages from Coscend Communications Solutions' posted at: http://www.CoscendCommunications.com/Terms_and_Conditions.html <http://www.coscendcommunications.com/Terms_and_Conditions.html>

On Sun, 14 Jun 2015 18:51:37 +0300 Yasen Pramatarov wrote:

/On Sun, 14 Jun 2015 19:26:08 +0530 Susheel Jalali wrote:

/>/
/>>/1. How does someone access Jitsi services. In DNS what is the entry
/>>/to be given. What OS ports and Firewall ports are being used by which
/>>/of these: Prosody, Nginx, Jitsi-Videobridge (JVB), Jicofo, Jitsi-Meet.
/>/
/>/ You access the hostname of the machine on port 443 with a browser.
/>/
/>>/2. Which ports need to be opened in OS and network firewall-router
/>>/e.g. 5222, 5269, 5060, 5061, 5280, 5281 ?
/>/
/>/ From outside -- 443 TCP (and 80 if you wish to have redirects
/>/ http->https) and 1000-2000 UDP.
/
  That was a typo, I meant 10000-20000 UDP

/ Locally -- 5222, 5223, 5347 and if you use etherpad, 9001 (or other if

/>/ it's configured)
/>/
/>>/3. When we run ./jvb.sh, it runs fine. However, when we run
/>>/./jicofo.sh, we get following errors:
/>/[...]
/>>/conflict org.xmpp.component.ComponentException: conflict
/>>/ at
/>>/org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:219)
/>>/ at
/>>/org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:221)
/>>/ at
/>>/org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:201)
/>>/ at org.jitsi.videobridge.Main.main(Main.java:273)
/>/
/>/ How exactly are you running jicofo? Seems it can't register with the
/>/ prosody. You can mask any passwords and addresses, but what command
/>/ line (and/or config files) are you using?
/
  You may have another jicofo already running hence this conflict.
  Double check the command lines that you are running jvb and jicofo.
  You should also have the error messages for this in /var/log/prosody.

  BTW you didn't say are you installing RPMs from converted deb packages
  or it's all manual install? The packages should run the bridge and
  jicofo automatically as system services, no need to run them manually
  (like when you are installing manually).

/4. For various *.<domain-name>.com, should we make entries in

/>>//etc/hosts and restart network.
/>/
/>/ No, you need only the hostname of the machine.
/
--

/ Yasen Pramatarov

/|/ Lindeas Ltd.https://lindeas.com
/|/ 'working on GNU/Linux ideas'
/|/ Professional Jitsi Meet services
/


#2

1. How can we shutdown any running instance of jicofo or jvb? There
is a script at: jicofo-master/script called "graceful_shutdown.py".
Would you know its usage?

Just kill it. you can try with this python script too, but you are not
losing anything now, as it's not working as expected anyway. Kill it.

2. An error is reported after we run ./jvb.sh as follows:

[...]

Jun 14 13:10:43
jitsi-videobridge.jitsi.<our-domain>.local:componenterrorSecond
component attempted to connect, denying connection

So you have another instance of jvb runing?

You can check with `ps ax | grep jvb` how many videobridges you have
running. Kill them all. Do the same for jicofo.

Then start them one by one. Start jvb and look for errors in prosody
and error outputs from jvb.sh. Then the same fir jicofo.

You should have each one of them running only once. Check with ps ax.

···

On Mon, 15 Jun 2015 18:03:14 +0530 Susheel Jalali wrote:

--

Yasen Pramatarov
Lindeas Ltd. https://lindeas.com
'working on GNU/Linux ideas'
Professional Jitsi Meet services