Running via web server

Hi,

Am trying to convert a .doc file to .html using libreoffice. Works fine via command line, but not when running within context of web server. My invocation of libreoffice is essentially:

‘/opt/libreoffice3.6/program/soffice --headless -env:UserInstallation=file:///tmp/foobar --convert-to html:HTML (StarWriter) -outdir /someplace /someplace/test.doc’

This fails with following error:
UNO Exception: cannot open file:///root/.ure/types.rdb: 13

If I chmod 777 /root, then everything works ok, but I’d rather not do that. Is there an environment variable that I could set so that I can point it to find the .ure directory?

By the way the web server is running as nobody.

Thanks

Does /tmp/foobar exist? Obviously, LO doesn’t honor the UserInstallation option. Does it work if you set that property globally (see the linked wiki page)?

Yes /tmp/foobar exists - has the appropriate files in it. Libreoffice does honor the UserInstallation option to an extent. It is able to find the files in /tmp/foobar and runs ok if there are global write access on /root. I tried specifying the path via the bootstraprc file, but that didn’t work.

Hi Anonymous,

  1. What happens if you try your command-line invocation using the latest release?
  2. What OS are you using? “file:///” doesn’t sound like it would work on any unix-y system. What happens if you try ‘-env:UserInstallation=/tmp/foobar’ instead?

Anon – still interested in an Answer here?