Retain Unified Archiving 4.x
A job ends just as the job starts, and no messages are dredged, and no mailboxes were counted in the job.
When looking at the RetainWorker log the following error is shown:
ERROR [RTWQuartzScheduler_Archive_Worker-2] com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy: reportError: sendMail :: com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy.returnCaller:55 :: 501 Authentication failed javax.mail.AuthenticationFailedExcpetion: 501 Authentication failed
at com.gwava.utils.Mailutils.sendMail (MailUtils.java:62)
at com.gwava.utils.Mailutils.sendMail (MailUtils.java: 455)...
Users are not archived entirely.
Run the sync365 script to download the address book and populates the exchangeusers.csv and exchangegroups.csv.
To help setup the sync365 and automate it see this KB here.
Also, check that the .csv files are in the location where Retain can see them. If running Retain on Windows, the csv files will be found in the C:\Program Files\Beginfinite\retain\RetainServer\WEB-INF\cfg.
If Retain is running on Linux then the files will need to be sent over via a WinSCP to the Linux server and placed in the /opt/beginfinite/retain/RetainServer/WEB-INF/cfg directory. Click here for instructions on how to set the WinSCP on a Windows box to move the .csv files to the Linux server.
In the Retain Web interface go to Module Configuration, and click Configure on the Exchange module.
Click on the Hosted Services tab.
Be sure that the I am using a hosted Exchange system is checked and the CSV Path is pointed to the correct location of the .csv files.
Once the sync365 script is run, and the csv files are populated with the users, and groups, and the CSV Pathis correct, then the job will run as normal and the error in the Worker log will not appear.
The issue is caused by the .csv files that are downloaded from Office 365, which contains the address book, are empty. This will cause the job to start and stop immediately and will throw an error in the Retain Worker log.