开发者社区> 问答> 正文

sonarqube启动时卡在es的启动上,未出现es up的日志,未能正常启动s?400报错

今天启动 StartSonar.bat。日志一直停留在

2017.01.23 09:37:05 INFO  app[][o.s.p.m.JavaProcessLauncher] Launch process[es]: F:\Java\jdk1.8.0_121\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=F:\sonarqube-6.2\temp -javaagent:F:\Java\jdk1.8.0_121\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer F:\sonarqube-6.2\temp\sq-process3846108791591810165properties


查看之前的启动日志,后面执行的该是

2017.01.22 10:54:09 INFO  app[][o.s.p.m.Monitor] Process[es] is up


可等待许久,仍卡在上述launch处,而日志未见报错。es.log如下

2017.01.23 09:37:06 INFO  es[][o.s.p.ProcessEntryPoint] Starting es
2017.01.23 09:37:06 INFO  es[][o.s.s.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.01.23 09:37:07 INFO  es[][o.elasticsearch.node] [sonarqube] version[2.3.5], pid[7632], build[90f439f/2016-07-27T10:36:52Z]
2017.01.23 09:37:07 INFO  es[][o.elasticsearch.node] [sonarqube] initializing ...
2017.01.23 09:37:07 INFO  es[][o.e.plugins] [sonarqube] modules [], plugins [], sites []
2017.01.23 09:37:07 INFO  es[][o.elasticsearch.env] [sonarqube] using [1] data paths, mounts [[(F:)]], net usable_space [59.3gb], net total_space [100.4gb], spins? [unknown], types [NTFS]
2017.01.23 09:37:07 INFO  es[][o.elasticsearch.env] [sonarqube] heap size [1011.2mb], compressed ordinary object pointers [unknown]
2017.01.23 09:37:10 INFO  es[][o.elasticsearch.node] [sonarqube] initialized
2017.01.23 09:37:10 INFO  es[][o.elasticsearch.node] [sonarqube] starting ...
2017.01.23 09:37:10 INFO  es[][o.e.transport] [sonarqube] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2017.01.23 09:37:10 INFO  es[][o.e.discovery] [sonarqube] sonarqube/H7ZNJ23DRMKLDTZS64BqpA
2017.01.23 09:37:14 INFO  es[][o.e.cluster.service] [sonarqube] new_master {sonarqube}{H7ZNJ23DRMKLDTZS64BqpA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube, master=true}, reason: zen-disco-join(elected_as_master, [0] joins received)
2017.01.23 09:37:14 INFO  es[][o.elasticsearch.node] [sonarqube] started
2017.01.23 09:37:15 INFO  es[][o.e.gateway] [sonarqube] recovered [6] indices into cluster_state


不知哪位大神了解 launch 到 up 这过程与什么相关?我可从哪里下手检查出了什么问题?怎么一直不执行up啊。

另外,此时访问 http://127.0.0.1:9001/,显示

This is not a HTTP port

展开
收起
爱吃鱼的程序员 2020-06-08 17:31:42 1341 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    补充,es.log有个warn

     

    2017.02.0311:24:27INFO es[][o.s.p.StopWatcher]Stoppingprocess
    2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]stopping...
    2017.02.0311:24:27 WARN es[][o.s.p.ProcessEntryPoint]Failtostartes
    java.lang.IllegalStateException:ClusterServicewascloseduringhealthcall
       atorg.elasticsearch.action.admin.cluster.health.TransportClusterHealthAction$3.onClusterServiceClose(TransportClusterHealthAction.java:162)
       atorg.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onClose(ClusterStateObserver.java:222)
       atorg.elasticsearch.cluster.service.InternalClusterService.doStop(InternalClusterService.java:214)
       atorg.elasticsearch.common.component.AbstractLifecycleComponent.stop(AbstractLifecycleComponent.java:88)
       atorg.elasticsearch.node.Node.stop(Node.java:326)
       atorg.elasticsearch.node.Node.close(Node.java:351)
       atorg.sonar.search.SearchServer.stop(SearchServer.java:82)
       atorg.sonar.process.StopperThread$1.run(StopperThread.java:51)
       atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       atjava.util.concurrent.FutureTask.run(FutureTask.java:266)
       atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       atjava.lang.Thread.run(Thread.java:745)
    2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]stopped
    2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]closing...
    2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]closed
    2017.02.0311:27:11INFO es[][o.s.p.ProcessEntryPoint]Startinges
    2017.02.0311:27:11INFO es[][o.s.s.EsSettings]Elasticsearchlisteningon/127.0.0.1:9001
    2017.02.0311:27:12INFO es[][o.elasticsearch.node][sonarqube]version[2.3.5],pid[8220],build[90f439f/2016-07-27T10:36:52Z]
    2017.02.0311:27:12INFO es[][o.elasticsearch.node][sonarqube]initializing...
    2017.02.0311:27:12INFO es[][o.e.plugins][sonarqube]modules[],plugins[],sites[]
    2017.02.0311:27:12INFO es[][o.elasticsearch.env][sonarqube]using[1]datapaths,mounts[[(F:)]],netusable_space[59.1gb],nettotal_space[100.4gb],spins?[unknown],types[NTFS]
    2017.02.0311:27:12INFO es[][o.elasticsearch.env][sonarqube]heapsize[1011.2mb],compressedordinaryobjectpointers[unknown]
    2017.02.0311:27:15INFO es[][o.elasticsearch.node][sonarqube]initialized
    2017.02.0311:27:15INFO es[][o.elasticsearch.node][sonarqube]starting...
    2017.02.0311:27:16INFO es[][o.e.transport][sonarqube]publish_address{127.0.0.1:9001},bound_addresses{127.0.0.1:9001}
    2017.02.0311:27:16INFO es[][o.e.discovery][sonarqube]sonarqube/vly43KOLSmqoZ3w-owlLWQ
    2017.02.0311:27:20INFO es[][o.e.cluster.service][sonarqube]new_master{sonarqube}{vly43KOLSmqoZ3w-owlLWQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube,master=true},reason:zen-disco-join(elected_as_master,[0]joinsreceived)
    2017.02.0311:27:20INFO es[][o.elasticsearch.node][sonarqube]started
    2017.02.0311:27:20INFO es[][o.e.gateway][sonarqube]recovered[6]indicesintocluster_state

    2020-06-08 17:31:59
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载