powered by Jive Software

Monitoring Plugin not showing on Server GUI

Hi, after upgrading to Openfire 4.6.2, Monitoring plugin stop showing on the Server section in the GUI. Already tried to reinstall the same and old versions, restart the server but non worked. Java version is 1.8.0_202. OS. The OS is CENTOS 7. This is what the log file shows:

2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-core-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-bundle-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jakarta.xml.bind-api-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jakarta.activation-api-1.2.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-jaxrs-json-provider-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-jaxrs-base-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jettison-1.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jrobin-1.6.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/hamcrest-core-1.3.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jfreechart-1.0.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-queryparser-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-queries-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-sandbox-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/barcodes-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/slf4j-api-1.7.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/font-asian-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/io-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/layout-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/pdfa-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/sign-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/styled-xml-parser-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/rome-1.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/javax.activation-api-1.2.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/activation-1.1.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/txw2-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/istack-commons-runtime-3.0.8.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/stax-ex-1.8.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/FastInfoset-1.2.16.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/bcpkix-jdk15on-1.61.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/monitoring-2.2.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jersey-server-1.19.4.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jsr311-api-1.1.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-module-jaxb-annotations-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-annotations-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-core-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jackson-databind-2.12.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/junit-4.11.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jcommon-1.0.16.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/lucene-core-8.4.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/forms-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/hyph-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/kernel-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/svg-7.1.13.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/orsonpdf-1.7.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jdom-1.0.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jaxb-api-2.3.1.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/jaxb-runtime-2.3.2.jar
2021.03.24 17:18:56 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginClassLoader - Unloading plugin JAR file /opt/openfire/plugins/monitoring2.2.1/lib/bcprov-jdk15on-1.61.jar
2021.03.24 17:19:13 INFO [pool-6-thread-1]: org.jivesoftware.openfire.container.PluginManager - Successfully unloaded plugin 'monitoring2.2.1'.
2021.03.24 17:19:48 ERROR [pool-60-thread-1]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'monitoring':
java.lang.IllegalStateException: A task with ID MonitoringPlugin Conversations has already been added.
at org.jivesoftware.openfire.archive.ArchiveManager.add(ArchiveManager.java:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]
at org.jivesoftware.openfire.plugin.MonitoringPlugin.initializePlugin(MonitoringPlugin.java:198) ~[monitoring-2.2.1.jar!/:?]
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:683) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:375) [xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.container.PluginMonitor$MonitorTask$4.call(PluginMonitor.java:363) [xmppserver-4.6.2.jar:4.6.2]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1475) ~[xpp3-1.1.4c.jar:?]
at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:337) ~[xmppserver-4.6.2.jar:4.6.2]
at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) ~[xpp3-1.1.4c.jar:?]
at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:347) ~[xmppserver-4.6.2.jar:?]
at org.dom4j.io.XMPPPacketReader.read(XMPPPacketReader.java:176) ~[xmppserver-4.6.2.jar:?]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:173) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.6.2.jar:4.6.2]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

The crux here are these lines:

2021.03.24 17:19:48 ERROR [pool-60-thread-1]: org.jivesoftware.openfire.container.PluginManager - An exception occurred while loading plugin 'monitoring':
java.lang.IllegalStateException: A task with ID MonitoringPlugin Conversations has already been added.
at org.jivesoftware.openfire.archive.ArchiveManager.add(ArchiveManager.java:89) ~[xmppserver-4.6.2.jar:4.6.2]
at org.jivesoftware.openfire.archive.ConversationManager.start(ConversationManager.java:168) ~[monitoring-2.2.1.jar!/:4.6.2]

For some reason, the plugin fails to load, as it detects that part of its functionality is already running. Since you restarted, this can’t be a remnant of the old plugin (occasionally, we have plugins failing to unload properly, but that gets taken care of by restarting Openfire). It’s almost as if you have the plugin running twice. Can you check the plugins folder in the Openfire home directory, to see if you have jar files that are apparent copies of the monitoring plugin? You should see only one (monitoring.jar).

Thanks @guus for your quick response! I have checked the plugins folder and it has only one monitoring.jar file, as you can see:

The file that you highlighted has a different owner than most of the others (see the column on the right hand side). That’s probably causing issues.

Thanks @guus, but it doesn’t make any difference if I change the owner/group from the monitoring file and folder, the issue is still there and so when I reload openfire or the plugin, the monitoring folder returns to have root as owner and the same happens when I reinstall the plugin but in this case, it does with the monitoring.jar file too.

As you said in the first reply, it looks like there is some process duplicated as I can see when I uninstall the monitoring plugin, it still appears in the log file, like if there was installed this plugin. I haven’t been able to get rid of the plugin entirely so the process won’t be duplicated when I reinstall it. Any ideas on how to erase completely the monitoring plugin and processes, w/o erasing all the chat history? Already tried to uninstall and reboot the server, the log still shows like the monitoring plugin is there

When you shut down Openfire, remove monitoring.jar and the monitoring directory, then restart Openfire, and you still see references to the monitoring plugin being logged (without having re-installed the plugin) then… gremlins?

At this point, I’m wondering if some kind of mishap caused part of an older ‘monitoring’ directory to get copied into the directory of another plugin, something like that?

Can you reproduce this problem in a fresh installation of Openfire on another server?