[jitsi-dev] not authorized error while integrating jitsi-videobridge with ejabbered


#1

I'm new to the product and love what I've seen so far. I'm wanting to use
jitsi-videobridge with an XMPP server to do something like what jitsi-meet
does, but integrated into a mobile app. I'm having an issue with
integrating jitsi-videobridge with ejabbered to test it out with some
existing XMPP client apps. Chat and MUC seem to be working fine in
ejabbered with basic XMPP apps, so I know it's at least mostly working.

jitsi-videobridge error:

JVB 2016-05-13 18:03:37.066 SEVERE: [20]
org.jitsi.meet.ComponentMain.call().278 not-authorized, host:localhost,
port:5275
org.xmpp.component.ComponentException: not-authorized
        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.meet.ComponentMain$3.call(ComponentMain.java:270)
        at org.jitsi.meet.ComponentMain$3.call(ComponentMain.java:255)
        at
org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)

ejabbered debug log:

2016-05-13 18:03:37.064 [info] <0.468.0>@ejabberd_listener:accept:333
(#Port<0.18809>) Accepted connection 127.0.0.1:63860 -> 127.0.0.1:5275
2016-05-13 18:03:37.065 [info] <0.487.0>@ejabberd_service:init:124
({socket_state,gen_tcp,#Port<0.18809>,<0.486.0>}) External service connected
2016-05-13 18:03:37.065 [debug]
<0.486.0>@ejabberd_receiver:process_data:284 Received XML on stream =
<<"<stream:stream xmlns=\"jabber:component:accept\" xmlns:stream=\"
http://etherx.jabber.org/streams&quot;
to=\"jitsi-videobridge.[EJABBEREDDOMAIN]\">">>
2016-05-13 18:03:37.065 [debug]
<0.486.0>@ejabberd_receiver:process_data:284 Received XML on stream =
<<"<handshake>ed7d95ec6b5a75720a543df24e68f2ec5d965f88</handshake>">>
2016-05-13 18:03:37.066 [info] <0.487.0>@ejabberd_service:terminate:381
terminated: normal

ejabbered config entry:

···

-
    port: 5275
    module: ejabberd_service
    host:
      "jitsi-videobridge.[EJABBEREDDOMAIN]":
        password: "secret"

jitsi-videobridge command:

jvb --secret=secret --domain=[EJABBEREDDOMAIN] --host=localhost

This is running both on a single Windows 8.1 dev machine with a fresh
installation of the latest versions of both ejabbered and
jitsi-videobridge. No other configuration changes were made. I replaced
the real domain above in the config, command, and debug log. Everything
else is copied from the config and command.

Any help on where to look next would be appreciated.

Thanks!