Pro 版本不能用搜尋功能


#1

不清楚是不是關於這個log.

2019-05-30 10:55:13,162 [ERROR] seahub_extra.search.views:198 search ConnectionError(<urllib3.connection.HTTPConnection object at 0x7effda399690>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7effda399690>: Failed to establish a new connection: [Errno 111] Connection refused)

版本: pro 6.3.9 (沒升級過)


#2

你的 ElaticSearch 服务器没有正常启动吧


#3

請問在那可以看到現時status?

Update:
參考了https://manual.seafile.com/deploy_pro/details_about_file_search.html
因安裝後到現在(沒升級)都沒改過相關搜尋設定,所以不知是否一直都是失敗。

uuuuu@pro:~/seafile-server$ ./pro/pro.py search --update

Updating search index, this may take a while…

06/06/2019 11:31:37 [INFO] root:210 main: storage: using filesystem storage backend
06/06/2019 11:31:37 [INFO] root:212 main: index office pdf: True
06/06/2019 11:31:37 [ERROR] seafes:160 start_index_local: Index process init error: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f444f3d4350>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f444f3d4350>: Failed to establish a new connection: [Errno 111] Connection refused).

[INDEX FILES]
enabled = true
interval = 10m

highlight = fvh
index_office_pdf = true


#4

你看一下 ElasticSearch 服务器的日志。


#5

2019-06-06_203730

這樣應該是我從沒安裝過?


#6

我是依照這個教學來安裝的。

但search 的功能是依照這個來更改
https://manual-cn.seafile.com/deploy_pro/details_about_file_search.html
https://manual.seafile.com/deploy_pro/details_about_file_search.html


#7

你看下 controller.log,看看里边有没有启动 elastic search 服务的信息


#8

太多了…
我隨便抄了一整段出來

[01/25/19 22:23:30] seafile-controller.c(592): pid file /home/mohammad/pids/elasticsearch.pid does not exist
[01/25/19 22:23:30] seafile-controller.c(635): elasticsearch need restart…
[01/25/19 22:23:30] seafile-controller.c(88): spawn_process: /home/mohammad/seafile-server/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/home/mohammad/logs -Des.path.data=/home/mohammad/pro-data/search/data -Des.network.host=127.0.0.1 -Des.insecure.allow.root=true -p /home/mohammad/pids/elasticsearch.pid
[01/25/19 22:23:30] seafile-controller.c(103): spawned /home/mohammad/seafile-server/pro/elasticsearch/bin/elasticsearch, pid 13061


#9

你手动在执行下这个命令,看有什么报错没


#10

mohammad@pro:~$ /home/mohammad/seafile-server/pro/elasticsearch/bin/elasticsearch -Des.path.logs=/home/mohammad/logs -Des.path.data=/home/mohammad/pro-data/search/data -Des.network.host=127.0.0.1 -Des.insecure.allow.root=true -p /home/mohammad/pids/elasticsearch.pid
Unrecognized VM option ‘UseParNewGC’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


#11

把这几行报错贴到网上搜下,应该有对应的解决办法的


#12

我都不知為甚麼現在解決了…(謎)

今天查看pids 內出現了elasticsearch.pid就解決了.

但有一個問題, 為甚麼我不運行這句(人手) 我便不能使用搜尋功能.


運行後能使用搜尋功能, 但做不了其他設定.