Unable to export to PST/PDF after migration to new server

  • 7025192
  • 09-Jul-2021
  • 09-Jul-2021

Environment

Retain Unified Archiving 4.x

Situation

In the Retain Admin Console, one or more messages are selected to export. Does not matter if exporting to PST or PDF, nothing happens once the Export button is selected.

In the RetainServer log, the following errors will be seen:

09:07:32, 894[ajp-nio-127.0.0.1-48009-exec-8] [INFO ] PSTExport: PST Export License is Active Now.
09:07:33, 316[ajp-nio-127.0.0.1-48009-exec-8] [ERROR] Files: Warning: /media/retain/archives/export/JoeUser couldn't be created.
09:07:33, 356[ajp-nio-127.0.0.1-48009-exec-8] [DEBUG] PDFQueue: PDF Export Job submitted
09:07:33, 358[PDFExportTask] [INFO ] PdfExport: Export starting
Export job JoeUser.1; page size: letterPortrait
max PDF size: 2147483648; max attachment size: 2147483647
included extensions: []
excluded extensions: []
export dangerous extensions: 0
09:07:33, 376[PDFExportTask] [DEBUG] PdfExport: creating collection PDF, jobId JoeUser.1
09:07:33, 381[PDFExportTask] [ERROR] ServerErrorHandlerStrategy: reportError: PdfExport.createCollectionPdf :: com.gwava.publish.PdfExport.createCollectionPdf:555 :: EXCEPTION : java.io.IOException: No such file or directory java.io.IOException: No such file or directory
    at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.base/java.io.File.createTempFile(File.java:2092)
    at com.gwava.publish.PdfExport.initDocument(PdfExport.java:742)
    at com.gwava.publish.PdfExport.createCollectionPdf(PdfExport.java:390)
    at com.gwava.publish.PdfExport.run(PdfExport.java:245)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

09:07:33, 383[PDFExportTask] [INFO ] AppController: Location of Catalina.base: /opt/beginfinite/retain/tomcat/logs
09:07:33, 383[PDFExportTask] [INFO ] AppController: Logs space left : 4849818288
09:07:33, 385[PDFExportTask] [INFO ] MailQueueManager: Mail Queue manager initialization...
09:07:33, 387[PDFExportTask] [INFO ] MailQueueManager: Mail Queue manager successfully initialized
09:07:33, 447[PDFExportTask] [ERROR] PdfExport: createCollectionPdf aborted: No such file or directory
09:07:33, 856[PDFExportTask] [ERROR] ServerErrorHandlerStrategy: reportError: PdfExport.createCollectionPdf :: com.gwava.publish.PdfExport.createCollectionPdf:566 :: EXCEPTION : com.domaine.text.DocumentException: The document is not open yet; you can only add Meta information. com.domain.text.DocumentException: The document is not open yet; you can only add Meta information.
    at com.domain.text.Document.add(Document.java:269)
    at com.gwava.publish.PdfExport.addCoverSheet(PdfExport.java:309)
    at com.gwava.publish.PdfExport.createCollectionPdf(PdfExport.java:561)
    at com.gwava.publish.PdfExport.run(PdfExport.java:245)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

09:07:33, 867[PDFExportTask] [INFO ] PdfExport: collectionPageCount = ; 0
09:07:33, 867[PDFExportTask] [DEBUG] PdfExport: toXmlStatus; completionStatus = running
09:07:33, 867[PDFExportTask] [INFO ] PdfExport: Export ending
Export job JoeUser.1
completion status: running; com

Resolution

In this case, the ownership and permissions were incorrect in the export directory, shown above as: /media/retain/archives/export/JoeUser

The /export folder ownership should be tomcat:tomcat with permissions of 700

The user folders beneath /export should have an ownership of tomcat:tomcat and permissions of 755.

Once this has been properly configured, the export will work after that.