There is no log in openfire (openfire.log)

Version: openfire-4.7.5-1
A clean installation with an LDAP connection. After starting the service and any actions in the web interface, let the /usr/share/openfire/logs/ directory.
After clicking Clear, an empty file /usr/share/openfire/logs/openfire.log appears on the log page, which is not filled in the future.
When Trace Logging is enabled, there is a reaction, but all entries only end up in the journal. how can I fix this bug?

1 Like

What distribution did you use to install Openfire? Typically, logs are saved in <openfire_home>/logs/

You can inspect the file <openfire_home>/lib/log4j2.xml which is what Openfire uses to configure its logging system. Usage of this file is documented here: Log4j – Configuring Log4j 2

Good afternoon, the Red-os distribution version 7.3 was used to install openfire.

I do not know what that is. Which installer did you download from our website?

This version is not available on the site. Program version 4.7.5

Having same issue with openfire.log. Log is here /usr/share/openfire/logs
Stopped logging on 3.7.2024 shortly after install. Last entries:
2024.03.07 14:14:50.721 INFO [PluginMonitorExec-3]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin ‘search-1.7.4’.
2024.03.07 14:14:50.722 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.container.PluginMonitor - Finished processing all plugins.
2024.03.07 14:14:50.878 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s] - Started.
2024.03.07 14:14:50.906 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[socket_c2s-directTLS] - Started.
2024.03.07 14:14:50.914 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[socket_s2s] - Started.
2024.03.07 14:14:50.945 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[socket_s2s-directTLS] - Started.
2024.03.07 14:14:50.950 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[component] - Started.
2024.03.07 14:14:50.956 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[component-directTLS] - Started.
2024.03.07 14:14:50.960 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager] - Started.
2024.03.07 14:14:50.971 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.ConnectionListener[connection_manager-directTLS] - Started.
2024.03.07 14:14:50.990 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.spi.EncryptionArtifactFactory - Creating new SslContextFactory instance
2024.03.07 14:14:51.004 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.http.HttpSessionManager - Starting instance
2024.03.07 14:14:51.031 INFO [PluginMonitorTask-2]: org.jivesoftware.openfire.http.HttpBindManager - HTTP bind service started

Have experienced a few crashes that require reboot to recover.
Unable to see any logging happening. Checked log4j2.xml in /etc/openfire looks correct.

Forgot to mention it is version 4.8.1 recent install ldap ubuntu 22
Thank you,
Jon

Can you guys check if Openfire has ownership of the log file. ls -lh or whatever. if not give the correct permissions to Openfire.