MailArchiva relies on secure random to perform license checks, etc. Server startup times may be slow due to lack of available entropy on the machine.
If the output of the above command is below ten, insufficient entropy could be the reason why your server is slow to start. A possible solution is to install Haveged to increase the amount of entropy available.
To install Haveged on RHEL/Fedora/CentOS machines:
To install Haveged on CentOS 8:
Incorrect network configuration may slow startup. Specifically, the Java call:
InetAddress.getLocalHost();
Will be slow to perform if localhost is not setup correctly on /etc/hosts
127.0.0.1 servername
::1 servername
The server will attempt to repair the graph database on startup. It can take time to repair the database. If there are no folders to be preserved in the search interface, the graph database can be deleted/renamed by stopping the MailArchiva service, then deleting/renaming the following directories:
To protect against database coruption in future, be sure to shut down the server cleanly. Upgrade MallArchiva to the latest if the server is having trouble shutting down.