Page 1 of 1

[SOLVED] OpenKM 6.3.6 Ubuntu JPG Preview Problem

PostPosted:Mon Mar 04, 2019 9:57 am
by Seb_OKM
Hi!

I have some problem;

I have Ubuntu 18.06 and installed OKM 6.3.6, using H2 database.

If I try to do preview JPG file in repository some files shown properly but most of them generate information "There was a problem with the conversion generation. Please, contact your OpenKM administrator."

i checked the configuration on administration/ configuration/check and everything seems to be ok.

Any ideas !?

PS. System files, and all additional files are up to date.

Re: OpenKM 6.3.6 Ubuntu JPG Preview Problem

PostPosted:Mon Mar 04, 2019 7:29 pm
by jllort
I suggest using MySQL or PostgreSQL either H2 database for production.

About JPG files, did you get some error in the catalina.log files?
Can you share with us some of these files for testing in our development environments?

Re: OpenKM 6.3.6 Ubuntu JPG Preview Problem

PostPosted:Thu Mar 07, 2019 8:11 pm
by mfreem2
I have a similar issue, 6.3.6 community (build 87d181f), installed yesterday with the OKMInstaller.jar on Ubuntu 18.04.2, mariadb 10.1

Testing system out

Upload a jpg to do ocr, and get the:
There was a problem with the conversion generation.Please, contact your OpenKM administrator.

Error Message Retrieved from logs/catalina.out:
Code: Select all
StdErr: 
2019-03-07 14:15:00,167 [Thread-16] INFO  c.o.extractor.TextExtractorWorker - processSerial.Working on {docUuid=1027f59c-93d0-46a7-a096-951d4700c38d, docPath=/okm:trash/okmAdmin/Image (232) (2).jpg, docVerUuid=a8b26058-8099-4f4c-8d68-3c6a5766179a, date=Thu Mar 07 14:06:05 EST 2019} 2019-03-07 14:16:26,264 [http-nio-0.0.0.0-8080-exec-9] WARN  com.openkm.util.ExecutionUtils - Abnormal program termination: 1
2019-03-07 14:16:26,264 [http-nio-0.0.0.0-8080-exec-9] WARN  com.openkm.util.ExecutionUtils - CommandLine: [/usr/bin/convert, /home/openkm/tomcat-8.5.24/temp/okm4359367670935401632.jpg, /home/openkm/tomcat-8.5.24/repository/cache/pdf/64c8099a-c28b-468b-9a3d-b081c694cfff.pdf]
2019-03-07 14:16:26,264 [http-nio-0.0.0.0-8080-exec-9] WARN  com.openkm.util.ExecutionUtils - STDERR: convert: not authorized `/home/openkm/tomcat-8.5.24/repository/cache/pdf/64c8099a-c28b-468b-9a
3d-b081c694cfff.pdf' @ error/constitute.c/WriteImage/1037.

2019-03-07 14:16:26,267 [http-nio-0.0.0.0-8080-exec-9] ERROR c.o.s.frontend.ConverterServlet - convert: not authorized `/home/openkm/tomcat-8.5.24/repository/cache/pdf/64c8099a-c28b-468b-9a3d-b081
c694cfff.pdf' @ error/constitute.c/WriteImage/1037.

com.openkm.core.ConversionException: convert: not authorized `/home/openkm/tomcat-8.5.24/repository/cache/pdf/64c8099a-c28b-468b-9a3d-b081c694cfff.pdf' @ error/constitute.c/WriteImage/1037.
The files are no longer in the directories to manually run the /usr/bin/convert, The ocr text files are in the temp directory, so that part works. the "convert: not authorized" is where it seems to break. Any Input?

Re: OpenKM 6.3.6 Ubuntu JPG Preview Problem

PostPosted:Thu Mar 07, 2019 9:32 pm
by jllort
Take a look here https://docs.openkm.com/kcenter/view/ok ... ge412.html it is explained how to solve it

Re: OpenKM 6.3.6 Ubuntu JPG Preview Problem

PostPosted:Mon Mar 11, 2019 1:47 pm
by Seb_OKM
jllort wrote: Thu Mar 07, 2019 9:32 pm Take a look here https://docs.openkm.com/kcenter/view/ok ... ge412.html it is explained how to solve it
THX, Works for me.