I have installed mailarchiva 6.0.7 in ubuntu 16.04 LTS container (LXD) following instructions here:
http://help.mailarchiva.com/enterprise-linux-install
I can add IMAP account and start downloading new emails. When I try to download previous emails going to volume and import data, I get an error telling me that DB is not running.
Going to cli when I enter "sudo systemctl status mailarchiva" I get the following:
sudo systemctl status mailarchiva
● mailarchiva.service - LSB: Start MailArchiva Email Archive
Loaded: loaded (/etc/init.d/mailarchiva; bad; vendor preset: enabled)
Active: failed (Result: resources) since Fri 2018-02-16 19:09:25 UTC; 1min 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 358 ExecStart=/etc/init.d/mailarchiva start (code=exited, status=0/SUCCESS)
Feb 16 19:09:24 mailarchiva su[385]: Successful su for root by root
Feb 16 19:09:24 mailarchiva su[385]: + ??? root:root
Feb 16 19:09:24 mailarchiva su[385]: pam_unix(su:session): session opened for user root by (uid=0)
Feb 16 19:09:25 mailarchiva mailarchiva[358]: Existing PID file found during start.
Feb 16 19:09:25 mailarchiva mailarchiva[358]: Removing/clearing stale PID file.
Feb 16 19:09:25 mailarchiva mailarchiva[358]: Tomcat started.
Feb 16 19:09:25 mailarchiva systemd[1]: mailarchiva.service: PID file /var/run/mailarchiva.pid not readable (yet?) after start: No such file or directory
Feb 16 19:09:25 mailarchiva systemd[1]: Failed to start LSB: Start MailArchiva Email Archive.
Feb 16 19:09:25 mailarchiva systemd[1]: mailarchiva.service: Unit entered failed state.
Feb 16 19:09:25 mailarchiva systemd[1]: mailarchiva.service: Failed with result 'resources'.
On log file "/var/log/mailarchiva/ROOT/debug/debug.log" I got some errors like following:
2018-02-16 17:32:27 t.c.s.a.d.DatabaseService [ERROR] failed to shutdown database:null
2018-02-16 17:49:49 t.c.s.a.p.SearchBean [ERROR] error during connecting to DB
I don't know which database is it using or how to start/stop it. Is it there something I can try to find and solve the issue? First thing I tried was to install mailarchiva 6.0.7 in a virtual machine (not a container), but the result was the same.
Any ideas?
Javier