Problem during Install only jitsi video bridge!


#1

Hi team,
I have been installing jitsi solution. And i installed only jitsi video bridge on a server AWS.
And i met a error below. Pls help us resolve it.
Thanks,

JVB 2018-10-02 18:39:09.145 SEVERE: [14] 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.util.concurrent.PeriodicRunnableWithObject.run(PeriodicRunnableWithObject.java:87)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.run(RecurringRunnableExecutor.java:216)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.runInThread(RecurringRunnableExecutor.java:292)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.access$000(RecurringRunnableExecutor.java:36)
at org.jitsi.util.concurrent.RecurringRunnableExecutor$1.run(RecurringRunnableExecutor.java:328)

JVB 2018-10-02 18:39:14.066 SEVERE: [39] org.jitsi.meet.ComponentMain.call().323 java.net.ConnectException: Connection refused (Connection refused), host:localhost, por
t:5347
org.xmpp.component.ComponentException: java.net.ConnectException: Connection refused (Connection refused)
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:296)
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:315)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:300)
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)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:174)
… 12 more
JVB 2018-10-02 18:39:19.067 SEVERE: [39] org.jitsi.meet.ComponentMain.call().323 java.net.ConnectException: Connection refused (Connection refused), host:localhost, por
t:5347
org.xmpp.component.ComponentException: java.net.ConnectException: Connection refused (Connection refused)
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:296)
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:315)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:300)
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)
Caused by: java.net.ConnectException: Connection refused (Connection refused)


#2

For some reason prosody is not listening on localhost port 5347 or not running, you need to fix this. Either make it listen on localhost or change jvb to connect to the address where prosody is listening on that port.


#3

Thanks,
This are my prosody config and jitsi jvb config.
port prosody is default (5222).

file config was attached.
Thanks for reviewprosody.cfg.lua.txt (8.9 KB)
jitsi_jvb_config.txt (859 Bytes)


#4

Your prosody by default opens component_ports = { 5347 }. What is the output of netstat -anp | grep lua?


#5

Hi,
That is result

ubuntu@ip-172-31-40-185:~$ sudo netstat -anp | grep lua
tcp 0 0 127.0.0.1:5347 0.0.0.0:* LISTEN 30601/lua5.1
tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 30601/lua5.1
tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN 30601/lua5.1
tcp6 0 0 ::1:5347 :::* LISTEN 30601/lua5.1
tcp6 0 0 :::5222 :::* LISTEN 30601/lua5.1
tcp6 0 0 :::5269 :::* LISTEN 30601/lua5.1

And i attach prosody & jvb logfile.

Thanks,prosody.log (2.6 MB)
jvb.log.txt (5.8 KB)


#6

Strange, maybe try setting jvb_host=127.0.0.1 in /etc/jitsi/videobridge/config and restart it and check again the jvb log whether the exception disappeared.


#7

Hi,
I edited but it still wrong.

----------jvb config----------------
root@ip-172-31-40-185:/etc/jitsi/videobridge# more config

Jitsi Videobridge settings

sets the XMPP domain (default: none)

JVB_HOSTNAME=meet24.covavi.vn

sets the hostname of the XMPP server (default: domain if set, localhost otherwise)

JVB_HOST=127.0.0.1

sets the port of the XMPP server (default: 5275)

JVB_PORT=5222

sets the shared secret used to authenticate to the XMPP server

JVB_SECRET=kQsDRoIK

extra options to pass to the JVB daemon

JVB_OPTS="–apis=rest,xmpp" AUTHBIND=yes

adds java system props that are passed to jvb (default are for home and logging config file)

JAVA_SYS_PROPS="$JVB_EXTRA_JVM_PARAMS -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=videobridge -Dnet.java.si
p.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi -Djava.util.logging.config.file=/etc/jitsi/videobridge/logging.properties"
root@ip-172-31-40-185:/etc/jitsi/videobridge#

---------------------jvb.log-------------------------------------------------
JVB 2018-10-04 04:25:08.934 SEVERE: [77] org.jitsi.meet.ComponentMain.call().323 host-unknown, host:127.0.0.1, port:5222
org.xmpp.component.ComponentException: host-unknown
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:315)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:300)
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 2018-10-04 04:25:13.839 SEVERE: [14] 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.util.concurrent.PeriodicRunnableWithObject.run(PeriodicRunnableWithObject.java:87)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.run(RecurringRunnableExecutor.java:216)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.runInThread(RecurringRunnableExecutor.java:292)
at org.jitsi.util.concurrent.RecurringRunnableExecutor.access$000(RecurringRunnableExecutor.java:36)
at org.jitsi.util.concurrent.RecurringRunnableExecutor$1.run(RecurringRunnableExecutor.java:328)
JVB 2018-10-04 04:25:13.936 SEVERE: [77] org.jitsi.meet.ComponentMain.call().323 host-unknown, host:127.0.0.1, port:5222
org.xmpp.component.ComponentException: host-unknown
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:315)
at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:300)
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)

Thanks,


#8

Why did you change the port, the conponent port is 5347, 5222 is for xmpp client connections only?


#9

I think it was resovled.

sets the port of the XMPP server (default: 5275)

JVB_PORT=5347

I change JVB_PORT=5222 because after exc netstat i get listen port of xmpp is 5222.
I understood that JVB_PORT is port of XMPP service.
Thank for support.
And jvb.log is below. is it good? Could you tell me how can check jitsi jvb success and xmpp success?

Thanks,
----------------------------------jvb.log.--------------------------------------
JVB 2018-10-04 04:32:50.878 INFO: [10] org.jitsi.impl.neomedia.MediaServiceImpl.log() Warming up SecureRandom…
JVB 2018-10-04 04:32:50.880 INFO: [10] org.jitsi.impl.neomedia.MediaServiceImpl.log() Warming up SecureRandom finished.
JVB 2018-10-04 04:32:50.896 INFO: [10] org.jitsi.version.AbstractVersionActivator.start().119 JVB Version: JVB 0.1.1087
JVB 2018-10-04 04:32:50.900 INFO: [10] org.jitsi.rest.AbstractJettyBundleActivator.start().572 Not starting the Jetty service for org.jitsi.videobridge.rest.RESTBundleActivator(port=8080)
JVB 2018-10-04 04:32:50.920 INFO: [10] org.jitsi.rest.AbstractJettyBundleActivator.start().572 Not starting the Jetty service for org.jitsi.videobridge.rest.PublicRESTBundleActivator(port=-1)
JVB 2018-10-04 04:32:50.982 INFO: [10] org.jitsi.videobridge.octo.OctoRelay.start().114 Octo relay not configured.
JVB 2018-10-04 04:32:50.983 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.videobridge.AUTHORIZED_SOURCE_REGEXP=focus@auth.localhost/.*
JVB 2018-10-04 04:32:51.040 INFO: [14] org.ice4j.ice.harvest.AbstractUdpListener.() Initialized AbstractUdpListener with address 172.31.40.185:10000/udp. Receive buffer size 10485760 (asked for 10485760)
JVB 2018-10-04 04:32:51.041 INFO: [14] org.ice4j.ice.harvest.SinglePortUdpHarvester.() Initialized SinglePortUdpHarvester with address 172.31.40.185:10000/udp
JVB 2018-10-04 04:32:51.046 INFO: [14] org.ice4j.ice.harvest.AbstractTcpListener.addLocalAddresses() Not using link-local address /fe80:0:0:0:487:77ff:fea0:b7dc%eth0 for TCP candidates.
JVB 2018-10-04 04:32:51.075 WARNING: [14] org.jitsi.videobridge.IceUdpTransportManager.log() Failed to initialize TCP harvester on port 443: java.net.SocketException: Operation not permitted. Retrying on port 4443.
JVB 2018-10-04 04:32:51.075 INFO: [14] org.ice4j.ice.harvest.AbstractTcpListener.addLocalAddresses() Not using link-local address /fe80:0:0:0:487:77ff:fea0:b7dc%eth0 for TCP candidates.
JVB 2018-10-04 04:32:51.086 INFO: [14] org.jitsi.videobridge.IceUdpTransportManager.log() Initialized TCP harvester on port 4443, using SSLTCP:true
JVB 2018-10-04 04:32:51.113 INFO: [38] org.jitsi.xmpp.component.ComponentBase.loadConfig().202 Component org.jitsi.videobridge. config:
JVB 2018-10-04 04:32:51.114 INFO: [38] org.jitsi.xmpp.component.ComponentBase.loadConfig().203 ping interval: 10000 ms
JVB 2018-10-04 04:32:51.114 INFO: [38] org.jitsi.xmpp.component.ComponentBase.loadConfig().204 ping timeout: 5000 ms
JVB 2018-10-04 04:32:51.114 INFO: [38] org.jitsi.xmpp.component.ComponentBase.loadConfig().205 ping threshold: 3
JVB 2018-10-04 04:32:51.141 INFO: [14] org.jitsi.videobridge.health.Health.log() Performed a successful health check in 1384ms. Sticky failure: false
JVB 2018-10-04 04:33:01.230 INFO: [14] org.jitsi.videobridge.Videobridge.log() CAT=stat create_conf,conf_id=7ff795dae33dead conf_name=null,logging=false,conf_count=1,ch_count=0,v_streams=0
JVB 2018-10-04 04:33:01.243 FINE: [82] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component ‘JitsiVideobridge’) Processing IQ (packetId oBgE4-6):
JVB 2018-10-04 04:33:01.247 FINE: [82] org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV:
JVB 2018-10-04 04:33:01.324 INFO: [14] org.jitsi.videobridge.health.Health.log() Performed a successful health check in 182ms. Sticky failure: false
JVB 2018-10-04 04:33:11.120 FINE: [122] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component ‘JitsiVideobridge’) Processing IQ (packetId oBgE4-8):
JVB 2018-10-04 04:33:11.121 FINE: [122] org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV:
JVB 2018-10-04 04:33:11.324 INFO: [14] org.jitsi.videobridge.Videobridge.log() CAT=stat create_conf,conf_id=2ad9c5a528f86126 conf_name=null,logging=false,conf_count=1,ch_count=0,v_streams=0
JVB 2018-10-04 04:33:11.393 INFO: [14] org.jitsi.videobridge.health.Health.log() Performed a successful health check in 69ms. Sticky failure: false


#10

Hi,
I met another problem. That is present when i change config flowing manual install jitsi-meet on Git: https://github.com/jitsi/jitsi-meet/blob/master/doc/manual-install.md.

I create a new file prosody config meet24.covavi.vn.cfg.lua and save it to conf.avail folder and conf.d folder.
But when i start jvb there error on jvb log.
Pls, help me to check it.

Thanks,
meet24.covavi.vn.cfg.lua.txt (1.7 KB)
jvb.log (2).txt (13.1 KB)


#11

Do you have in your main prosody config something like: Include "conf.d/*.cfg.lua"?
Have you restarted prosody after adding the config file?