Page 1 of 1

File preview

PostPosted:Tue Sep 14, 2021 10:29 am
by kouadio
Hello everyone,
I have installed OpenKM 6.3.11. But when I want to preview Microsoft excel and JPG image files for example, I get the following error message:
There was a problem with the conversion generation.
Please, contact your OpenKM administrator.

However, the preview of PDF and Microsoft Word files works perfectly.
Thank you for your assistance.

Re: File preview

PostPosted:Sat Sep 18, 2021 7:06 am
by jllort
In the openkm.log will be the full stack trace of the error, please share the section with the error.
Does the problem happen only with XLS files and JPG?

Re: File preview

PostPosted:Wed Sep 22, 2021 12:27 pm
by kouadio
I have installed the following applications ruby-roo libspreadsheet-read-perl and I see that the preview of Excel files works perfectly.
However, the preview does not work for all image files (png, jpeg, ...)
In the openkm.log file, I have the following error lines:

2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - CommandLine: [/usr/bin/convert, /home/openkm/tomcat-8.5.34/temp/okm4701715522986042890.jpeg, /home/openkm/tomcat-8.5.34/repository/cache/pdf/2fd2f24b-a0a1-4892-945b-32ebade3a5a9.pdf]
2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - STDERR: convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] ERROR c.o.s.frontend.ConverterServlet - convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

com.openkm.core.ConversionException: convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

Re: File preview

PostPosted:Sat Sep 25, 2021 9:48 am
by jllort
I think this section of the documentation can help https://docs.openkm.com/kcenter/view/ok ... ge412.html

Re: File preview

PostPosted:Mon Sep 27, 2021 10:50 am
by kouadio
Hello jllort,

Thanks a lot, it works perfectly.