Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo -u www unoconv -f pdf 1.ppt erro help me!! #259

Closed
aimchina opened this issue Jun 8, 2015 · 5 comments
Closed

sudo -u www unoconv -f pdf 1.ppt erro help me!! #259

aimchina opened this issue Jun 8, 2015 · 5 comments
Labels

Comments

@aimchina
Copy link

aimchina commented Jun 8, 2015

I use "sudo -u root unoconv -f pdf 1.ppt" , it's can do it.

but I use "sudo -u www unoconv -f pdf 1.ppt" then erro:

unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice
ERROR: Error during bootstrapping uno (RuntimeException):cannot open file:///root/.ure/types.rdb

why? anybody help me?

@aimchina
Copy link
Author

aimchina commented Jun 8, 2015

root@AY140612212250787b5cZ:/alidata/hd# sudo -u www unoconv -f pdf 1.ppt
unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice
ERROR: Error during bootstrapping uno (RuntimeException):cannot open file:///root/.ure/types.rdb

Traceback (most recent call last):
File "/usr/bin/unoconv", line 1170, in
main()
File "/usr/bin/unoconv", line 1087, in main
convertor = Convertor()
File "/usr/bin/unoconv", line 733, in init
product = self.svcmgr.createInstance("com.sun.star.configuration.ConfigurationProvider").createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", UnoProps(nodepath="/org.openoffice.Setup/Product"))
uno.RuntimeException: cannot open directory file:///root/.openoffice/4/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry

@skywinder
Copy link
Contributor

Please, specify OS, and version of unoconv and LibreOffice.

@dagwieers
Copy link
Member

What is already weird is that for user "www" it somwhere has a reference to /root. (e.g. /root/.ure and /root/.openeoffice)

So the first question should be, why would user "www" try to access files in /root ?
Maybe try running something like: sudo -u www env

@dagwieers dagwieers added this to the Release 0.7 milestone Jul 5, 2015
@dagwieers
Copy link
Member

Ok, this is a known issue. The cause is related to user "www" not having a correct PATH set, or not having a correct HOME set. We are looking into fixing this from within unoconv, or allowing the user to provide its own PATH environment variable.

@dagwieers dagwieers removed this from the Release 0.7 milestone Jul 5, 2015
@dagwieers
Copy link
Member

We are tracking related issues in the thread of issue #87.
For that reason I am closing this issue.

If you still think this is a different issue, feel free to reopen this issue and provide ample evidence to reproduce the problem. Thanks for your feedback !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants