from index.log
10/15/2018 14:31:20 [ERROR] seafes:160 start_index_local: Index process init error:
ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f731e8d6550>: Failed to establish a new connection:
[Errno 111] Connection refused) caused by:
NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f731e8d6550>:
Failed to establish a new connection: [Errno 111] Connection refused).
I can run /pro/pro.py search --update
perfectly fine, it indexes all files
I can also see the java process running on port 9200, I can also do a search in seahub, it’s just… its index is never updated automatically
Part of my controller.log
:
[10/15/18 14:27:46] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 27981
[10/15/18 14:27:56] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:27:57] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:27:58] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:27:58] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 27983
[10/15/18 14:28:13] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:28:17] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:28:19] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:28:20] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 27994
[10/15/18 14:28:24] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:28:26] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:28:26] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:28:26] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 28000
[10/15/18 14:28:40] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:28:48] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:28:50] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:28:51] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 28008
[10/15/18 14:28:51] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:28:51] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:28:51] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:28:51] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 28009
[10/15/18 14:29:01] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:29:01] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:29:01] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:29:01] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 29679
[10/15/18 14:29:11] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:29:11] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:29:11] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:29:11] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 29938
[10/15/18 14:29:23] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:29:24] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:29:25] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:29:25] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 30027
[10/15/18 14:29:39] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:29:40] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:29:40] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:29:41] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 30038
[10/15/18 14:29:48] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:29:57] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:29:59] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:29:59] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 30042
[10/15/18 14:30:00] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:30:00] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:30:00] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:30:00] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 30046
[10/15/18 14:30:09] seafile-controller.c(590): pid file /seafile/pids/elasticsearch.pid does not exist
[10/15/18 14:30:09] seafile-controller.c(628): elasticsearch need restart...
[10/15/18 14:30:09] seafile-controller.c(87): spawn_process: /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/seafile/logs -Des.path.data=/seafile/pro-data/search/data -Des.network.host=0.0.0.0 -Des.insecure.allow.root=true -p /seafile/pids/elasticsearch.pid
[10/15/18 14:30:09] seafile-controller.c(102): spawned /seafile/seafile-pro-server-6.3.6/pro/elasticsearch/bin/elasticsearch, pid 31139
elastisearch.pid is in the folder as we speak. For some reason it keeps restarting, but why…?
Could it be that the the java process isn’t started quick enough so it thinks it is not running and restarts and restarts and restarts and restarts?
EDIT: it seems to be working now although I didn’t change anything. Is this a RAM issue or something similar? If so, maybe the controller should be a little less aggressive in restarting so the machine has some time to get things going…