昨天运行sonar还好好的,今天运行就自动退出了,sonar.log日志文件如下:
--> Wrapper Started as ConsoleLaunching a JVM...Wrapper (Version 3.2.3) Copyright 1999- Tanuki Software, Inc. All Rights Reserved..05.28 09:39:28 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory D:\LG\sonarqube-7.5\temp.05.28 09:39:28 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001.05.28 09:39:29 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [D:\LG\sonarqube-7.5\elasticsearch]: D:\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -ty.noUnsafe=true -ty.noKeySetOptimization=true -ty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\LG\sonarqube-7.5\elasticsearch -cp lib/* org.elasticsearch.bootstrap.Elasticsearch -Epath.conf=D:\LG\sonarqube-7.5\temp\conf\es.05.28 09:39:29 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running.05.28 09:39:29 INFO app[][o.e.p.PluginsService] no modules loaded.05.28 09:39:29 INFO app[][o.e.p.PluginsService] loaded plugin [org.ty4Plugin].05.28 09:39:32 WARN app[][o.e.ty4Transport] exception caught on transport layer [[id: 0xe5d5a747, L:/127.0.0.1:18558 - R:/127.0.0.1:9001]], closing ty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)at ty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)at ty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)at ty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)at ty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)at ty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)at ty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)at ty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)at java.lang.Thread.run(Unknown Source)Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)at org.ty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)at ty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)... 19 common frames omitted.05.28 09:39:32 WARN app[][o.e.ty4Transport] exception caught on transport layer [[id: 0xe5d5a747, L:/127.0.0.1:18558 ! R:/127.0.0.1:9001]], closing ty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)at ty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:392)at ty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359)at ty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)at ty.handler.logging.LoggingHandler.channelInactive(LoggingHandler.java:167)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)at ty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908)at ty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744)at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)at java.lang.Thread.run(Unknown Source)Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)at org.ty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)at ty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)... 20 common frames omitted.05.28 09:39:35 WARN app[][o.e.ty4Transport] exception caught on transport layer [[id: 0x458a9484, L:/127.0.0.1:18623 - R:/127.0.0.1:9001]], closing ty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)at ty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)at ty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)at ty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)at ty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)at ty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)at ty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)at ty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)at ty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)at ty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)at java.lang.Thread.run(Unknown Source)Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)at org.ty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)at ty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)... 19 common frames omitted.05.28 09:39:35 WARN app[][o.e.ty4Transport] exception caught on transport layer [[id: 0x458a9484, L:/127.0.0.1:18623 ! R:/127.0.0.1:9001]], closing ty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459)at ty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:392)at ty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:359)at ty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)at ty.handler.logging.LoggingHandler.channelInactive(LoggingHandler.java:167)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)at ty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1329)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)at ty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)at ty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:908)at ty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:744)at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)at java.lang.Thread.run(Unknown Source)Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (48,54,54,50)at org.elasticsearch.transport.TcpTransport.validateMessageHeader(TcpTransport.java:1276)at org.ty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:36)at ty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)at ty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)... 20 common frames omitted.05.28 09:39:35 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1.05.28 09:39:35 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped.05.28 09:39:35 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
百度没有找出响应结果:
查看es.log日志如下:
.05.28 09:37:42 INFO es[][o.e.n.Node] initializing ....05.28 09:37:42 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[software (D:)]], net usable_space [72.3gb], net total_space [245.2gb], spins? [unknown], types [NTFS].05.28 09:37:42 INFO es[][o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true].05.28 09:37:42 INFO es[][o.e.n.Node] node name [sonarqube], node ID [XRef1LaMTiS8-00bwdHiog].05.28 09:37:42 INFO es[][o.e.n.Node] version[5.6.3], pid[3028], build[1a2f265/-10-06T20:33:39.012Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_251/25.251-b08].05.28 09:37:42 INFO es[][o.e.n.Node] JVM arguments [-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, -ty.noUnsafe=true, -ty.noKeySetOptimization=true, -ty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=D:\LG\sonarqube-7.5\elasticsearch].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [ingest-common].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [parent-join].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [percolator].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [reindex].05.28 09:37:43 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4].05.28 09:37:43 INFO es[][o.e.p.PluginsService] no plugins loaded.05.28 09:37:45 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen].05.28 09:37:45 INFO es[][o.e.n.Node] initialized.05.28 09:37:45 INFO es[][o.e.n.Node] starting ....05.28 09:37:47 ERROR es[][o.e.b.Bootstrap] Exceptionorg.elasticsearch.transport.BindTransportException: Failed to bind to [9001]at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:780) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:745) ~[elasticsearch-5.6.3.jar:5.6.3]at org.ty4Transport.doStart(Netty4Transport.java:174) ~[?:?]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TransportService.doStart(TransportService.java:209) ~[elasticsearch-5.6.3.jar:5.6.3]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.node.Node.start(Node.java:694) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:278) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.3.jar:5.6.3]at org.mand.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.3.jar:5.6.3]at org.mand.main(Command.java:90) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.3.jar:5.6.3]Caused by: .BindException: Address already in use: bindat sun..bind0(Native Method) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:?]at ty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[?:?]at ty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554) ~[?:?]at ty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258) ~[?:?]at ty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[?:?]at ty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?]at ty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[?:?]at ty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[?:?]at ty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:?]at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) ~[?:?]at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_251].05.28 09:37:47 WARN es[][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9001]]; nested: BindException[Address already in use: bind];at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.3.jar:5.6.3]at org.mand.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.3.jar:5.6.3]at org.mand.main(Command.java:90) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.3.jar:5.6.3]Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:780) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:745) ~[elasticsearch-5.6.3.jar:5.6.3]at org.ty4Transport.doStart(Netty4Transport.java:174) ~[?:?]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TransportService.doStart(TransportService.java:209) ~[elasticsearch-5.6.3.jar:5.6.3]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.node.Node.start(Node.java:694) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:278) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.3.jar:5.6.3]... 6 moreCaused by: .BindException: Address already in use: bindat sun..bind0(Native Method) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:?]at ty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[?:?]at ty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554) ~[?:?]at ty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258) ~[?:?]at ty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[?:?]at ty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?]at ty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[?:?]at ty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[?:?]at ty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:?]at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) ~[?:?]at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]at java.lang.Thread.run(Unknown Source) [?:1.8.0_251].05.28 09:37:48 INFO es[][o.e.n.Node] stopping ....05.28 09:37:48 INFO es[][o.e.n.Node] stopped.05.28 09:37:48 INFO es[][o.e.n.Node] closing ....05.28 09:37:48 INFO es[][o.e.n.Node] closed.05.28 09:39:30 INFO es[][o.e.n.Node] initializing ....05.28 09:39:30 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[software (D:)]], net usable_space [72.3gb], net total_space [245.2gb], spins? [unknown], types [NTFS].05.28 09:39:30 INFO es[][o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true].05.28 09:39:30 INFO es[][o.e.n.Node] node name [sonarqube], node ID [XRef1LaMTiS8-00bwdHiog].05.28 09:39:30 INFO es[][o.e.n.Node] version[5.6.3], pid[11580], build[1a2f265/-10-06T20:33:39.012Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_251/25.251-b08].05.28 09:39:30 INFO es[][o.e.n.Node] JVM arguments [-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, -ty.noUnsafe=true, -ty.noKeySetOptimization=true, -ty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=D:\LG\sonarqube-7.5\elasticsearch].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [aggs-matrix-stats].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [ingest-common].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [parent-join].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [percolator].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [reindex].05.28 09:39:30 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4].05.28 09:39:30 INFO es[][o.e.p.PluginsService] no plugins loaded.05.28 09:39:33 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen].05.28 09:39:33 INFO es[][o.e.n.Node] initialized.05.28 09:39:33 INFO es[][o.e.n.Node] starting ....05.28 09:39:34 ERROR es[][o.e.b.Bootstrap] Exceptionorg.elasticsearch.transport.BindTransportException: Failed to bind to [9001]at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:780) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:745) ~[elasticsearch-5.6.3.jar:5.6.3]at org.ty4Transport.doStart(Netty4Transport.java:174) ~[?:?]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TransportService.doStart(TransportService.java:209) ~[elasticsearch-5.6.3.jar:5.6.3]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.node.Node.start(Node.java:694) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:278) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) [elasticsearch-5.6.3.jar:5.6.3]at org.mand.mainWithoutErrorHandling(Command.java:134) [elasticsearch-5.6.3.jar:5.6.3]at org.mand.main(Command.java:90) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.6.3.jar:5.6.3]Caused by: .BindException: Address already in use: bindat sun..bind0(Native Method) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:?]at ty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[?:?]at ty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554) ~[?:?]at ty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258) ~[?:?]at ty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[?:?]at ty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?]at ty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[?:?]at ty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[?:?]at ty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:?]at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) ~[?:?]at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]at java.lang.Thread.run(Unknown Source) ~[?:1.8.0_251].05.28 09:39:34 WARN es[][o.e.b.ElasticsearchUncaughtExceptionHandler] uncaught exception in thread [main]org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9001]]; nested: BindException[Address already in use: bind];at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:70) ~[elasticsearch-5.6.3.jar:5.6.3]at org.mand.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.3.jar:5.6.3]at org.mand.main(Command.java:90) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.3.jar:5.6.3]Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:780) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:745) ~[elasticsearch-5.6.3.jar:5.6.3]at org.ty4Transport.doStart(Netty4Transport.java:174) ~[?:?]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.transport.TransportService.doStart(TransportService.java:209) ~[elasticsearch-5.6.3.jar:5.6.3]at ponent.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.node.Node.start(Node.java:694) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:278) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elasticsearch-5.6.3.jar:5.6.3]at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.3.jar:5.6.3]... 6 moreCaused by: .BindException: Address already in use: bindat sun..bind0(Native Method) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun..bind(Unknown Source) ~[?:?]at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[?:?]at ty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[?:?]at ty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554) ~[?:?]at ty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258) ~[?:?]at ty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[?:?]at ty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?]at ty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[?:?]at ty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[?:?]at ty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:?]at ty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) ~[?:?]at ty.channel.nio.NioEventLoop.run(NioEventLoop.java:462) ~[?:?]at ty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:?]at java.lang.Thread.run(Unknown Source) [?:1.8.0_251].05.28 09:39:35 INFO es[][o.e.n.Node] stopping ....05.28 09:39:35 INFO es[][o.e.n.Node] stopped.05.28 09:39:35 INFO es[][o.e.n.Node] closing ....05.28 09:39:35 INFO es[][o.e.n.Node] closed
显示ES使用9001端口被占用,使用 “C:\Windows\System32”到system32文件夹下,输入netstat -ano命令,查看使用
调出任务管理器,查看pid为4的进程
无法结束进程,只能进入sonar.properties里修改ES端口:
设置
sonar.search.port=9003
重启sonar,解决问题。