2017-02-14 105 views
-1

我按照这些步骤http://www.voyalab.com/2016/10/06/install-sonarqube-ubuntu/and在Ubuntu 16.04SonarQube没有启动的Ubuntu 16.04

安装sonarqube但我不能够启动我的机器上。

enter image description here

日志文件: -

2017.02.15 07:33:40 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file 
2017.02.15 07:33:40 ERROR web[o.a.c.c.StandardContext] Context [/sonar] startup failed due to previous errors 
2017.02.15 07:33:40 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ sonar] appears to have started a thread named [Timer-0] but has failed to stop it. This is very  likely to create a memory leak. Stack trace of thread: 
java.lang.Object.wait(Native Method) 
java.util.TimerThread.mainLoop(Timer.java:552) 
java.util.TimerThread.run(Timer.java:505) 
2017.02.15 07:33:40 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler  ["http-nio-127.0.0.1-6000"] 
2017.02.15 07:33:40 INFO web[o.s.s.a.TomcatAccessLog] Web server is started 
2017.02.15 07:33:40 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 6000 
2017.02.15 07:33:40 WARN web[o.s.p.ProcessEntryPoint] Fail to start web 
java.lang.IllegalStateException: Webapp did not start 
at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server- 6.0.jar:na] 
at org.sonar.server.app.WebServer.isUp(WebServer.java:47) [sonar-server-6.0.jar:na] 
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process- 6.0.jar:na] 
at org.sonar.server.app.WebServer.main(WebServer.java:68) [sonar-server-6.0.jar:na] 
2017.02.15 07:33:40 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-127.0.0.1-6000"] 
2017.02.15 07:33:41 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-127.0.0.1-6000"] 
2017.02.15 07:33:42 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler  ["http-nio-127.0.0.1-6000"] 
2017.02.15 07:33:42 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped 
2017.02.15 07:33:42 INFO app[o.s.p.m.Monitor] Process[es] is stopping 
2017.02.15 07:33:42 INFO es[o.s.p.StopWatcher] Stopping process 
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] stopping ... 
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] stopped 
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] closing ... 
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] closed 
2017.02.15 07:33:43 INFO app[o.s.p.m.Monitor] Process[es] is stopped 
<-- Wrapper Stopped 

我想这是我们的主要问题: -

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.". 
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:242) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2280) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:493) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1387) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1068) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:904) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:451) ~[sqljdbc42.jar:na] 
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1014) ~[sqljdbc42.jar:na] 
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) ~[commons-dbcp-1.4.jar:1.4] 
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) ~[commons-dbcp-1.4.jar:1.4] 
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556) ~[commons-dbcp-1.4.jar:1.4] 
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545) ~[commons-dbcp-1.4.jar:1.4] 
... 35 common frames omitted 
+1

你应该在你的Ca日志文件夹 –

+0

@ JulienL.-SonarSourceTeam它是空的发现日志看看。 –

+0

这是不可能没有日志,你应该再次检查,或在其他文件夹中搜索 –

回答

1

日志会报告:

连接被拒绝(连接被拒绝)。验证连接 属性。确保SQL Server实例正在 主机上运行,​​并在端口上接受TCP/IP连接。确保连接到端口的TCP 未被防火墙阻止。

请验证您的数据库配置