If problems occur during the operation of Benno MailArchiv, the first step should be to determine in which component of the system the error is likely occurring.
In the next step, each component will be examined in more detail.
Zuerst sollte festgestellt werden, ob der Archivierungsprozess definitiv läuft. Dieses kann am sichersten mit Hilfe von ps auf der Konsole festgestellt werden.
# ps ax|grep bennoarchive
The output should list a Java process. In this case, the service's log file should be examined (su).
If the Java process is not listed here, you should try starting it manually.
systemctl stop benno-archive systemctl start benno-archive
If starting via init script does not work, a direct start should be tested to display any error messages from the startup procedure.
su -s /bin/sh -c 'cd /opt/benno;java -jar bennoarchive.jar' - benno
The test can be ended with Ctrl-c .
The next step is to output the last line of the archiver's log file.
tail -30 /var/log/benno/archive.log
Under normal operating conditions, the start time of the daemon is recorded here. If emails have already been archived, this will also be displayed here.
2017-12-08 13:32:03,587 INFO Starting bennoarchive: 2.4.1 (171206112108) / bennocore: 2.4.1 (171207144008) 2017-12-08 13:32:03,587 INFO Starting management server on 127.0.0.1:2555 2017-12-08 13:48:33,592 INFO Read file /srv/benno/inbox/arch.XXreZhjL.eml.processing 2017-12-08 13:48:37,162 INFO Store Message in container BennoContainer/2017:F0707D587F16756B8F9D817682822349E60A878B5EE50A1E20F7BB66AC90400800
Der REST-Daemon wird ebenfalls per ps überprüft.
# ps ax|grep bennorest
The output should list a Java process. In this case, the service's log file should be examined (su).
If the Java process is not listed here, you should try starting it manually.
service benno-rest stop service benno-rest start
If starting via init script does not work, a direct start should be tested to display any error messages from the startup procedure.
su -s /bin/sh -c 'cd /opt/benno;java -jar bennorest.jar' - bennorest
The test can be ended with Ctrl-c .
The next step is to output the last line of the archiver's log file.
tail -30 /var/log/benno/rest.log
Under normal operating conditions, the start time of the daemon is recorded here. If emails have already been archived, this will also be displayed here.
2017-12-18 13:36:00,506 INFO Starting bennorest: 2.4.1 (171214140912) / bennocore: 2.4.1 (171207144008) 2017-12-18 13:36:02,124 INFO License in /etc/benno/benno.lic is valid 2017-12-18 13:36:02,124 INFO Starting Jetty server from file /etc/benno/jetty.xml 2017-12-18 13:36:02,207 INFO Read shared secret from /etc/benno/rest.secret