Since upgrading from Seafile Community server to Seafile pro, my elasticsearch has failed to work since the upgrade.
It appears to be indexing (the elasticsearch directory is frequently updated with something and is about 1 gig in size). However when you type anything into the search bar, the result is inevitably “No results matching” or “No result”.
I can connect to the elasticsearch server using curl although all searches I have tried there are also blank (I don’t understand the syntax or search terms very well, though).
Part of the problem I’m having is I can’t figure out how to get any reasonable error message from the logs.
However: I thought maybe resetting the search index and starting indexing over would be a good idea.
I ran pro.py search --clear
and you can see the results below - some really crazy error messages.
Does anyone have any ideas about how to address this?
docker exec -it seafile /opt/seafile/seafile-server-latest/pro/pro.py search --clear
Delete seafile search index ([y]/n)? y
Delete search index, this may take a while...
05/19/2024 03:51:41 [INFO] seafes:210 main: storage: using filesystem storage backend
05/19/2024 03:51:41 [INFO] seafes:212 main: index office pdf: True
05/19/2024 03:51:41 [INFO] elastic_transport.transport:359 perform_request: HEAD http://127.0.0.1:9200/repo_head [status:N/A duration:0.001s]
05/19/2024 03:51:41 [WARNING] elastic_transport.node_pool:246 mark_dead: Node <Urllib3HttpNode(http://127.0.0.1:9200)> has failed for 1 times in a row, putting on 1 second timeout
05/19/2024 03:51:41 [WARNING] elastic_transport.transport:396 perform_request: Retrying request after failure (attempt 0 of 3)
Traceback (most recent call last):
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_transport.py", line 329, in perform_request
meta, raw_data = node.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_node/_http_urllib3.py", line 199, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x782070ef0df0>: Failed to establish a new connection: [Errno 111] Connection refused)
05/19/2024 03:51:41 [INFO] elastic_transport.transport:359 perform_request: HEAD http://127.0.0.1:9200/repo_head [status:N/A duration:0.001s]
05/19/2024 03:51:41 [WARNING] elastic_transport.node_pool:246 mark_dead: Node <Urllib3HttpNode(http://127.0.0.1:9200)> has failed for 2 times in a row, putting on 2 second timeout
05/19/2024 03:51:41 [WARNING] elastic_transport.transport:396 perform_request: Retrying request after failure (attempt 1 of 3)
Traceback (most recent call last):
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_transport.py", line 329, in perform_request
meta, raw_data = node.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_node/_http_urllib3.py", line 199, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x782070e82250>: Failed to establish a new connection: [Errno 111] Connection refused)
05/19/2024 03:51:41 [INFO] elastic_transport.transport:359 perform_request: HEAD http://127.0.0.1:9200/repo_head [status:N/A duration:0.000s]
05/19/2024 03:51:41 [WARNING] elastic_transport.node_pool:246 mark_dead: Node <Urllib3HttpNode(http://127.0.0.1:9200)> has failed for 3 times in a row, putting on 4 second timeout
05/19/2024 03:51:41 [WARNING] elastic_transport.transport:396 perform_request: Retrying request after failure (attempt 2 of 3)
Traceback (most recent call last):
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_transport.py", line 329, in perform_request
meta, raw_data = node.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_node/_http_urllib3.py", line 199, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x782070e82430>: Failed to establish a new connection: [Errno 111] Connection refused)
05/19/2024 03:51:41 [INFO] elastic_transport.transport:359 perform_request: HEAD http://127.0.0.1:9200/repo_head [status:N/A duration:0.000s]
05/19/2024 03:51:41 [WARNING] elastic_transport.node_pool:246 mark_dead: Node <Urllib3HttpNode(http://127.0.0.1:9200)> has failed for 4 times in a row, putting on 8 second timeout
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/seafile/seafile-server-latest/pro/python/seafes/index_local.py", line 264, in <module>
main()
File "/opt/seafile/seafile-server-latest/pro/python/seafes/index_local.py", line 214, in main
args.func()
File "/opt/seafile/seafile-server-latest/pro/python/seafes/index_local.py", line 174, in delete_indices
if es.indices.exists(index=idx):
File "/opt/seafile/seafile-server-latest/pro/python/elasticsearch/_sync/client/utils.py", line 414, in wrapped
return api(*args, **kwargs)
File "/opt/seafile/seafile-server-latest/pro/python/elasticsearch/_sync/client/indices.py", line 1111, in exists
return self.perform_request( # type: ignore[return-value]
File "/opt/seafile/seafile-server-latest/pro/python/elasticsearch/_sync/client/_base.py", line 390, in perform_request
return self._client.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elasticsearch/_sync/client/_base.py", line 286, in perform_request
meta, resp_body = self.transport.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_transport.py", line 329, in perform_request
meta, raw_data = node.perform_request(
File "/opt/seafile/seafile-server-latest/pro/python/elastic_transport/_node/_http_urllib3.py", line 199, in perform_request
raise err from None
elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x782070ef0df0>: Failed to establish a new connection: [Errno 111] Connection refused))