I'm setting up & testing a new installation and am trying to get unoconv/Libreoffice configured to create previews of documents, spreadsheets, presentations etc. This is on a shared server and getting both Libreoffice and unoconv to play nice on the command line was a chore but it's working there, but only for certain types of documents. I'm having similar issues in RS although there are some additional problems there.
On the command line, documents in open document formats convert both accurately and at the right size. Word documents (docx, xlsx etc.) do not, with the command line error:
does not exist. unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL <file:///nfs/c10/h04/mnt/150983/users/.home/unoconv/tests/RS16_Intern>: "type detection failed"
But...the file does indeed exist so I assume unoconv or libreoffice aren't able to figure out the file type.
The same thing happens in RS except...with open document format files, it creates the thumbnail preview file, but doesn't seem to create the full-screen preview...which I assume should be a pdf file.
Here is the relevant part of the error log from RS with a .docx file:
2015-04-07 15:13:37 SQL: insert into resource_data(resource,resource_type_field,value) values ('19','51','RS16_Intern Review.docx')
2015-04-07 15:13:37 create_previews(ref=19,thumbonly=,extension=docx,previewonly=,previewbased=,alternative=-1,ingested=)
2015-04-07 15:13:37 SQL: update resource set file_checksum='' where ref='19'
2015-04-07 15:13:37 SQL: update resource set preview_tweaks = '0|1' where ref = '19'
2015-04-07 15:13:37 SQL: update resource set has_image=0 where ref='19'
2015-04-07 15:13:37 Starting preview preprocessing. File extension is docx.
2015-04-07 15:15:07 CLI output:
2015-04-07 15:15:07 CLI errors: unoconv: RuntimeException during import phase:
Office probably died. C++ code threw St9bad_alloc: std::bad_alloc
Traceback (most recent call last):
File "/nfs/c10/h04/mnt/150983/users/.home/unoconv/unoconv", line 1172, in <module>
die(exitcode)
File "/nfs/c10/h04/mnt/150983/users/.home/unoconv/unoconv", line 1048, in die
convertor.desktop.terminate()
uno.RuntimeException: C++ code threw St13runtime_error: osl::Thread::create failed
2015-04-07 15:15:07 CLI command: unzip -p
And here is the relevant part of the error log from RS with the .odt file:
2015-04-07 15:34:10 Starting preview preprocessing. File extension is odt.
2015-04-07 15:34:14 CLI output:
2015-04-07 15:34:14 CLI errors: unoconv: UnoException during import phase:
I think the .docx issue might be missing or incorrect filters in libreoffice. But I'm not sure why RS is failing on the .odt file since it works fine on the command line. Anyone have any insight on this?
Thanks!
Chris Blair