gpt4 book ai didi

elasticsearch - Sonarqube服务器由于 Elasticsearch 找不到节点而在启动时失败

转载 作者:行者123 更新时间:2023-12-02 23:35:35 24 4
gpt4 key购买 nike

我正在尝试在Red Hat Enterprise Linux Server 6.4版上启动SonarQube 5.1.2服务器

我的Java版本是1.7.0

我在sonar.log中可以看到elasticsearch节点已启动:

2015.07.29 15:23:07 INFO   es[o.elasticsearch.node]  [sonar-1438179786294] initializing ...
2015.07.29 15:23:07 INFO es[o.e.plugins] [sonar-1438179786294] loaded [], sites []
2015.07.29 15:23:10 INFO es[o.elasticsearch.node] [sonar-1438179786294] initialized
2015.07.29 15:23:10 INFO es[o.elasticsearch.node] [sonar-1438179786294] starting ...
2015.07.29 15:23:10 INFO es[o.e.transport] [sonar-1438179786294] bound_address {inet[/127.0.0.1:9001]}, publish_address {inet[localhost/127.0.0.1:9001]}

由于NodeDisconnectedException,它无法在建立索引规则时启动:
java.lang.IllegalStateException: Fail to execute Bulk[249 index request(s) on index rules and type rule, 35 update request(s) on index rules and type rule]
at org.sonar.server.es.request.ProxyBulkRequestBuilder.get(ProxyBulkRequestBuilder.java:51) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.es.request.ProxyBulkRequestBuilder.get(ProxyBulkRequestBuilder.java:39) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.search.IndexQueue.enqueue(IndexQueue.java:86) ~[sonar-server-5.1.2.jar:na]
at org.sonar.core.persistence.DbSession.commit(DbSession.java:62) ~[sonar-core-5.1.2.jar:na]
at org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:370) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.db.BaseDao.synchronizeAfter(BaseDao.java:361) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.search.IndexSynchronizer.synchronize(IndexSynchronizer.java:106) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.search.IndexSynchronizer.executeDeprecated(IndexSynchronizer.java:73) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.ServerComponents$1.doPrivileged(ServerComponents.java:850) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:43) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.ServerComponents.executeStartupTasks(ServerComponents.java:847) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:126) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:122) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.Platform.doStart(Platform.java:81) ~[sonar-server-5.1.2.jar:na]
at org.sonar.server.platform.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:44) ~[sonar-server-5.1.2.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [tomcat-embed-core-8.0.18.jar:8.0.18]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0]
2015.07.29 15:23:33 INFO app[o.s.p.m.TerminatorThread] Process[web] is stopping
at java.lang.Thread.run(Unknown Source) [na:1.7.0]
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes were available: [[sonar-1438179786294][nhSNyQyhRnWN61jc3hqFDw][inet[/127.0.0.1:9001]]{rack_id=sonar-1438179786294}]
at org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:234) ~[elasticsearch-1.4.4.jar:na]
at org.elasticsearch.action.TransportActionNodeProxy$1.handleException(TransportActionNodeProxy.java:78) ~[elasticsearch-1.4.4.jar:na]
at org.elasticsearch.transport.TransportService$Adapter$3.run(TransportService.java:323) ~[elasticsearch-1.4.4.jar:na]
... 3 common frames omitted
Caused by: org.elasticsearch.transport.NodeDisconnectedException: [sonar-1438179786294][inet[/127.0.0.1:9001]][indices:data/write/bulk] disconnected

我已经尝试了sonar.properties的几种值组合,但是似乎都不起作用:
sonar.search.javaAdditionalOpts=-Des.network.host=localhost

sonar.search.host=127.0.0.1

我已经禁用了防火墙并运气不佳地删除了/ data / es文件夹,并搜索了类似的问题,但是除了elasticsearch无法找到已定义的节点之外,我无法找到问题所在。

有没有人有类似的问题?

最佳答案

感谢您的关注,我终于设法找到并解决了问题。在RHEL 6.4中默认安装的JRE版本是1.7.0,似乎与该版本有关。我将JRE的版本更新为最后一个(java 8),它开始就很好

关于elasticsearch - Sonarqube服务器由于 Elasticsearch 找不到节点而在启动时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31703688/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com