yes, thats correct. indeed it is /wolke - i wanted to hide it here and forgot to replace it in my post…
so, i just started all again. removed all the tmp-dirs in /tmp. stopped apache and seafile.
found a hint about
ProxyPass /seafile fcgi://127.0.0.1:8000/seafile
in seahub behind apache with mod_proxy_fcgi does not work (no root domain) · Issue #1186 · haiwen/seafile · GitHub
this is the log when accessing a pdf file
==> seafevents.log <==
[2016-10-14 10:42:36,925] [DEBUG] start to fetch task <type: pdf, id: 91f95efb3813106524c622882053096ad88270cb>
[2016-10-14 10:42:36,964] [ERROR] failed to convert <type: pdf, id: 91f95efb3813106524c622882053096ad88270cb> to html
Traceback (most recent call last):
File "/data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/task_manager.py", line 135, in _convert_pdf_to_html
task.pdf, task.htmldir, task_manager.max_pages, progress_callback)
File "/data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/convert.py", line 311, in pdf_to_html2
pdf_info = self._get_pdf_info_json(pdf)
File "/data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/convert.py", line 278, in _get_pdf_info_json
output = _check_output(['pdfinfo', pdf])
File "/data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/convert.py", line 31, in _check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[2016-10-14 10:42:36,965] [DEBUG] removing temporary document /tmp/tmpQNbsO0.pdf
i tried to convert a pdf from command line:
/usr/bin/python3 /data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/unoconv.py -vvv -f html -o test.html test.pdf
Verbosity set to level 3
Using office base path: /usr/lib/libreoffice
Using office binary path: /usr/lib/libreoffice/program
DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext
Input file: test.pdf
Selected output format: HTML Document (OpenOffice.org Writer) [.html]
Selected office filter: HTML (StarWriter)
Used doctype: document
unoconv: UnoException during export phase:
Unable to store document to file:///tmp/test.html (ErrCode 3088)
Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"HTML (StarWriter)" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x221d548{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })
when doing the same with odt it works:
/usr/bin/python3 /data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/unoconv.py -vvv -f html -o test.html test.pdf
Verbosity set to level 3
Using office base path: /usr/lib/libreoffice
Using office binary path: /usr/lib/libreoffice/program
DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext
Input file: test.pdf
Selected output format: HTML Document (OpenOffice.org Writer) [.html]
Selected office filter: HTML (StarWriter)
Used doctype: document
unoconv: UnoException during export phase:
Unable to store document to file:///tmp/test.html (ErrCode 3088)
Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"HTML (StarWriter)" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x221d548{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })
root@v22016103886338142:/tmp# /usr/bin/python3 /data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/unoconv.py -vvv -f odt -o test.odt test.pdf
Verbosity set to level 3
Using office base path: /usr/lib/libreoffice
Using office binary path: /usr/lib/libreoffice/program
DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext
Input file: test.pdf
Selected output format: ODF Text Document [.odt]
Selected office filter: writer8
Used doctype: document
version gives me:
/usr/bin/python3 /data/seafile/seafile-pro-server-6.0.1/pro/python/seafevents/office_converter/unoconv.py --version
unoconv 0.6
Written by Dag Wieers <dag@wieers.com>
Homepage at http://dag.wieers.com/home-made/unoconv/
platform posix/linux
python 3.5.2 (default, Jul 5 2016, 12:43:10)
[GCC 5.4.0 20160609]
LibreOffice 5.1
what seems to work is
/usr/bin/libreoffice --convert-to html test.pdf