PDF Export job will not complete

  • 7025269
  • 07-Sep-2021
  • 07-Sep-2021

Environment

Retain Unified Archiving 4.x

Situation

After performing a search in the Retain Admin Console and finding the desired criteria items. All items are selected and Export to PDF is chosen. After that, the job never completes and there is not a resulting PDF file in the export location.

Resolution

Look at the RetainServer log at the time frame when the job was kicked off. The first entry you would look for would look like this:

13:39:48, 774[PDFExportTask] [INFO ] PdfExport: Export starting
Export job admin.1; page size: letterPortrait
max PDF size: 2147483648; max attachment size: 2147483647

Keep following the log file down, or search for "[ERROR]" and see what the first error that comes up after the export has started.

In this particular case, the following error was found:

13:42:35, 827[PDFExportTask] [ERROR] ServerErrorHandlerStrategy: reportError: PdfExport.createCollectionPdf :: com.gwava.publish.PdfExport.createCollectionPdf:540 :: EXCEPTION : com.gwava.engine.ExportEngineException: java.nio.file.AccessDeniedException: /mnt/archive/export/admin/rtn-9c03d206-c3d7-4fef-ba6d-5edb8553dd81.pdf com.gwava.engine.ExportEngineException: java.nio.file.AccessDeniedException: /mnt/retain/export/admin/rtn-9c03d206-c3d7-4fef-ba6d-5edb8553dd81.pdf
    at com.gwava.engine.DefaultExportEngineImpl$ExportOutputStreamDecorator.close(DefaultExportEngineImpl.java:71)
    at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:188)
    at com.lowagie.text.pdf.OutputStreamCounter.close(OutputStreamCounter.java:76)
    at com.lowagie.text.DocWriter.close(DocWriter.java:288)
    at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1218)
    at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:813)
    at com.lowagie.text.Document.close(Document.java:451)
    at com.gwava.publish.PdfExport.createCollectionPdf(PdfExport.java:536)
    at com.gwava.publish.PdfExport.run(PdfExport.java:219)
    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)
Caused by: java.nio.file.AccessDeniedException: /mnt/retain/export/admin/rtn-9c03d206-c3d7-4fef-ba6d-5edb8553dd81.pdf
    at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
    at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
    at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
    at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
    at java.base/java.nio.file.Files.newOutputStream(Files.java:219)
    at com.gwava.engine.DefaultExportEngineImpl$ExportOutputStreamDecorator.close(DefaultExportEngineImpl.java:68)
    ... 13 more

Notice the line in the middle of the error sting: Caused by: java.nio.file.AccessDeniedException: /mnt/retain/export/admin/rtn-9c03d206-c3d7-4fef-ba6d-5edb8553dd81.pdf

The account that was logged into the Retain Admin Console did not have the proper permissions to the /mnt/retain/export/admin/ folder.

Correcting the permissions allowed the export to complete and the PDF file to be generated.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.