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

Source file cannot be read. Unsupported URL #129

Closed
adityar7 opened this issue May 6, 2013 · 9 comments
Closed

Source file cannot be read. Unsupported URL #129

adityar7 opened this issue May 6, 2013 · 9 comments
Labels

Comments

@adityar7
Copy link

adityar7 commented May 6, 2013

I'm trying to run unoconv to convert documents remotely.

If I run both the listener and the client on the same machine, everything works fine. However, if I run the listener of a different machine then I get the following error:

$ unoconv -s 192.168.1.11 -p 2002 -n -vvv test.doc 
Verbosity set to level 3
Using office base path: /Applications/LibreOffice.app/Contents
Using office binary path: /Applications/LibreOffice.app/Contents/MacOS
DEBUG: Connection type: socket,host=192.168.1.11,port=2002;urp;StarOffice.ComponentContext
Input file: test.doc
UNO IllegalArgument during import phase:
Source file cannot be read. Unsupported URL <file:///Users/abc/test.doc>: ""

The listener is run like so.

$ ./unoconv --listener -s 192.168.1.11 -p 2002 -vvv
Verbosity set to level 3
Using office base path: /Applications/LibreOffice.app/Contents
Using office binary path: /Applications/LibreOffice.app/Contents/MacOS
Start listener on 192.168.1.11:2002

I have tried several versions of LibreOffice in the 3.5 and 3.6 families as well as with several different documents and always run into this issue. I am running the master branch of unoconv. Both machines are Mac OS X 10.7 but I have tried Ubuntu as well. There is no firewall and the file permissions are 777.

Any idea what could be going on?

As a last resort I'll have to wrap the listener inside my own tcp service script, but the in-built service would be ideal.

@dagwieers
Copy link
Member

Yes, remote conversions only work with shared storage mounted on exactly the same place on both local and remote systems.

If this doesn't work, feel free to reopen this issue.

@adityar7
Copy link
Author

adityar7 commented May 6, 2013

Ah, thanks a ton for the quick reply!

@FREEZX
Copy link

FREEZX commented Jul 19, 2013

I think this should be mentioned in the documentation.
Also, a mechanism for transferring data between the client and server other than shared storage would be awesome.

@dagwieers
Copy link
Member

@FREEZX I accept pull requests, also for documentation updates.

The feature request should be targeted to LibreOffice/OpenOffice, unoconv falls back on the functionality both provide to us.

@adityar7
Copy link
Author

For those wondering how to do this easily: since unoconv relies on the LibreOffice functionality and is unlikely to have this feature, we ended up writing a simple web app that exposes unoconv functionality.

@geekdenz
Copy link

geekdenz commented Dec 3, 2013

I'm using version 0.6 and getting this error on Ubuntu Server 12.04 and up till now I was unable to solve this.

I went to https://github.com/dagwieers/unoconv/blob/0.6/unoconv#L843
and inserted a test output there:
print 'URL ::%s::' % inputurl
and the line after that, but in the line after

document = self.desktop.loadComponentFromURL( inputurl , "_blank", 0, inputprops )

I wasn't getting the output. So, it seems it's failing on that.

I tried putting the .doc file into /tmp as well. Also, I tried it on my Ubuntu 12.04 Desktop and everything works as expected, but I need it running on the server.

Any help would be much appreciated.
Thanks!

@notedit
Copy link

notedit commented Feb 22, 2014

i'm using version 0.6, i got this error too, i have spend three hours on this.

@notedit
Copy link

notedit commented Feb 22, 2014

reinstall unoconv and libreoffice, and restart fix this

@dagwieers
Copy link
Member

Thanks for the feedback.
Not sure what I can do about this though :-/

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

5 participants