elasticsearch反复崩溃,没有报警,搜索显示 “ internal server error"


#1

求助各位大侠:

我的seafile 功能一切正常,就是搜索不行,在网路上找了很多帖子,都是关于运行环境的问题,但是我的情况如下,elasticsearch反复崩溃,没有报警。导致搜索不行。
我的系统是18.04.03LTS
还请各位大侠指教

control log
[03/24/20 08:31:12] seafile-controller.c(594): pid file /opt/seafile/pids/elasticsearch.pid does not exist
[03/24/20 08:31:12] seafile-controller.c(637): elasticsearch need restart…
[03/24/20 08:31:12] seafile-controller.c(94): spawn_process: /opt/seafile/seafile-pro-server-7.0.14/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
[03/24/20 08:31:12] seafile-controller.c(109): spawned /opt/seafile/seafile-pro-server-7.0.14/pro/elasticsearch/bin/elasticsearch, pid 17329
[03/24/20 08:31:22] seafile-controller.c(594): pid file /opt/seafile/pids/elasticsearch.pid does not exist
[03/24/20 08:31:22] seafile-controller.c(637): elasticsearch need restart…
[03/24/20 08:31:22] seafile-controller.c(94): spawn_process: /opt/seafile/seafile-pro-server-7.0.14/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
[03/24/20 08:31:22] seafile-controller.c(109): spawned /opt/seafile/seafile-pro-server-7.0.14/pro/elasticsearch/bin/elasticsearch, pid 17852

elasticsearch.log
[2020-03-24T08:26:03,943][INFO ][o.e.n.Node ] [] initializing …
[2020-03-24T08:26:04,083][INFO ][o.e.e.NodeEnvironment ] [0S7Nwpm] using [1] data paths, mounts [[/ (/dev/sda2)]], net usable_space [23.7gb], net total_space [54.8gb], spins? [no], types [ext4]
[2020-03-24T08:26:04,084][INFO ][o.e.e.NodeEnvironment ] [0S7Nwpm] heap size [990.7mb], compressed ordinary object pointers [true]
[2020-03-24T08:26:04,087][INFO ][o.e.n.Node ] node name [0S7Nwpm] derived from node ID [0S7NwpmXTPG-Q_X2Rk_RlA]; set [node.name] to override
[2020-03-24T08:26:04,087][INFO ][o.e.n.Node ] version[5.6.13], pid[2221], build[4d5320b/2018-10-30T19:05:08.237Z], OS[Linux/4.15.0-91-generic/amd64], JVM[Private Build/OpenJDK 64-Bit Server VM/1.8.0_242/25.242-b08]
[2020-03-24T08:26:04,087][INFO ][o.e.n.Node ] JVM arguments [-Xms512m, -Xmx1g, -XX:-AssumeMP, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/seafile/seafile-pro-server-7.0.14/pro/elasticsearch]
[2020-03-24T08:26:05,615][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [aggs-matrix-stats]
[2020-03-24T08:26:05,615][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [ingest-common]
[2020-03-24T08:26:05,616][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [lang-expression]
[2020-03-24T08:26:05,616][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [lang-groovy]
[2020-03-24T08:26:05,616][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [lang-mustache]
[2020-03-24T08:26:05,616][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [lang-painless]
[2020-03-24T08:26:05,617][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [parent-join]
[2020-03-24T08:26:05,617][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [percolator]
[2020-03-24T08:26:05,617][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [reindex]
[2020-03-24T08:26:05,617][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [transport-netty3]
[2020-03-24T08:26:05,618][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded module [transport-netty4]
[2020-03-24T08:26:05,619][INFO ][o.e.p.PluginsService ] [0S7Nwpm] loaded plugin [analysis-ik]
[2020-03-24T08:26:06,629][ERROR][o.e.b.Bootstrap ] Exception
java.lang.NullPointerException: null
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:273) ~[?:?]
at org.elasticsearch.common.io.PathUtils.get(PathUtils.java:60) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.readSysFsCgroupCpuAcctCpuAcctUsage(OsProbe.java:274) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.getCgroupCpuAcctUsageNanos(OsProbe.java:261) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.getCgroup(OsProbe.java:419) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.osStats(OsProbe.java:464) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsService.(OsService.java:45) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.MonitorService.(MonitorService.java:45) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.(Node.java:362) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.(Node.java:245) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap$5.(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]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.13.jar:5.6.13]
[2020-03-24T08:26:06,643][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.NullPointerException
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.13.jar:5.6.13]
Caused by: java.lang.NullPointerException
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:273) ~[?:?]
at org.elasticsearch.common.io.PathUtils.get(PathUtils.java:60) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.readSysFsCgroupCpuAcctCpuAcctUsage(OsProbe.java:274) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.getCgroupCpuAcctUsageNanos(OsProbe.java:261) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.getCgroup(OsProbe.java:419) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsProbe.osStats(OsProbe.java:464) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.os.OsService.(OsService.java:45) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.monitor.MonitorService.(MonitorService.java:45) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.(Node.java:362) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.node.Node.(Node.java:245) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap$5.(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]
… 6 more


#2

解决了 删除 pro 文件夹下面 search文件夹 重新安装 payten 重启就行了