部署方式为 docker-compose,从8.0.14升级至9.0.5后出现错误,在线查看office文件100%复现。
seahub.log 如下:
2022-05-29 17:37:20,996 [ERROR] root:1154 prepare_converted_html failed to add_office_convert_task: HTTPConnectionPool(host='127.0.0.1', port=6000): Max retries exceeded with url: /add-task?file_id=fe61b8fca0823619d11e9ab9b6f10af18dfb51c1&doctype=xlsx&raw_path=https%3A%2F%2xxxxxx.xxx/xxxxxxxx%2Fcq.xlsx (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb84395ac40>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/opt/seafile/seafile-pro-server-9.0.5/seahub/thirdpart/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb84395ac40>: Failed to establish a new connection: [Errno 111] Connection refused
seafevents.conf 相关配置如下:
[OFFICE CONVERTER]
port = 6000
host = 127.0.0.1
enabled = true
workers = 10
但在 seafile 容器内,确实没看到 6000 的 Listen,以前也没注意过有没有。。