I have migrated from Seafile CE to Seafile Pro 9.0.7 (both as docker), and everything works as before, except the file search function in the web. When I try to search for a file, I get the spinning wheel and an error saying “internal server error”
On my server side, I can see via
sudo docker-compose ps everything seems to be up and running: seafile, seafile-elaticsearch, seafile-memcached, and seafile-mysql.
When looking at the directory of elasticsearch, I don’t see any indexes, only a weird
lock.node file. Here is the dir structure:
$ sudo tree /opt/seafile-elasticsearch/ /opt/seafile-elasticsearch/ ├── data │ └── nodes │ └── 0 │ ├── node.lock │ └── _state │ ├── global-0.st │ └── node-0.st
I tried installing the dependencies with pip3 as some ppl have suggested, but nothing seems to work. The search function is still not working.
My seafile docker is behind an apache with reverse proxy and a custom port, not sure if that could be the issue?
The last log line from docker-compose reads:
recovered  indices into cluster_state
For some reason, whenever I start seafile, the user and group of
/opt/seafile-elasticsearch/data changed to
systemd-resolve:systemd-journal instead of
When I run pro.py search --update, I get the following error:
$ sudo docker exec -it seafile /opt/seafile/seafile-server-latest/pro/pro.py search --update
[ERROR] seafes:158 start_index_local: Index process init error: ConnectionError(<urllib3.connection.HTTPConnection object at 0x… >: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f2ab2133c40>: Failed to establish a new connection: [Errno 111] Connection refused)
The output of the controller.logs keeps repeating these lines:
2022-09-07 21:44:25 seafile-controller.c(585): pid file /opt/seafile/pids/elasticsearch.pid does not exist
2022-09-07 21:44:25 seafile-controller.c(680): elasticsearch need restart…
2022-09-07 21:44:25 seafile-controller.c(97): spawn_process: /opt/seafile/seafile-pro-server-9.0.7/pro/elasticsearch/bin/elasticsearch -Epath.logs=/opt/seafile/logs -Epath.data=/opt/seafile/pro-data/search/data -Enetwork.host=127.0.0.1 -p /opt/seafile/pids/elasticsearch.pid
2022-09-07 21:44:25 seafile-controller.c(131): spawned /opt/seafile/seafile-pro-server-9.0.7/pro/elasticsearch/bin/elasticsearch, pid 2863
2022-09-07 21:44:25 seafile-controller.c(119): failed to execvp /opt/seafile/seafile-pro-server-9.0.7/pro/elasticsearch/bin/elasticsearch