Mailarchiva 6.0.7 clean install error

325 views
Skip to first unread message

nisete...@gmail.com

unread,
Feb 16, 2018, 2:21:48 PM2/16/18
to MailArchiva
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

nisete...@gmail.com

unread,
Feb 16, 2018, 2:24:38 PM2/16/18
to MailArchiva
The exact error message when trying to import data from my IMAP account is this:

"""
Note Even when closing this window, the process will continue to run.
connecting to mail server for import imap.gmail.com
connected to mail server for import imap.gmail.com
failed to retrieve messages during polling operation:database service is not started
"""

jamie

unread,
Feb 16, 2018, 2:35:41 PM2/16/18
to MailArchiva
Try stopping the MA service, deleting the database. /var/opt/mailarchiva/ROOT/database, start server.

nisete...@gmail.com

unread,
Feb 16, 2018, 2:39:21 PM2/16/18
to MailArchiva
Hi Jamie, thank you for your response,

I have checked the /var/opt/mailarchiva/ROOT/ directory but it only contains queue and temp directories. There is no database directory at all.

jamie

unread,
Feb 16, 2018, 2:47:48 PM2/16/18
to MailArchiva
We recently upgraded the embedded database. It uses some sophisticated memory management. Perhaps, it is not compatible with your system. Can you check the debug.log file in /var/log/mailarchiva/core/debug/debug.log and /var/log/mailarchiva/ROOT/debug/debug.log. Also, /var/opt/mailarchiva/tomcat/logs/*. I think it has something to do with https://github.com/orientechnologies/orientdb/issues/7911.
Try editing /opt/mailarchiva/server/startserver, and adding -Djna.nosys=true to java options.

jamie

unread,
Feb 16, 2018, 3:19:38 PM2/16/18
to MailArchiva
Try 6.0.8. its updated to include
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.1</version>
</dependency>
Reply all
Reply to author
Forward
0 new messages