If the server doesn't start, the cause will usually be revealed in catalina.out and stdout.log files. These files are typically located at:
If the Tomcat directory does not exist, create it manually using File Explorer and restart MailArchiva service.
Another way to troubleshoot startup on Windows, is to run the MailArchiva process in console mode. Simply run C:Program FilesMailArchivaserverbinMailArchivaServer.exe from the command-line. It should output the reason why the server cannot start the console.
Server won't start due to the upgrade of MailArchiva. It may be necessary to follow these additional upgrade steps.
The server may not start because:
a) MailArchiva has been allocated more RAM than is physically available on your machine
b) MailArchiva has been allocated too little RAM. The minimum amount of allocated RAM should be 384 MB
c) On 32 bit OS platforms, MailArchiva has been allocated more than 1512m (the limit on 32bit Windows OS)
systemctl stop mailarchiva
Take note of heap space setting in /opt/mailarchiva/server/startserver CATALINA_OPTS
curl -sS https://bs.stimulustech.io/api/v1/download/product/maonprem/linux/latest | grep -oP '"downloadUrl": *"K[^"]*' | xargs curl | tar -xz -C /tmp && cd /tmp/mailarchiva_dist* && ./install
Please choose the same heap space setting as before.
mv /var/opt/mailarchiva/ROOT/queue/receive to mv /var/opt/mailarchiva/ROOT/queue/restore_receive
mv /var/opt/mailarchiva/ROOT/queue/index to mv /var/opt/mailarchiva/ROOT/queue/restore_index
It may also be necessary to clear the folder structures due to the Orient DB database corruption. Doing so will blow away folder structures, if any, but not user information. This is an optional step.
mv /var/opt/mailarchiva/ROOT/database/archiva /root/archiva (or backup location)
systemctl start mailarchiva
If the MailArchiva task tray applet isn't loaded, load it from the Windows program files menu.
Take note of Heap space settings in the MailArchiva applet. Right click Configure on the MailArchiva task tray applet, select Java tab ()
Download the latest setup from https://bs.stimulustech.io/downloads & run the setup
Follow the exact same heap space settings as used before.
Rename C:ProgramDataMailArchivawebappsROOTqueuereceive to C:ProgramDataMailArchivawebappsROOTqueuerestore_receive
Rename C:ProgramDataMailArchivawebappsROOTqueueindex to C:ProgramDataMailArchivawebappsROOTqueuerestore_index
It may also be necessary to clear the folder structures due to Orient DB database corruption. Doing so will blow away folder structures, if any, but not user information. This is an optional step.
Rename C:ProgramDataMailArchivawebappsROOTdatabasearchiva to C:archiva (or backup location)
Start MailArchiva from service applet
If the server still doesn't start, examine the log files below for clues:
/var/opt/mailarchiva/tomcat/logs (Linux)
C:ProgramDataMailArchivaTomcatlogs (Windows)
If the server doesn't start after having recently upgraded from a previous version, it could be that there is a mix-up in program files. The steps to resolve are as follows:
While upgrading MailArchiva to a newer version, it is possible that the setup could not shut down the previous version of MailArchiva and its program files could not be overwritten. To resolve this, try switching the MailArchiva Windows service to manual start using the Windows Services applet and reboot the machine. Thereafter, after the machine is rebooted, rerun the installer.
a) The server cannot listen on ports 8090, 8005, 8091, 8092, 8009 since they have already been taken
b) You can check if these ports are taken by doing the following:
From the Windows command-line, type:
c) On Windows, you can run MailArchiva in Console mode by running the C:Program FilesMailArchivaServerbinMailArchivaServer.exe file.
d) In the console output, if it complains about a port conflict, you know you need to change ports.
e) On Linux, you should see the symptoms of a port conflict in the /usr/local/mailarchiva/server/logs/catalina.out file.
Resolution:
(a) Edit the file server.xml in C:Program FilesMailArchivaServerconf or /usr/local/mailarchiva/server/conf and change the ports
MailArchiva loads multiple tenants based on the contents of the instances and program directoryserverwebapps folders. If there are backup files and directories placed in these folders, system instability can result. The resolution is to:
Stop the server
Rename [application data]/database to [application data]/database_bak
Start the server
It is possible that your queue database is corrupted.
Stop the server
Delete the contents of [application data]/queue/ctl
Start the server
There are multiple instances of the server running.
From the Windows Task Manager, kill all Java processes before starting the server
On Linux, enter the following command in the command prompt:
The location of the Java Runtime Environment is not on the PATH environment.
Resolution:
Add C:Program FilesMailArchivajrebin to the Windows PATH.
In some installations, Tomcat may not be able to locate the C++ runtime libraries.
Resolution:
Copy C:Program FilesMailArchivajrebinmsvcr71.dll to C:WindowsSystem32 and restart the server.
If your problem is not helped by any of the above, startup errors are usually displayed in the catalina.out log, located at:
Please also examine the log files in: