First time here? Check out the FAQ!
asked 2012-09-10 19:08:05 +0200
Anonymous
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
Hi Anonymous,
-env:UserInstallation=/tmp/foobar' instead?LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-09-10 19:08:05 +0200
Seen: 437 times
Last updated: Mar 02
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
Does
tohuwawohu ( 2012-09-11 16:55:38 +0200 )edit/tmp/foobarexist? Obviously, LO doesn't honor theUserInstallationoption. 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.
Ted ( 2012-09-13 20:53:36 +0200 )edit