Can't get jabber working

705 views
Skip to first unread message

jeremys...@googlemail.com

unread,
Jul 4, 2013, 1:00:19 PM7/4/13
to ope...@googlegroups.com
I'm sure this should be the easy bit ;)

Trying loads of different jabber servers but all of them are giving me either a time out, or an error like this:

17:54:04.992 ERROR o.o.i.n.i.jabber.XMPPConnect[:126]- Could not establish connection to XMPP server 'jabber.org:5222': SASL authentication failed using mechanism DIGEST-MD5

Jonathan Spooner

unread,
Jul 5, 2013, 4:10:34 AM7/5/13
to ope...@googlegroups.com, jeremys...@googlemail.com
I can confirm it works fine with the latest openhab 1.2 with google hangouts.  Here are my settings to get things going.... how about we try to get your system working with google talk/hangouts too?  My username contains nothing of a google gmail account in there only because I host my personal domain's email with google.  But a gmail account will do fine too.

First things first, you need to register a gmail account for open hap to work... then you need to log into that gmail account yourself and go through all the google setup like time zones etc etc.  Once you can simply log into the mail account your about ready to get openhab using it.  It may help while your logged in to try chatting to your regular account to be sure its authorised and works first.

############################# XMPP configuration ######################################

# The XMPP server to use, e.g. "jabber.org" or "talk.google.com"
xmpp:servername=talk.google.com

# The XMPP Proxyserver to use, e.g. "gmail.com"
xmpp:proxy=gmail.com

# the server port to use (optional, defaults to 5222)
xmpp:port=5222

# the username and password for the sending XMPP account
xmpp:username=ope...@topnoc.co.uk
xmpp:password=XXXXXX

# a comma separated list of users that are allowed to use the XMPP console

###############################################################

Regards,

Jon

Kai Kreuzer

unread,
Jul 5, 2013, 4:43:37 AM7/5/13
to ope...@googlegroups.com
Hi,

I am actually using a jabber.org account and can connect to this server without a problem.
I would rather have expected that there is a problem with Google Hangout as since it replaced GTalk it is not supposed to support XMPP anymore (see http://stackoverflow.com/questions/16696761/google-hangouts-and-xmpp-support). If it still works, even better :-)

Regards,
Kai


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

jeremys...@googlemail.com

unread,
Jul 5, 2013, 7:43:33 AM7/5/13
to ope...@googlegroups.com, jeremys...@googlemail.com
I started off by using talk.google.com but when I couldn't get it working switched to Jabber as going to talk.google.com (:80) for info gave me stuff about hangouts so I wasn't sure...

My understanding of Jabber is that you should be able to use any Jabber server, as long as you specify full log in name (e.g. use 'jabber.com' as a server, but xx...@jabb3r.net username) - is this the case? Also, is a proxy required, and/or some kind of SSL cert?

jeremys...@googlemail.com

unread,
Jul 5, 2013, 11:11:32 AM7/5/13
to ope...@googlegroups.com, jeremys...@googlemail.com
I've switched to yet another jabber server, using jabber.at and my @jabber.at username. Still getting the below error - googling this seems to suggest that it's not getting the full username including the domain @jabber.at - is there any reason it might be truncating the username I wonder?

13:05:47.952 ERROR o.o.i.n.i.jabber.XMPPConnect[:126] - Could not establish connection to XMPP server 'jabber.at:5222': SASL authentication failed using mechanism DIGEST-MD5


On Thursday, 4 July 2013 18:00:19 UTC+1, jeremys...@googlemail.com wrote:

Jonathan Spooner

unread,
Jul 5, 2013, 3:17:47 PM7/5/13
to ope...@googlegroups.com, jeremys...@googlemail.com
Its a wild stab and feel I'm stating the obvious but you've got all the supporting SASL and MD5 libraries installed? I've no idea though what the java dependencies may be on these libraries?

Jon

Jeremy Sharp

unread,
Jul 5, 2013, 6:46:25 PM7/5/13
to Jonathan Spooner, ope...@googlegroups.com, jeremys...@googlemail.com
Yes, looks like it, all seem present and correct... if I've guessed at the right mods - is there a list of pre-reqs I can check I wonder?

Kai Kreuzer

unread,
Jul 6, 2013, 2:13:45 AM7/6/13
to ope...@googlegroups.com
Just for the record. These are my settings and they work like a charm:

# The XMPP server to use, e.g. "jabber.org"

# the server port to use (optional, defaults to 5222)
#xmpp:port=

# the username and password for the sending XMPP account

# a comma separated list of users that are allowed to use the XMPP console


Hope you will get it working!

Regards,
Kai

jeremys...@googlemail.com

unread,
Jul 6, 2013, 8:36:57 AM7/6/13
to ope...@googlegroups.com
Thanks Kai - yes those are my settings also. This site (different software, same error though) talks about disabling the custom digest. Wonder if there's somewhere I can do the same on my system? http://comments.gmane.org/gmane.comp.voip.sip-communicator.user/3208


On Saturday, 6 July 2013 07:13:45 UTC+1, Kai wrote:
Just for the record. These are my settings and they work like a charm:

# The XMPP server to use, e.g. "jabber.org"

# the server port to use (optional, defaults to 5222)
#xmpp:port=

# the username and password for the sending XMPP account

jeremys...@googlemail.com

unread,
Jul 9, 2013, 1:29:14 PM7/9/13
to ope...@googlegroups.com
Still no joy on this MD5 issue. Is there a list of pre-reqs for OpenHAB that I can check out? I'm sure it must be that I'm missing a library or something like that...?


On Saturday, 6 July 2013 07:13:45 UTC+1, Kai wrote:
Just for the record. These are my settings and they work like a charm:

# The XMPP server to use, e.g. "jabber.org"

# the server port to use (optional, defaults to 5222)
#xmpp:port=

# the username and password for the sending XMPP account

Kai Kreuzer

unread,
Jul 9, 2013, 6:54:48 PM7/9/13
to ope...@googlegroups.com
No, as it is all Java, there is no need for any prerequisites other than a JRE.
It must be a problem of the XMPP library used - Smack.
I'd suggest you try more googling, maybe you find a solution this way. There seem to be pretty many hits if you search for the error message...

Good luck,
Kai

jez.homea...@gmail.com

unread,
Jul 10, 2013, 7:47:54 AM7/10/13
to ope...@googlegroups.com
Ok, I will keep looking for Smack related issues. It's odd that some servers give me the MD5 error, and others just apparently fail to respond, although I can connect to port 5222 ok myself. I've also tried removing the domain from the username as one post I found suggested but nothing. If I find a fix I'll update this page with it.. Thanks...

otto.ja...@gmail.com

unread,
Sep 17, 2013, 5:33:33 PM9/17/13
to ope...@googlegroups.com, jeremys...@googlemail.com
Had the same error message on the jabber.at server. I removed the domain (user...@jabber.at -> username) and now it works.
Reply all
Reply to author
Forward
0 new messages