Page 1 of 1
[CENTOS] Doc and Image preview problems
PostPosted:Thu Jan 18, 2018 2:10 pm
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 allsystem.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.
Re: [CENTOS] Doc and Image preview problems
PostPosted:Fri Jan 19, 2018 6:31 pm
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 allrpm -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.
Re: [CENTOS] Doc and Image preview problems
PostPosted:Sun Jan 21, 2018 4:21 pm
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.
Re: [CENTOS] Doc and Image preview problems
PostPosted:Tue Jan 23, 2018 8:01 am
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.
Re: [CENTOS] Doc and Image preview problems
PostPosted:Thu Jan 25, 2018 8:28 am
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 ).
Re: [CENTOS] Doc and Image preview problems
PostPosted:Fri Feb 23, 2018 7:33 am
by phimmoi
i'm using CentOS 7 64bit with no problem
Re: [CENTOS] Doc and Image preview problems
PostPosted:Sat Feb 24, 2018 6:23 pm
by jllort
Look for a package named libreoffice-headless-***** or similar