Boy, Alvaro, you are the man! I can't believe it was that simple (a little counter-intuitive though, I find). Problem solved.

Infinite Thanks and keep up the wonderful job.

Best Regards,

Andrea.

On 14.06.2015 17:54, Alvaro wrote:
Hello Andrea,

Thanks. Try in the configuration:

office.path  =  /opt/libreoffice4.4/

...no

office.path  =  /opt/libreoffice4.4/program

Best Regards

Alvaro

.............................

El dom, 14-06-2015 a las 12:07 +0200, Andrea Croci escribió:
Hello Community,

I would like to give you my compliments for the helpful mails in this
list and for the great job you are all doing.

I installed Openmeetings 3.0.6 on a Ubuntu 14.04.2 machine following the
instructions in the great tutorial by Alvaro. Some of the additional
programs were already there so I skipped those parts. However something
went wrong and I can't upload Office files: I always get the "DELETED"
screen. PDFs work fine, so pdf2swf shouldn't be the problem.

By looking at the log and trying a little around, I found that
JODConverter doesn't see libreoffice, although it's there and in the
path I set up in the configuration. Since I didn't want to install
libreoffice from the package manager of Ubuntu (or leave the
preinstalled one) but I wanted the newest version, I uninstalled the one
that came with Ubuntu and installed 4.4. Maybe there is where the thing
went wrong:

if I type "soffice" from a console, I get the message "The program
'soffice' is currently not installed. To run 'soffice' please ask your
administrator to install the package 'libreoffice-common'".

If I type "locate soffice.bin", I get a couple of "/home/..."
directories plus "/opt/libreoffice4.4/program/soffice.bin", which is the
path I entered in the configuration of Opemeetings.

If I type "/opt/libreoffice4.4/program/soffice" from a console,
libreoffice starts. If I type "sudo -u root
/opt/libreoffice4.4/program/soffice", libreoffice starts, however it
tells me that there is another instance running, which is ok, I believe.

In the log file I found the whole command JODConverter is trying to execute:

java -Doffice.home=/opt/libreoffice4.4/program/ -cp
/opt/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar
-cp /opt/jodconverter-core-3.0-beta-4/lib/commons-cli-1.1.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/ridl-3.2.1.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/jurt-3.2.1.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/juh-3.2.1.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/unoil-3.2.1.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/json-20090211.jar -cp
/opt/jodconverter-core-3.0-beta-4/lib/commons-io-1.4.jar -jar
/opt/jodconverter-core-3.0-beta-4/lib/jodconverter-core-3.0-beta-4.jar
/opt/red5306/webapps/openmeetings/uploadtemp/files/ff6a6363153ce5de74fc1504cd160964.odt
/opt/red5306/webapps/openmeetings/upload/files/ff6a6363153ce5de74fc1504cd160964/ff6a6363153ce5de74fc1504cd160964.pdf

and tried to paste it in the console. I got this message: "Exception in
thread "main" java.lang.IllegalStateException: invalid officeHome: it
doesn't contain soffice.bin: /opt/libreoffice4.4/program
      at
org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:167)
      at org.artofsolving.jodconverter.cli.Convert.main(Convert.java:111)"

but soffice.bin is in that path.

I believe it could be a permission problem, but I'm out of clue as of
what to do. Any help would be appreciated.

Thank you very much.

Andrea.


Reply via email to