Jabber notification via ejabberd server doesn't work

I think problem in authorisation, but not sure.

Youtrack trying to connect to jabber server and receive 503 error: service-unavailable.

What exactly logs or, maybe, server set are needed for determine the problem?

Note: server normally working as chat, so, I think, the problem isn't there.

0
15 comments

I didn't post this question in bugtacker, because I've google for this there and concluded that I'm doing something wrong.

BTW, in TeamCity the same situation.

0

I too am having this same issue. I would like to figure out what is going on since it effects both youtrack and teamcity. Anything I can do to help or test would be great.

0

i have the same issue, jabber clients seem to work ok, teamcity says connection successful but YouTrack seems to throw up an error when I try to send a test message:

26 Jan 2012 23:08:26,492 ERROR [JabberServiceImpl   ] [tor-3] Error sending jabber message.

java.lang.RuntimeException: service-unavailable(503)

at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.getConnection(JabberServiceImpl.java:51)

at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl$1.run(JabberServiceImpl.java:111)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:636)

Caused by: service-unavailable(503)

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:78)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:404)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)

at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.login(JabberServiceImpl.java:61)

at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.getConnection(JabberServiceImpl.java:46)

... 4 more

26 Jan 2012 23:09:24,316 ERROR [WebrSessionListener ] [ger-0] Exception while sessionDestroyed

java.lang.NullPointerException

at jetbrains.charisma.installation.SetupContent_HtmlTemplateComponent.onDestroy(SetupContent_HtmlTemplateComponent.java:262)

at jetbrains.mps.webr.runtime.templateComponent.TemplateComponent.destroy(TemplateComponent.java:792)

at jetbrains.mps.webr.runtime.templateComponent.TemplateComponent.destroy(TemplateComponent.java:787)

at jetbrains.mps.webr.runtime.templateComponent.TemplateComponent.destroy(TemplateComponent.java:787)

at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.exitActionSafe(TemplateActionController.java:203)

at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.tryExitSafeWithTimeout(TemplateActionController.java:217)

at jetbrains.mps.webr.runtime.templateComponent.TemplateActionController.destroy(TemplateActionController.java:174)

at jetbrains.mps.webr.runtime.requestProcessor.WindowManager.destroy(WindowManager.java:54)

at jetbrains.mps.webr.runtime.session.WebrSessionListenerImpl.sessionDestroyed(WebrSessionListenerImpl.java:93)

at jetbrains.charisma.main.BeanContainerAwareWebrSessionListener.sessionDestroyed(BeanContainerAwareWebrSessionListener.java:19)

at jetbrains.mps.webr.runtime.session.WebrSessionListener.sessionDestroyed(WebrSessionListener.java:33)

at org.eclipse.jetty.server.session.AbstractSessionManager.removeSession(AbstractSessionManager.java:703)

at org.eclipse.jetty.server.session.AbstractSessionManager$Session.timeout(AbstractSessionManager.java:1039)

at org.eclipse.jetty.server.session.HashSessionManager.scavenge(HashSessionManager.java:300)

at org.eclipse.jetty.server.session.HashSessionManager.access$000(HashSessionManager.java:46)

at org.eclipse.jetty.server.session.HashSessionManager$2.run(HashSessionManager.java:234)

at java.util.TimerThread.mainLoop(Timer.java:534)

at java.util.TimerThread.run(Timer.java:484)

0

Hi!

Guys, it looks like problem of smack library, that we use in youtrack for jabber support.

I've created patched youtrack distr with the latest smack library version: http://download-ln.jetbrains.com/charisma/youtrack-3.1.2-smack-3.2.1.jar

Pls, try it and let me know if problem is still there.

0

Yep, thanks. For me it works fine.

It works only for JID with resource clarification. Maybe, this problem with mine set, because all messages there is in DB. But not sends to client.

And when I send messages to JID without resource through Strophe client - it sends it to each resource.

0

these are my latest logs, which differ from the previous ones, but either way ejabberd does not work. It is working as a chat server so am not sure if there is anything else that needs to be configured in ejabber to make it work with youtrack?? do you have to setup any particular channels or special settings for ejabber users??

30 Jan 2012 11:07:01,774 ERROR [JabberServiceImpl   ] [tor-1] Error sending jabber message.
java.lang.RuntimeException: service-unavailable(503)
    at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.getConnection(JabberServiceImpl.java:51)
    at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl$1.run(JabberServiceImpl.java:111)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
Caused by: service-unavailable(503)
    at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:77)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212)
    at org.jivesoftware.smack.Connection.login(Connection.java:348)
    at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.login(JabberServiceImpl.java:61)
    at jetbrains.mps.webr.notifications.runtime.spring.JabberServiceImpl.getConnection(JabberServiceImpl.java:46)
    ... 4 more

again it looks like a connection error, jabber is setup or normal 5222 port, but dont think it is configured for SSL or anything like that?, is youtrack trying to connect with ssl perhaps??

0

Pierre,

Is is possible somehow to connect to your ekabberd server, so I can debug the problem?

0

sure can you send me your email via pm or something so that I can give you details offline??

0

Pierre,

My email is vadim(dot)gurov(at)gmail(dot)com

0

There were incorrect jabber user name in settings.

No problem is resolved.

0

Last problem was mine only. All works correct.

0

I think the instructions on the settings page should be a bit clearer. Ihave raised a ticket for this to be made clearer in the next release.

0

Hi Pierre,

Thanks for your notice. I will go through the doc and will see to its enhancement.

Best regards,

Kate

0

I was tried on jabber.ru, qip.ru, jabber.org, talk.google.com. Works only on talk.google.com!

0
Avatar
Luis Javier Romero

Hi, I was able to configure the jabber notifications to Slack last friday. I didn't modified anything and right now it's not working.

Where can I search for any log error? I'm using In CLoud youtrack

0

Please sign in to leave a comment.