如题,专业版7.18在web端无法搜索。按照Seafile7专业版无法搜索文件操作,未见效。请问如何排查?
查看elasticsearch日志,看有没有报错
该日志文件的路径是什么?
我找到了,但是没有最近时间的日志,都是20天前左右的日志,好像服务没有启动成功
看一下配置文件的seafevent 开启索引了吗
查看seafevents.conf中的设置,是已经设置了:
index_office_pdf = true
这个配置是开启全文索引
[INDEX FILES]
## must be "true" to enable search
enabled = true
应该看这一项
设置了。看了一下log文件,seafile启动Elasticsearch时,出现如下的error:
failed to obtain node locks
controller.log中的信息:
[12/24/20 07:26:50] seafile-controller.c(130): spawned /data/8T_raid_1/seafile/seafile-pro-server-7.1.8/pro/elasticsearch/bin/elasticsearch, pid 4407
[12/24/20 07:27:00] seafile-controller.c(585): pid file /data/8T_raid_1/seafile/pids/elasticsearch.pid does not exist
[12/24/20 07:27:00] seafile-controller.c(633): elasticsearch need restart...
[12/24/20 07:27:00] seafile-controller.c(96): spawn_process: /data/8T_raid_1/seafile/seafile-pro-server-7.1.8/pro/elasticsearch/bin/elasticsearch -Epath.logs=/data/8T_raid_1/seafile/logs -Epath.data=/data/8T_raid_1/seafile/pro-data/search/data -Enetwork.host=127.0.0.1 -p /data/8T_raid_1/seafile/pids/elasticsearch.pid
elasticsearch.log只的信息:
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/8T_raid_1/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])?
at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:265) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.<init>(Node.java:245) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:233) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:233) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.13.jar:5.6.13]
可以了,主要是权限问题造成的。
问个问题,加密资料库,是否可以搜索?
看了,可以。谢谢了