powered by Jive Software

Openfire server - Monitoring plugin is absent

Guys, good time of the day.
Ubuntu Server 20.04.3, clean install of openfire_4.7.0 + plugin “Monitoring Service” 2.3.0.
There is no monitoring of message archives - there is no “Archiving” item on the “Server” tab at all.
Screenshots attached.
Please help me decide, thanks in advance.

Please review your Openfire logs to find any clues.

Sorry for the last post.
During the installation of the plugin, an error appears in the log:

"e[33mWARN e[m [pool-30-thread-1]: org.jivesoftware.openfire.archive.ArchiveIndexer[CONVERSATION] - 
2022.01.27 13:50:23 e[33mWARN e[m [pool-30-thread-1]: org.jivesoftware.openfire.archive.ArchiveIndexer[CONVERSATION] - Lucene index directory '/usr/share/openfire/monitoring/search' does not exist, but cannot be created!
2022.01.27 13:50:23 e[1;31mERRORe[m [pool-30-thread-1]: org.jivesoftware.openfire.archive.ArchiveIndexer[CONVERSATION] - An exception occurred while trying to load the Lucene property file that's expected to exist in: /usr/share/openfire/monitoring/search
java.io.FileNotFoundException: /usr/share/openfire/monitoring/search/indexprops.xml (No such file or directory)"

For some reason, the file is not created, despite the fact that all users have full rights to this directory (/usr/share/openfire/monitoring/search).
Just in case, I attach the log itself:
13:48 - server start (without plugin installed)
13:50 - plugin installation
13:52 - restart plugin from web interface
13:53 - restart openfire server

Thanks for any hint!
openfire.log (92.9 КБ)

This sounds like a difference between who owns the files and can access the directories and the user that is running the Openfire process. Can you verify that those two match?

1 Like

Yes, sure

administrator@testsrv:~$ ps aux | grep openfire
openfire   10012  0.8 12.7 3551844 507668 ?      Sl   14:29   0:19 /bin/java -server -DopenfireHome=/usr/share/openfire -Dlog4j.configurationFile=/usr/share/openfire/lib/log4j2.xml -Dlog4j2.formatMsgNoLookups=true -Dopenfire.lib.dir=/usr/share/openfire/lib -classpath /usr/share/openfire/lib/startup.jar -jar /usr/share/openfire/lib/startup.jar
adminis+   11879  0.0  0.0   6432   724 pts/0    S+   15:09   0:00 grep --color=auto openfire
administrator@testsrv:~$ sudo ls -l /usr/share/openfire/plugins/monitoring/
total 68
-rw-r--r-- 1 openfire openfire 21550 янв 27 13:52 changelog.html
drwxr-xr-x 4 openfire openfire  4096 янв 27 13:52 classes
drwxr-xr-x 4 openfire openfire  4096 янв 27 13:52 database
drwxr-xr-x 2 openfire openfire  4096 янв 27 13:52 i18n
drwxr-xr-x 2 openfire openfire  4096 янв 27 13:52 lib
-rw-r--r-- 1 openfire openfire   814 янв 27 13:52 logo_large.gif
-rw-r--r-- 1 openfire openfire   592 янв 27 13:52 logo_small.gif
-rw-r--r-- 1 openfire openfire  1983 янв 27 13:52 plugin.xml
-rw-r--r-- 1 openfire openfire  4363 янв 27 13:52 readme.html
drwxrwxrwx 2 openfire openfire  4096 янв 27 14:19 search	       <----- this catalog
drwxr-xr-x 6 openfire openfire  4096 янв 27 13:52 web

it turns out that the server is started as the openfire user and this user has full rights to the necessary directories

I noticed the same problem. I use the same ubuntu server, same openfire server and the same monitoring plugin. Maybe it’s a problem because I use java 11 jdk? What do you think?

I don’t think it’s in java. I have 8 JRE installed

1 Like

I understand that no one can help in solving this problem…