AnsweredAssumed Answered

Help setting up Openfire with spectrum/gojara

Question asked by sdart on Jan 24, 2014
Latest reply on Jan 30, 2014 by siccak

Am hoping someone might be able to help me setup OF with spectrum/gojara for access to yahoo and gtalk transports.

I have followed your guide at http://community.igniterealtime.org/docs/DOC-2601 and also another athttp://community.igniterealtime.org/thread/46580 but I dont seem to be able to get OF to see spectrum or for spectrum to see gojara.

I installed gojara though the plugin interface and only ticked the bottom 2 options for spark.

I have then enabled the external component settings within OF and added a secret and left the port at 5275.

I have then registered the repo for spectrum and installed spectrum2 and spectrum2-backend-libpurple.

I created a new config file in /etc/spectrum2/transports called yahoo.cfg with the following:

 

DOMAIN.COM is where I have my fqdn.

 

[service]

server_mode = 0

jid = yahoo.xmpp.DOMAIN.COM

admin_jid = gojaraadmin@xmpp.DOMAIN.COM

password = secret

server = 127.0.0.1

port = 5275

backend_host = 127.0.0.1

users_per_backend=10

backend=/usr/bin/spectrum2_libpurple_backend

protocol=prpl-yahoo

[identity]

name=Spectrum Yahoo  Transport

type=yahoo

[logging]

config = /etc/spectrum2/logging.cfg

backend_config = /etc/spectrum2/backend-logging.cfg

[database]

type = sqlite3

[registration]

enable_public_registration=1

 

I then started spectrum:

 

sudo spectrum2_manager start

Starting /etc/spectrum2/transports/yahoo.cfg: OK

 

When I check external components within OF, it doesnt show.

 

I checked the log and it shows authentication error:

Component: Connecting XMPP server 127.0.0.1 port 5275

Component: Disconnected from XMPP server. Error: Authentication failed error

 

Do you know why it would fail on the authenticaiton? Is there anything else I need to setup?

 

I have tried to replace the host with the private address, localhost, 127.0.0.1 and its hostname, but still nothing.

 

cat /var/log/spectrum2/yahoo.xmpp.DOMAIN.COM/spectrum2.log
2014-01-23 11:10:29,975 INFO  Component: Creating component in gateway mode
2014-01-23 11:10:29,976 INFO  SQLite3Backend: Opening database /var/lib/spectrum2/yahoo.xmpp.DOMAIN.COM/database.sql
2014-01-23 11:10:29,980 INFO  NetworkPluginServer: Listening on host 127.0.0.1 port 31533
2014-01-23 11:10:29,980 INFO  NetworkPluginServer: Starting new backend /usr/bin/spectrum2_libpurple_backend --host 127.0.0.1 --port 31533 --service.backend_id=1 "-j" "yahoo.xmpp.DOMAIN.COM" "/etc/spectrum2/transports/yahoo.cfg"
2014-01-23 11:10:29,980 INFO  NetworkPluginServer: Tried to spawn first backend with pid 13678
2014-01-23 11:10:29,981 INFO  NetworkPluginServer: Backend should now connect to Spectrum2 instance. Spectrum2 won't accept any connection before backend connects
2014-01-23 11:10:30,987 INFO  NetworkPluginServer: New backend 0x6c9920 connected. Current backend count=1
2014-01-23 11:10:30,987 INFO  NetworkPluginServer: PING to 0x6c9920 (ID=)
2014-01-23 11:10:30,988 INFO  Component: Connecting XMPP server 127.0.0.1 port 5275
2014-01-23 11:10:30,989 INFO  Component.XML: XML OUT <?xml version="1.0"?><stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to="yahoo.xmpp.DOMAIN.COM" version="1.0">
2014-01-23 11:10:30,995 INFO  Component.XML: XML IN <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:component:accept" from="yahoo.xmpp.DOMAIN.COM"><stream:error xmlns:stream="http://etherx.jabber.org/streams"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>
2014-01-23 11:10:30,995 INFO  Component.XML: XML OUT <handshake>e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4</handshake>
2014-01-23 11:10:30,995 INFO  Component.XML: XML OUT </stream:stream>
2014-01-23 11:10:30,995 INFO  Component.XML: XML IN </stream:stream>
2014-01-23 11:10:30,995 INFO  Component: Disconnected from XMPP server. Error: Authentication failed error
2014-01-23 11:10:33,998 INFO  Component: Connecting XMPP server 127.0.0.1 port 5275
2014-01-23 11:10:33,999 INFO  Component.XML: XML OUT <?xml version="1.0"?><stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" to="yahoo.xmpp.DOMAIN.COM" version="1.0">

 

I also see something strange in the backend log, which shows a connection to 10.1.10.12 which doesnt have a proxy or dns and is not related in anyway to the openfire setup. This server is not referenced anywhere in the config of openfire spectrum or the server its self in dns/hosts

 

 

13678: 2014-01-23 11:10:30,039 INFO  libpurple: prefs:Reading /var/lib/spectrum2/yahoo.xmpp.DOMAIN.COM/prefs.xml
13678: 2014-01-23 11:10:30,040 INFO  libpurple: prefs:Finished reading /var/lib/spectrum2/
yahoo.xmpp.DOMAIN.COM/prefs.xml
13678: 2014-01-23 11:10:30,040 INFO  libpurple: util:requesting to fetch a URL
13678: 2014-01-23 11:10:30,040 INFO  libpurple: dnsquery:Performing DNS lookup for 10.1.10.12
13678: 2014-01-23 11:10:30,041 INFO  libpurple: dnsquery:IP resolved for 10.1.10.12
13678: 2014-01-23 11:10:30,041 INFO  libpurple: proxy:Attempting connection to 10.1.10.12
13678: 2014-01-23 11:10:30,041 INFO  libpurple: proxy:Connecting to
10.1.10.12:8080 with no proxy
13678: 2014-01-23 11:10:30,041 INFO  libpurple: proxy:Connection in progress
13678: 2014-01-23 11:10:30,041 INFO  libpurple: proxy:Connecting to
10.1.10.12:8080.
13678: 2014-01-23 11:10:30,041 INFO  libpurple: proxy:Connected to
10.1.10.12:8080.
13678: 2014-01-23 11:10:30,041 INFO  libpurple: util:request constructed
13678: 2014-01-23 11:10:30,045 INFO  libpurple: util:Response headers: 'HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 1050
Date: Thu, 23 Jan 2014 11:10:33 GMT
Connection: close

 

 

can anyone help in how they have openfire with spectrum transport setup?

 

Openfire - 3.8.2

Spectrum - 2.0 from repo

gojara - 2.0

 

On ubuntu 12.04

Outcomes