XMPP server hangs
-
Hi, every week or so on, we find XMPP server hanging and needing to restart.
There are some options/registry settings to change?
This beheaviour seems indipendent of upgrades of MDaeon that we made as soon as possible.
Regards,
Giovanni Tomassini
-
Arron Staff
What is happening on the server that is indicating the XMPP server is hanging?
What do the XMPPServer and XMPPServer-db logs show is happening? Can you upload the logs to us?
Is task manager showing the XMPP server using large amounts of memory? Large amounts of CPU or sustained CPU usage?
Are there entries logged in the Windows Event log? If there are, what do they say?
Does the XMPP server ever recover from the hang on its own?
Can you collect a series of hang dumps of WCXMPPServer.exe while the hang is occurring using the following instructions?
https://knowledge.mdaemon.com/how-to-collect-hang-dumps
Once you've collected the dumps, please put them in a zip file, along with the requested logs, and screen shots of the details tab of Task Manager showing the WCXMPPServer.exe process, and any errors logged in the windows event log.
https://mdaemon.sharefile.com/r-rc3922c1eed334d4dbf5e34f0bd04ccd6
-
@Arron Hi,
The XMPP was running but iin the log there are a lot of these from a certain time:
[Mon 2024-09-23 09:13:03] DEBUG: Plain authentication selected.
[Mon 2024-09-23 09:13:03] <<<[-1391397312]<?xml version='1.0'?><stream:stream to='some@domain' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
[Mon 2024-09-23 09:13:03] >>>[-1388393840]<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
[Mon 2024-09-23 09:13:03] DEBUG: User [some@user] login attempt failed for session [wcses-5650803985470239601] with socket [-1388393840].
[Mon 2024-09-23 09:13:03] DEBUG: Session [wcses-5650803985470239601] with socket [-1388393840] removed.
[Mon 2024-09-23 09:13:03] <<<[-1388393840]</stream:stream>
[Mon 2024-09-23 09:13:03] ERROR: Could not find session for socket [-1388393840] in PresenceStanza::HandlePresenceBroadcast
[Mon 2024-09-23 09:13:03] DEBUG: </stream:stream>
[Mon 2024-09-23 09:13:03] >>>[-1391397312]<?xml version='1.0'?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="some@domain" id="wcses-12432873430773544376" xml:lang="en" version="1.0">
[Mon 2024-09-23 09:13:03] DEBUG: Session [wcses-12432873430773544376] with socket [-1391397312] added.
[Mon 2024-09-23 09:13:03] >>>[-1391397312]<stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
[Mon 2024-09-23 09:13:03] <<<[-1391397312]<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
[Mon 2024-09-23 09:13:03] >>>[-1391397312]<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
[Mon 2024-09-23 09:13:03] DEBUG: Session [wcses-12432873430773544376] with socket [-1391397312] removed.
[Mon 2024-09-23 09:13:03] <<<[-1391397312]<?xml version='1.0'?><stream:stream to='some@domain' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
[Mon 2024-09-23 09:13:03] >>>[-1391397312]<?xml version='1.0'?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="provincia.arezzo.it" id="wcses-6292066152806491863" xml:lang="en" version="1.0">
[Mon 2024-09-23 09:13:03] DEBUG: Session [wcses-6292066152806491863] with socket [-1391397312] added.
[Mon 2024-09-23 09:13:04] >>>[-1391397312]<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
[Mon 2024-09-23 09:13:04] <<<[-1391397312]<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">*****************</auth>
[Mon 2024-09-23 09:13:04] DEBUG: Plain authentication selected.
[Mon 2024-09-23 09:13:04] >>>[-1391397312]<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
[Mon 2024-09-23 09:13:04] DEBUG: User [some@user] login attempt failed for session [wcses-6292066152806491863] with socket [-1391397312].
[Mon 2024-09-23 09:13:04] DEBUG: Session [wcses-6292066152806491863] with socket [-1391397312] removed.
[Mon 2024-09-23 09:13:04] <<<[-1391397312]</stream:stream>
[Mon 2024-09-23 09:13:04] ERROR: Could not find session for socket [-1391397312] in PresenceStanza::HandlePresenceBroadcast
[Mon 2024-09-23 09:13:04] DEBUG: </stream:stream>Please note i replaced real names for privacy.
From this point, non one can login to XMPP, even if email server worked correctly.
The only way to make start again was restarting the XMPP server, only.
In the event viewer there are no events related to XMPP
The server has pelnty of cpu and ram.
Regards,
Giovanni TOmassini
-
Arron Staff
OK, authentication starts failing for all users.
The next time the problems starts occurring, can you collect a series of hang dumps of WCXMPPServer.exe while the issue is occurring using the following instructions?
https://knowledge.mdaemon.com/how-to-collect-hang-dumps
Once you've collected the dumps, please put them in a zip file, along with the XMPPServer log, XMPPServer-db log, and MDaemon's system logs, as well as a screen shot of the Details tab of task manager that shows the WCXMPPServer.exe and upload the file to.
https://mdaemon.sharefile.com/r-rc3922c1eed334d4dbf5e34f0bd04ccd6
Please let us know the name of the file you have uploaded.
-
@Arron OK, i'll do