图片无法预览、word文档预览无法加载,一直转圈圈


#1

版本:seafile-pro-server_7.1.6_x86-64_CentOS.tar
服务器:centos7
logs/seahub.log 报错
2020-09-04 13:43:57,679 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-04 13:43:57,767 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-04 13:43:57,768 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-04 13:43:57,768 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-04 13:44:07,818 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-04 13:44:08,954 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-04 13:44:09,018 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-04 13:44:10,864 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-04 13:44:10,920 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-04 13:44:34,008 [WARNING] django.request:37 inner Method Not Allowed (GET): /office-convert/status/
2020-09-04 13:44:55,142 [ERROR] root:1810 office_convert_query_status failed to call query_office_convert_status
Traceback (most recent call last):
File “/opt/seafile/seafile-pro-server-7.1.6/seahub/seahub/views/file.py”, line 1808, in office_convert_query_status
ret = query_office_convert_status(file_id, doctype)
File “/opt/seafile/seafile-pro-server-7.1.6/seahub/seahub/utils/init.py”, line 1137, in query_office_convert_status
d = d.json()
File “/opt/seafile/seafile-pro-server-7.1.6/seahub/thirdpart/requests/models.py”, line 898, in json
return complexjson.loads(self.text, **kwargs)
File “/root/anaconda3/envs/seafile/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/root/anaconda3/envs/seafile/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/root/anaconda3/envs/seafile/lib/python3.7/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


#2

Libreoffice版本是7.0.0


#3

重装了系统,完全按照官网给的步骤,还是这个错误


#4

liboffice 你降一个版本试一下


#5

降到了6.4.6,除了office相关的文档无法预览,其他常见媒体文件都可以预览


#6

无法浏览是报的什么错


#7

在新的虚拟环境重新安装相关python包,目前图片、视频、pdf可以预览,打开txt类型的文件报错: HTTPError: 无法在线打开该文件, office 相关类型文件夹没有报错,一直转圈圈


#8

虚拟环境使用的python版本 3.7


#9

seahub.log
2020-09-07 08:06:47,115 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-07 08:06:47,183 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-07 08:06:47,183 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-07 08:06:47,183 [WARNING] root:16 parse_workers insane workers value “10”
2020-09-07 08:06:55,765 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-07 08:06:56,987 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-07 08:06:58,273 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-07 08:06:58,318 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-07 08:06:59,213 [INFO] seafes:162 load_seafevents_conf [seafes] use highlighter fvh
2020-09-07 08:07:06,240 [ERROR] seahub.views.file:190 repo_file_get HTTP Error 503: Forwarding failure
2020-09-07 08:17:26,789 [ERROR] seahub.views.file:190 repo_file_get HTTP Error 503: Forwarding failure
2020-09-07 08:19:09,637 [WARNING] django.request:37 inner Method Not Allowed (GET): /office-convert/status/
2020-09-07 08:19:09,759 [ERROR] root:1813 office_convert_query_status failed to call query_office_convert_status
Traceback (most recent call last):
File “/opt/seafile/seafile-pro-server-7.1.5/seahub/seahub/views/file.py”, line 1811, in office_convert_query_status
ret = query_office_convert_status(file_id, doctype)
File “/opt/seafile/seafile-pro-server-7.1.5/seahub/seahub/utils/init.py”, line 1145, in query_office_convert_status
d = d.json()
File “/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/requests/models.py”, line 898, in json
return complexjson.loads(self.text, **kwargs)
File “/root/anaconda3/envs/seafile/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/root/anaconda3/envs/seafile/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/root/anaconda3/envs/seafile/lib/python3.7/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


#10

非常诡异的是,txt文件、office相关文件曾经有过一段时间是可以预览的,然后什么都没做就不能预览了


#11

为啥不用olnyoffice


#12

请问问题解决了吗 我也是这样


#13

遇到相同的问题,还得研究研究


#14

我的office用的onlyoffice ok的 但是PDF还是没办法,有解了吗?或者能用only office预览PDF吗 如何设置?我没成功