• [CENTOS] Doc and Image preview problems

  • 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.
 #45203  by gulliver66
 
Hello,
I've installed OpenKm Community on my Centos 7 server, I can see pdf's preview correctly but I don't be able to see images (any type) or docs previews.
This is my configuration check:
Code: Select all
system.swftools.pdf2swf
OK - /opt/openkm/tomcat-7.0.61/bin/pdf2swf
system.imagemagick.convert
OK - /usr/bin/convert
system.ocr
Not configured
system.openoffice.path
OK - /usr/lib64/libreoffice/program/soffice.bin
What should I check on my configuration?
Thanks in advance, regards. Stefano.
 #45208  by jllort
 
Check if you have a soffice.bin process running, I suspect the libreoffice service is not starting at OpenKM startup might be some error is shown there.
Ensure you have installed the packages headless, pyuno and ure
Code: Select all
rpm -qa | grep libreoffice
rpm -qa | grep openoffice 
Usually in centos is not installed by default the headless what is mandatory to start libreoffice as service.
 #45218  by gulliver66
 
Thanks for your response, the results are shown below:

rpm -qa | grep libreoffice

libreoffice-langpack-it-5.0.6.2-14.el7.x86_64
libreoffice-pyuno-5.0.6.2-14.el7.x86_64
libreoffice-pdfimport-5.0.6.2-14.el7.x86_64
libreoffice-base-5.0.6.2-14.el7.x86_64
libreoffice-impress-5.0.6.2-14.el7.x86_64
libreoffice-calc-5.0.6.2-14.el7.x86_64
libreoffice-5.0.6.2-14.el7.x86_64
libreoffice-ure-5.0.6.2-14.el7.x86_64
libreoffice-graphicfilter-5.0.6.2-14.el7.x86_64
libreoffice-opensymbol-fonts-5.0.6.2-14.el7.noarch
libreoffice-emailmerge-5.0.6.2-14.el7.x86_64
libreoffice-core-5.0.6.2-14.el7.x86_64
libreoffice-draw-5.0.6.2-14.el7.x86_64
libreoffice-math-5.0.6.2-14.el7.x86_64
libreoffice-writer-5.0.6.2-14.el7.x86_64

I think that the problem is in the next row:

openkm 6343 0.0 0.0 0 0 ? Z 16:53 0:00 [soffice.bin] <defunct>

There is a way to resolve it?
Regards, Stefano.
 #45223  by gulliver66
 
Hello,
I think that I've all packages installed:

libreoffice-langpack-it-5.0.6.2-14.el7.x86_64
libreoffice-pyuno-5.0.6.2-14.el7.x86_64
libreoffice-pdfimport-5.0.6.2-14.el7.x86_64
libreoffice-base-5.0.6.2-14.el7.x86_64
libreoffice-impress-5.0.6.2-14.el7.x86_64
libreoffice-calc-5.0.6.2-14.el7.x86_64
libreoffice-5.0.6.2-14.el7.x86_64
libreoffice-ure-5.0.6.2-14.el7.x86_64
libreoffice-graphicfilter-5.0.6.2-14.el7.x86_64
libreoffice-opensymbol-fonts-5.0.6.2-14.el7.noarch
libreoffice-emailmerge-5.0.6.2-14.el7.x86_64
libreoffice-core-5.0.6.2-14.el7.x86_64
libreoffice-draw-5.0.6.2-14.el7.x86_64
libreoffice-math-5.0.6.2-14.el7.x86_64
libreoffice-writer-5.0.6.2-14.el7.x86_64

but in the processes:

openkm 6341 0.0 1.2 983020 48300 ? Sl 16:53 0:00 /usr/lib64/libreoffice/program/soffice.bin -accept=socket,host=127.0.0.1,port=2002;urp; -env:UserInstallation=file:///home/openkm/tomcat-7.0.61/temp/.jodconverter_socket_host-127.0.0.1_port-2002 -headless -nocrashreport -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
openkm 6343 0.0 0.0 0 0 ? Z 16:53 0:00 [soffice.bin] <defunct>
root 6689 0.0 0.0 112680 964 pts/1 R+ 17:07 0:00 grep --color=auto soffice

Is here the problem? What can I do?
Regards. Stefano.
 #45234  by jllort
 
I think is right ( stop OpenKM, ensure there's no soffice running and then start OpenKM ).
Create the doc file with libreoffice ( or at least try first opening in your computer to be sure the format is compatible with libreoffice, sometimes the latests versions of documents created by Ms Office are not able to being opened by libreoffice ).

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.