Page 1 of 2

Preview not working

PostPosted:Wed Apr 20, 2016 11:51 am
by sunil
Had installed OpenKM 6.3 on windows server 2012.

Configurations seems fine.

I have tried to run all dependencies like convert.exe, pdf2swf.exe and open office services, all are working perfectly fine but when i click on any document (pdf or tiff or anyother), its showing starting conversion but then nothing happened. I tried everything but didn't got any solution.

Anyone who can help me with this???

Please reply ASAP.

Re: Preview not working

PostPosted:Sat Apr 23, 2016 10:32 am
by jllort
A screenshot is welcome to understanding what are you watching in your screen. Did you have adobe flash players installed in your browser ? and is running ?
Which browser are you using ?
At Administration / Configuration which is the value of the parameter named "system.previewer"
Take a look at catalina.log file for some error while trying to preview the document ?
Is your PDF a big size one ?

Do you have acrobat reader installed, in case afirmative, you can enable from profiles the option "Acrobat plugin preview" ( but that means all users should have acrobat reader installed, otherwise will not be able to previewing anything ).

Re: Preview not working

PostPosted:Mon Dec 04, 2017 8:24 am
by saman_s1
Hi,
I have a same problem, the openkm preview tab just shows pdf, and MS.office file like docx, dox, xlsx, ... wil not show at preview tab, also nothing shows in the properties tab as thumbnail. "Edited": also image will not shows in preview tab.

Here is more info:
-nothing shows in catalina.log while preview.
-the files are less than 1MB.
-system.previewer Select flexpaper
-flash player installed an enable on browser

-openkm has been installed on ubuntu server16.04 and openkm version attached.
-openkm configuration check attached.
-catalina log after restart tomcat attached.

let me know if you need more info.
thanks.

Re: Preview not working

PostPosted:Tue Dec 05, 2017 5:57 pm
by jllort
In the log is not shown any stack tracke error while trying to preview not PDF files ( for example word ones ). Please try to share with us the catalina.log where you have been trying to preview a document, you have sended the log file until the server has started we need something else. Should be shown and error there.
Check if you have a soffice application running after openkm is started
Code: Select all
ps ax | grep soffice

Re: Preview not working

PostPosted:Sat Dec 09, 2017 3:45 am
by saman_s1
thansk for your response,
but I say that while openkm try to preview a word file for example, nothing shows in catalina.log !! also the same for txt or pdf file (that it shows preview), I mean while preview any type file nothing happen to catalina.log.

and here is soffice process:
#ps aux | grep soffice
openkm 2607 0.0 0.0 14224 1092 pts/0 S+ 07:09 0:00 grep --color=auto soffice
root 24103 0.0 0.8 856408 66384 ? Sl Dec04 0:01 /usr/lib/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
root 24104 0.0 0.0 0 0 ? Z Dec04 0:00 [soffice.bin] <defunct>

is there more log file to check ?

Re: Preview not working

PostPosted:Sat Dec 09, 2017 5:21 pm
by jllort
for previewing txt or PDF files is not necessary the soffice service, should be previewed itself without any conversion process. This is not the case for previewing word document. See that your soffice says is defunt. Close OpenKM and look if there's still a defunc soffice running ( might be the reason why newer in not waking up ).
root 24104 0.0 0.0 0 0 ? Z Dec04 0:00 [soffice.bin] <defunct>

Re: Preview not working

PostPosted:Mon Dec 11, 2017 5:35 am
by saman_s1
after close openkm it is still the same:

ps ax | grep soffice:

24103 ? Sl 0:02 /usr/lib/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
24104 ? Z 0:00 [soffice.bin] <defunct>

then restart the tomcat :

19964 ? Sl 0:00 /usr/lib/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
19965 ? Z 0:00 [soffice.bin] <defunct>

Re: Preview not working

PostPosted:Wed Dec 13, 2017 10:32 pm
by jllort
You should stop OpenKM and if there's some soffice.bin running, kill it. Seems for some reason while stopping tomcat has not been stopped the soffice process.

Re: Preview not working

PostPosted:Sun Dec 17, 2017 9:42 am
by saman_s1
when I stop the openkm the also "soffice.bin" process killed and again when Start the openkm this will appear again
8142 ? Z 0:00 [soffice.bin] <defunct>
and it will not killed by "kill -9 command"

any other solution ?

Re: Preview not working

PostPosted:Sun Dec 17, 2017 4:23 pm
by jllort
Do you have installed OpenKM in a OS with desktop qui ?
After killing the soffice service is started another inmediatelly ?
Remember, if you are not using OpenKM 6.3.4 ( only available compiling the source code -> branch 6.3-dev ) the preview feature will require adobe flash player support from browser point of view.
When you trying to preview a word document, what kind of error is shown in the catalina.log file ( only are insterested in the stack trace of the error, please do not share with us the entire catalina.log file ).

Re: Preview not working

PostPosted:Wed Dec 20, 2017 7:48 am
by saman_s1
Do you have installed OpenKM in a OS with desktop qui ?
- No, it is installed on ubuntu server without gui,
After killing the soffice service is started another inmediatelly ?
- No, the process will not killed, it is still alilve, with same PID.
adobe flash player support from browser point of view.
- Adobe flash player has been installed and enable, on chrome, firefox, and some other.
what kind of error is shown in the catalina.log file
- There is no error, warning, or any kind of log in catalina.log, when try to preview word document. nothing add to the catalina.log file.

Re: Preview not working

PostPosted:Thu Dec 21, 2017 7:37 am
by jllort
Choose a .doc file and then from toolbar try to downloading as pdf. Here might happens two things or it goes right or must show some error in the log.

Re: Preview not working

PostPosted:Sun May 20, 2018 12:50 pm
by cherifmad
hello every body
I have also the same poblem
I have yet enable the openoffice path's previewer Image But the preview service is not operational Image
Ho can I fix this problem

Re: Preview not working

PostPosted:Mon May 21, 2018 1:33 pm
by jllort
You might check the log file ( catalina.log ) while OpenKM is starting, looking for some issue. I suspect soffice service is not starting. Check your environment variables, in 90% of the cases this is the reason why the soffice service is not startin ( https://docs.openkm.com/kcenter/view/ok ... tvariables )

Re: Preview not working

PostPosted:Mon May 21, 2018 1:40 pm
by cherifmad
jllort wrote: Mon May 21, 2018 1:33 pm You might check the log file ( catalina.log ) while OpenKM is starting, looking for some issue. I suspect soffice service is not starting. Check your environment variables, in 90% of the cases this is the reason why the soffice service is not startin ( https://docs.openkm.com/kcenter/view/ok ... tvariables )
thanks ,
I'll try and make you a comeback.