cancel
Showing results for 
Search instead for 
Did you mean: 

Document preview problem was fixed by changing libreoffice's ctl.sh to libreoffice_ctl.sh

billydekid
Star Contributor
Star Contributor
Hi,

I just want to share how to fix the problem of document preview which sometimes not fully functional on loading some of certain files.

I use Alfresco 5.0.a on Ubuntu 14.04.

One of the problem occurred when opening .docx files.
Document preview just showing a thumbnail image instead of full frame of document viewer.

The problem can be solved by changing libreoffice's ctl script in alfresco.sh; from ctl.sh to libreoffice_ctl.sh (since ctl.sh is not exist on libreoffice's script dir).

OLD:
LIBREOFFICE_SCRIPT=$INSTALLDIR/libreoffice/scripts/ctl.sh

NEW
LIBREOFFICE_SCRIPT=$INSTALLDIR/libreoffice/scripts/libreoffice_ctl.sh

Next I restarted Alfresco and problem is solved! Smiley Happy
Document viewer frame is appear instead of document thumbnail image…

Regards,
[bayu]
1 ACCEPTED ANSWER

luceros
Champ in-the-making
Champ in-the-making

Hi, I resolve this problem changing the path of libreoffice installation on alfresco-global.properties.

From:

ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin

to

ooo.exe=/usr/bin/soffice

then I restart alfresco service et voilà.
You must find soffice file on your sistem (this works on linux).

Bye, bye.

View answer in original post

21 REPLIES 21

danyfortier
Champ in-the-making
Champ in-the-making
PKnight, have you resolve the problem ?

I have exactly the same problem here. I am running with Alfreso 5.0.d

ok i got it working by restarting tomcat service for now. But still investigating

voula_11
Champ in-the-making
Champ in-the-making
I have the same problem on 5.0.d.

I changed alfresco.sh to point to the correct script, I changed libreoffice_ctl.sh to have the correct paths. Still not working.

When I test for missing libraries as suggested by caolem, I get this:
error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory

So I did a "yum install libdbus-glib-1.so.2" and I got this:
Package dbus-glib-0.86-6.10.amzn1.i686 already installed and latest version


So I guess this means that the package is installed in the wrong directory?
I tried removing it and re-installing it, but it still can't be located.

I really don't know what to do to fix this.

Can anyone help please?

yoyo46
Champ in-the-making
Champ in-the-making
how about in windows? same also?

wags
Champ in-the-making
Champ in-the-making
Thanks for that.  Where is alfresco.sh located under ubuntu 14.04?  I installed using

https://github.com/loftuxab/alfresco-ubuntu-install

Thanks

anon26949
Star Contributor
Star Contributor

Thank you for sharing your experience!.. The same problem in Alfresco 5.1 CE.

Hi ‌,

Frankly speaking, this problem is never appear again in 5.1 and 5.2 CE so far, on my environment.

Thanks,

Hi, Bayu Widyasanyata!

It seems that this script is not needed at all... LibreOffice managed by JODConverter.

Hi ‌,

Thank you for issue's link! Then we can "close" this issue for 4.2+ version 🙂

douglascrp
World-Class Innovator
World-Class Innovator

Out of the box, LibreOffice managed by JODConverter is an Enterprise only feature.

If you need it for Community edition, then you will have to use an addon, in this case, this is what you are looking for xenit / alfresco-remote-jodconverter — Bitbucket