Logs folder not updating

Hi,
My Openfire version updated on 4.4.4 from 4.2.1. Openfire version 4.2 was a fresh installation and later we upgrade due to this issue. The issue got resolved after upgrading version but now I can’t able to create a new user using RestAPI. Also logs not recording in the logs folder.

2020.03.04 10:11:54 WARN [Jetty-QTP-AdminConsole-964642]: org.jivesoftware.admin.LoginLimitManager - Failed admin console login attempt by admin from 127.0.0.1
2020.03.04 10:12:48 WARN [Jetty-QTP-AdminConsole-925971]: org.jivesoftware.admin.LoginLimitManager - Failed admin console login attempt by admin from 127.0.0.1
2020.03.04 10:43:10 INFO [Shutdown Hook]: org.logicalcobwebs.proxool.openfire - Shutting down 'openfire' pool immediately [Shutdown Hook]
2020.03.04 10:43:10 INFO [Thread-1]: org.jivesoftware.openfire.XMPPServer - Shutting down 49 modules ...
2020.03.04 10:43:10 INFO [Shutdown Hook]: org.logicalcobwebs.proxool.PrototyperController - Stopping Prototyper thread
2020.03.04 10:43:10 INFO [Shutdown Hook]: org.logicalcobwebs.proxool.HouseKeeperController - Stopping HouseKeeper thread
2020.03.04 10:43:10 INFO [Thread-1]: org.jivesoftware.openfire.pubsub.PubSubPersistenceManager - Flushing write cache to database
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s-legacyMode] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[socket_s2s] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[component] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[component-legacyMode] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager-legacyMode] - Stopped.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.http.HttpSessionManager - Stopping instance
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.http.HttpBindManager - HTTP bind service stopped
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.XMPPServer - Shutting down plugins ...
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Shutting down. Unloading all loaded plugins...
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Unloaded plugin 'admin'.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Unloaded plugin 'broadcast-1.9.0'.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Unloaded plugin 'monitoring'.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Unloaded plugin 'restapi'.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.container.PluginManager - Unloaded plugin 'search'.
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.XMPPServer - Openfire stopped
2020.03.04 10:43:11 INFO [Thread-1]: org.jivesoftware.openfire.XMPPServer - Server halted

This is last portion of lot that time i upgrade the version.

I have the same issue.
FreeBSD 12.2. After update from 4.2.3 to 4.5.2 logs not writes any more. Now, I have Openfire 4.6.4 and the same problem. In clean installation the main logging also not work.
I mean, that files all.log, debug.log, error.log, info.log and warn.log not updating. Some other logs are writes, for example rdp.log and xmldebugger.log.
I tried to change permission to 777 on logs folder.
Also I tried to write absolute path to logfile in log4j2.xml file.

And, finally, I tried to run Openfire by command from shell by root:
java -server -jar -Xmx256M -Dopenfire.lib.dir=/usr/local/share/java/openfire/lib -DopenfireHome=/usr/local/share/java/openfire /usr/local/share/java/openfire/lib/startup.jar
In this case I saw many informational messages, but stiil dont have any updates of logfiles.

What I can to check also?

up

Please review the location that Openfire reports in the admin console to where it is writing the log files to. You can find that on the log viewer page, as shown below:

When starting from a shell script, make sure to include the following parameter to point at the location of the log configuration file: -Dlog4j.configurationFile=/path/to/log4j2.xml. To modify your example (assuming that the paths that you use are correct):

java -server -jar -Xmx256M \
   -Dopenfire.lib.dir=/usr/local/share/java/openfire/lib \
   -DopenfireHome=/usr/local/share/java/openfire \
   -Dlog4j.configurationFile=/usr/local/share/java/openfire/lib/log4j2.xml \
   /usr/local/share/java/openfire/lib/startup.jar`

Thank you very much!
I missed this additional parameter

-Dlog4j.configurationFile=/usr/local/share/java/openfire/lib/log4j2.xml

when updated Openfire port for FreeBSD to the new compiler 1.5 years ago. I will add this to the port during next update.

2 Likes