Hello,
I looked through the posts, but unfortunately I did not find the answer to my problem: I can’t preview the pdf file in Seafile.
I configured this functionality according to the Seafile guide.
When I try to open pdf file, I receives “Internal error”.
The only log that appears in system is seahub.log:
2017-05-22 09:24:16,127 [ERROR] root:1087 prepare_converted_html failed to add_office_convert_task:
Traceback (most recent call last):
File “/data/haiwen/seafile-pro-server-6.0.13/seahub/seahub/utils/init.py”, line 1085, in prepare_converted_html
add_office_convert_task(obj_id, doctype, raw_path)
File “/data/haiwen/seafile-pro-server-6.0.13/seahub/seahub/utils/init.py”, line 997, in real_func
return delegate_func(*args)
File “/data/haiwen/seafile-pro-server-6.0.13/seahub/seahub/utils/init.py”, line 1013, in delegate_add_office_convert_task
ret = do_urlopen(url, data=data, headers=headers).read()
File “/data/haiwen/seafile-pro-server-6.0.13/seahub/seahub/utils/init.py”, line 1214, in do_urlopen
ret = urllib2.urlopen(req)
File “/usr/lib/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python2.7/urllib2.py”, line 421, in open
protocol = req.get_type()
File “/usr/lib/python2.7/urllib2.py”, line 283, in get_type
raise ValueError, “unknown url type: %s” % self.__original
ValueError: unknown url type: /office-convert/internal/add-task/
System info:
- Ubuntu 16.04.2 LTS
- Seafile-pro-server-6.0.13
- two node cluster + haproxy + keepalived
- libreoffice 5.1.6.2
- poppler-utils 0.41
Best regards,
Krzysztof Wadowka.