This does not work as well:
root@jcloud:/Seafile/pro-server# ./pro/pro.py search --clear
Delete seafile search index ([y]/n)? y
Delete search index, this may take a while...
/Seafile/pro-server/seahub/thirdpart/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
08/05/2019 17:03:23 [INFO] root:208 main: storage: using filesystem storage backend
08/05/2019 17:03:23 [INFO] root:210 main: index office pdf: True
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Seafile/pro-server/pro/python/seafes/index_local.py", line 268, in <module>
main()
File "/Seafile/pro-server/pro/python/seafes/index_local.py", line 212, in main
args.func()
File "/Seafile/pro-server/pro/python/seafes/index_local.py", line 173, in delete_indices
if es.indices.exists(idx):
File "/Seafile/pro-server/pro/python/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/Seafile/pro-server/pro/python/elasticsearch/client/indices.py", line 224, in exists
params=params)
File "/Seafile/pro-server/pro/python/elasticsearch/transport.py", line 312, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/Seafile/pro-server/pro/python/elasticsearch/connection/http_urllib3.py", line 123, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f4eb7ca57d0>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f4eb7ca57d0>: Failed to establish a new connection: [Errno 111] Connection refused)