powered by Jive Software

Openfire Disconnects after period of Time


#1

Hi Guys, im really much needed for your Support,
whichever i used of Client Side (Conversations, Xabber ,etc…) it workers the first few minutes
then the Client disconnects and when i try to send something from client to another it doesnt work, im using Openfire version 4.3.2, do anyone of you know what is the problem , why the client disconnects after a bit of time and the only solution to get them back is to restart the application or to relogin. appreciate any support.
Best
Ali


#2

Hi Ali!
In order to debug this issue, some logs (client + server side) would be appreciated. Oftentimes those logs already uncover, what the underlying issue is :slight_smile:.


#3

Try to turn off “stream management” on server side by setting “stream.management.active” = “false”.


#4

Hello Paul,
Thank you for responding, here you are my logs

2019.05.30 10:35:05 WARN [Jetty-QTP-AdminConsole-274123]: org.jivesoftware.util.cache.CacheFactory - CacheFactory - Unable to find a Plugin that provides clustering support.
2019.05.30 10:35:05 WARN [Jetty-QTP-AdminConsole-274123]: org.jivesoftware.util.cache.CacheFactory - Clustered cache factory strategy org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory not found
2019.05.30 10:35:51 WARN [socket_c2s-thread-4]: org.jivesoftware.openfire.nio.ClientConnectionHandler - Trying to ping a MINA connection that’s idle, but has no corresponding Openfire session. MINA Connection: org.jivesoftware.openfire.nio.NIOConnection@78a7e5bf MINA Session: (0x00000312: nio socket, server, /192.168.0.1:57250 => /10.0.0.14:5222)
2019.05.30 10:38:35 WARN [socket_c2s-thread-4]: org.jivesoftware.openfire.nio.ClientConnectionHandler - Trying to ping a MINA connection that’s idle, but has no corresponding Openfire session. MINA Connection: org.jivesoftware.openfire.nio.NIOConnection@4e0368fc MINA Session: (0x00000311: nio socket, server, /89.15.238.112:13118 => /10.0.0.14:5222)
2019.05.30 10:43:42 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to exception in session: (0x00000313: nio socket, server, null => 0.0.0.0/0.0.0.0:5222)
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_202]
at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:1.8.0_202]
at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:1.8.0_202]
at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:273) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:44) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:690) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124) ~[mina-core-2.0.7.jar:?]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) ~[mina-core-2.0.7.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:1.8.0_202]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
2019.05.30 10:49:26 WARN [Jetty-QTP-AdminConsole-274146]: org.jivesoftware.util.LocaleUtils - Missing resource for key: admin.item.sipark.settings.description in locale en
2019.05.30 10:50:41 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.nio.ClientConnectionHandler - Trying to ping a MINA connection that’s idle, but has no corresponding Openfire session. MINA Connection: org.jivesoftware.openfire.nio.NIOConnection@21f8bdf1 MINA Session: (0x00000314: nio socket, server, /89.15.238.112:18356 => /10.0.0.14:5222)


#5

This means that a client has closed its own connection for some reason. This might be a problem with your device or settings of OS (Android unloading it from memory, battery saving technics, etc.).


#6

Hi guys,
thank you the problem has been sovled by configuring the stream managment