Hi,
I am using Ubuntu 18.04 and Seafile Pro 7.0.3
I followed these steps for installing the libreoffice document previewer:
https : // manual . seafile . com/deploy_pro/office_documents_preview . html
It works fine for docx, pptx, pdf and md, but not for xlsx. There I’m getting this error:
Not Found
The requested URL /office-convert/static/017007dc-f282-4500-adb6-8558a4da753b/38eadca4c3effa18211872fb77a347dc128f580c/Sandbox.xlsx/index.html was not found on this server.
This is what is written in seafevents.log:
[2019-06-27 14:28:14,067] [WARNING] error when invoking libreoffice: Verbosity set to level 3
DEBUG: Connection type: pipe,name=seafilepipe;urp;StarOffice.ComponentContext
Input file: /tmp/tmpJqxNUD.xlsx
Using office base path: /opt/libreoffice4.1
Using office binary path: /opt/libreoffice4.1/program
Selected output format: HTML Document (OpenOffice.org Calc) [.html]
Selected office filter: HTML (StarCalc)
Used doctype: spreadsheet
[2019-06-27 14:28:14,068] [WARNING] failed to convert <type: xlsx, id: 09d3485f21e2eb1e24e41ed262cbda15c29794d3> from excel to html
I was using first the current libreoffice version, installed with apt install and then I installed manually 4.1 as suggested in the documentation.
The conversion itself functions well if I run it manually. This command produces a perfectly valid html file:
libreoffice4.1 --invisible --convert-to html Sandbox.xlsx
I would appreciate any suggestion!
Adrian