sonarqube:java.net.BindException: Address already in use

原创 2016年08月31日 10:34:00


 启动sonarqube服务后,从客户端不能访问主机。查询日志文件 /usr/local/sonarqube-5.0.1/logs/sonar.log 后,发现如下错误:


2016.06.20 18:31:25 INFO  sea[o.s.p.ProcessEntryPoint]  Starting search
2016.06.20 18:31:25 INFO  sea[o.s.s.SearchServer]  Starting Elasticsearch[sonarqube] on port 9001
2016.06.20 18:31:25 INFO  sea[o.elasticsearch.node]  [sonar-1466427684530] version[1.1.2], pid[4912], build[e511f7b/2014-05-22T12:27:39Z]
2016.06.20 18:31:25 INFO  sea[o.elasticsearch.node]  [sonar-1466427684530] initializing ...
2016.06.20 18:31:25 INFO  sea[o.e.plugins]  [sonar-1466427684530] loaded [], sites []
2016.06.20 18:31:27 INFO  sea[o.elasticsearch.node]  [sonar-1466427684530] initialized
2016.06.20 18:31:27 INFO  sea[o.elasticsearch.node]  [sonar-1466427684530] starting ...
2016.06.20 18:31:27 WARN  sea[o.s.p.ProcessEntryPoint]  Fail to start search
org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]

......

java.net.BindException: Cannot assign requested address


解决问题:

问题的关键在于红字给出的错误。 说明9001端口被别的程序占用了(很可能是上次启动遗留下来的elasticsearch进程占用的)

# lsof -i:9001|more
COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
java    20598 root  184u  IPv4 10467575      0t0  TCP *:etlservicemgr (LISTEN)
java    20598 root  186u  IPv4 10481815      0t0  TCP svnhost.:34460->svnhost.:etlservicemgr (ESTABLISHED)
java    20598 root  187u  IPv4 10481117      0t0  TCP svnhost.:etlservicemgr->svnhost.:34460 (ESTABLISHED)
...


杀掉这个进程即可

# kill -9 20598

然后重新启动SonarQube就好了



elasticsearch遇到的问题

linux下启动报错BindTransportException[Failed to bind to [9300-9400]解决办法Exception in thread "main" BindTra...

Tomcat启动报错:java.net.BindException: Cannot assign requested address: JVM_Bind

文章出自:http://www.365mini.com/page/tomcat-cannot-assign-requested-address.htm Tomcat Cannot assign ...

elasticsearch 的安装使用总结,在ubuntu上

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubunt...

Address already in use: JVM_Bind(端口冲突)

1.错误描述2011-7-20 11:05:18 org.apache.catalina.core.StandardServer await严重: StandardServer.await: crea...

Unable to open debugger port (127.0.0.1:63777): java.net.BindException "Address already in use: JVM

对Intellij IDEA是又爱又恨呀,爱的比myeclipse用起来爽手多了,恨的是刚开始用还不是很习惯。 偶尔启动Debug模式用Tomcat来调试会报以下错误: Unable to ope...

java.net.BindException: Address already in use:80 linux

Jul 9, 2012 5:06:14 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apach...

Delphi7高级应用开发随书源码

  • 2003年04月30日 00:00
  • 676KB
  • 下载

报错:java.net.bindexception: address already in use: jvm_bind:8080

原因:8080端口被占用 (我遇到的是8005的Tomcat被占用啊) 严重: StandardServer.await: create[localhost:8005]: java.net.Bin...

java.net.BindException: bind failed: EADDRINUSE (Address already in use)

做一个Android上的UDP通信程序,直接用代码: mDataSocket = new DatagramSocket(mPort); 第一次连接没有报错,第二次开始报这个错误。字面意思看出是...

【解决】java.net.BindException: Address already in use: JVM_Bind

错误 严重: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:sonarqube:java.net.BindException: Address already in use
举报原因:
原因补充:

(最多只允许输入30个字)