Elasticsearch errors after seafile restart

Hi everyone.
seafile-pro-server-7.0.7
It seems node.lock file does not delete during stopping of seafile. Therefore, at the next start of seafile elasticsearch produce errors:

java.lang.IllegalStateException: failed to obtain node locks, tried [[/mnt/D/Documents/seafile/pro-data/search/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?

If I am deleting pro-data/search/data/nodes/0/node.lock by myself, and restart seafile - elasticsearch work correctly.
Please help me with this situation.

deleting all note.lock files doesn’t works for me. I got the same error after deleteting the files and restarting seafile (7.0.8) :frowning:

The problem is when you restart the server and there are 2 or more java instances running which caused this error.

My solution was to stop Seafile, search and kill all java instances:

ps aux | grep elastic
kill -9 [pid]

Start Seafile and problem is solved. I have to do this every time I restart the server. There has to be a better way to fix this.

Debian 9.11 and 10.1
Seafile Pro 7.0.8 (manual install)