Hello,
I tried to configure XMPP notifications, which looks as quite easy task.
But these notification doesn't work and server log shows multiple errors:
[18-Nov-2015 23:10:13.391] [ERROR] XMPP: auth Cannot authenticate without resource
NetXMS 2.0-RC2 on Win 8.1 Pro, 64-bit.
Every help is more than welcome :)
Regards, Grzegorz.
Hi,
what XMPP server you are connecting to? Can you share your XMPP configuration parameters (without actual logins and passwords of course)?
Best regards,
Victor
Hi Victor,
Thanks for quick response.
My config regarding XMPP is:
EnableXMPPConnector = 1
XMPPServer = jid.pl
XMPPPort = 5222
My login/password works as expected using Psi XMPP client for Windows.
Regards, Grzegorz.
Hi,
can you try to set debug level to 6 - server will log XMPP conversation then and post it there? All XMPP related lines in log will be prefixed by XMPP:.
Best regards,
Victor
Hi Victor,
Attached you can find log for XMPP conversation.
If you need any additional info, let me know.
Best regards, Grzegorz.
Hi,
from trace it seems that credentials are invalid:
9820: [24-Nov-2015 22:49:16.519] [DEBUG] XMPP: RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><text xmlns="urn:ietf:params:xml:ns:xmpp-sasl">The response provided by the client doesn't match the one we calculated.</text></failure>
9824: [24-Nov-2015 22:49:16.550] [DEBUG] XMPP: RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/><text xmlns="urn:ietf:params:xml:ns:xmpp-sasl">Unable to authorize you with the authentication credentials you've sent.</text></failure>
Best regards,
Victor
Hi Victor,
As I wrote earlier, these credential works fine using PSI.
But I found something strange (probably bug) when I've checked my credentials.
In 'Server Configuration' table 'XMPP Pasword' was displayed correctly,
but when I double-clicked it, 'Edit Variable' dialog appeared and value was my password with additional, unexpectrd suffix 'mon' (a note sign and 'mon' string, see attached screenshot.) :o
I've removed this additional string and now it works perfectly :)
I don't know what to think about this...
Best regards, Grzegorz.
Looks like it was corrupted at some stage. Do you remember if you type your password or copy/paste it? What database you are using? Can it be that password got corrupted after server restart?
Best regards,
Victor
Hi Victor,
If I remembered correctly password was typed.
But few minutes later was edited and changed to new one because contained '_' character which was dissalowed by other XMPP client app.
After change server was restarted and result was described in my first post.
DB is PostgreSQL 9.4.5.
Hope this helps.
Best regards, Grzegorz.
Hi Victor,
Additional info: configured XMPP account works for some time after server restart, then disconnects from server.
XMPP client installed on my computer shows this particular account as 'disconnected'.
Also I found this in log file:
57941: [03-Dec-2015 20:41:28.504] [DEBUG] XMPP: Unrecoverable TLS error, 5.
57942: [03-Dec-2015 20:41:28.504] [DEBUG] XMPP: Closing socket.
57943: [03-Dec-2015 20:41:28.504] [DEBUG] XMPP: disconnected
57944: [03-Dec-2015 20:41:28.504] [DEBUG] XMPP: Stopping event loop.
58232: [03-Dec-2015 20:41:58.504] [DEBUG] XMPP: sock_connect to jid.pl:5222 returned 23200
58233: [03-Dec-2015 20:41:58.504] [DEBUG] XMPP: attempting to connect to jid.pl
58234: [03-Dec-2015 20:41:58.535] [DEBUG] XMPP: connection successful
Hope this shed some light what can be wrong.
Best regards, Grzegorz.