Ask Your Question
0

Running via web server [closed]

asked 2012-09-10 19:08:05 +0100

anonymous user

Anonymous

updated 2015-10-25 05:53:16 +0100

Alex Kemp gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-25 05:53:34.713108

Comments

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)?

tohuwawohu gravatar imagetohuwawohu ( 2012-09-11 16:55:38 +0100 )edit

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.

Ted gravatar imageTed ( 2012-09-13 20:53:36 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-03-02 06:24:23 +0100

qubit gravatar image

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?
edit flag offensive delete link more

Comments

Anon -- still interested in an Answer here?

qubit gravatar imagequbit ( 2013-03-12 00:26:44 +0100 )edit

Question Tools

Stats

Asked: 2012-09-10 19:08:05 +0100

Seen: 2,825 times

Last updated: Mar 02 '13