• Cannot preview JPGs

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #47759  by Secco
 
Hello,

I can preview PDFs and DOCs just fine but when I want to preview a JPG file it shows a page saying "There was a problem with the conversion generation. Please, contact your OpenKM administrator."

I am running the docker version of openkm CE 6.3.7 on an Ubuntu 18.04 system.

ImageMagick is installed and system.imagemagick.convert is set to /usr/bin/convert

I don't think catalina.log contains any useful information apart from maybe this one:
Code: Select all
12-Apr-2019 13:57:52.931 WARNING [http-nio-0.0.0.0-8080-exec-7] net.xeoh.plugins.base.impl.classpath.loader.FileLoader.loadFrom Supplied path does not exist. Unable to add plugins from there.
However, in openkm.log there are several instances where the following message pops up:
Code: Select all
2019-04-12 13:42:55,556 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - Abnormal program termination: 1
 2019-04-12 13:42:55,556 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - CommandLine: [/usr/bin/convert, /opt/openkm/temp/okm2991825342771400261.jpg, /opt/openkm/repository/cache/pdf/a214fa23-5e19-4fc7-8bdd-6ce28fe49918.pdf]
2019-04-12 13:42:55,556 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - STDERR: convert: not authorized `/opt/openkm/repository/cache/pdf/a214fa23-5e19-4fc7-8bdd-6ce28fe49918.pdf' @ error/constitute.c/WriteImage/1037.
2019-04-12 13:42:55,572 [http-nio-0.0.0.0-8080-exec-10] [] ERROR c.o.s.frontend.ConverterServlet - convert: not authorized `/opt/openkm/repository/cache/pdf/a214fa23-5e19-4fc7-8bdd-6ce28fe49918.pdf' @ error/constitute.c/WriteImage/1037.
com.openkm.core.ConversionException: convert: not authorized `/opt/openkm/repository/cache/pdf/a214fa23-5e19-4fc7-8bdd-6ce28fe49918.pdf' @ error/constitute.c/WriteImage/1037.
at com.openkm.util.DocConverter.img2pdf(DocConverter.java:497) ~[classes/:6.3.7] 
What's wrong here?
 #47777  by jllort
 
Share with us your policy.xml described in the documentation.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.