麦粉社区
>
帖子详情

[]求助,安装后知识库连接失败!

安装指导 发表于 2021-11-18 10:28
发表于 2021-11-18 10:28:41
很奇怪的问题,安装V10后,第一次启动无需进入config页面,修改密码就直接进入smart了。
但是第二次启动后,则会进入config配置页面,填写、上传资料后,弹出“连接失败: 获取数据库连接失败:Could not create connection to database server. Attempted reconnect 3 times. Giving up.”。、
卸载V10,再次安装,重复上述情况。

发表于 2021-11-18 10:29:25
附上报错时的栈信息


version:        2021-11-05 15:12:40
packageinfo:        Branch_SmartbiV10_1_20210923


连接失败:获取数据库连接失败:Could not create connection to database server. Attempted reconnect 3 times. Giving up.
        at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2156)
        at ...(...)
        at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:82)
Caused by: java.sql.SQLException: 获取数据库连接失败:Could not create connection to database server. Attempted reconnect 3 times. Giving up.
        at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:82)
        at smartbi.connectionpool.ConnectionPool.doGetConnection(ConnectionPool.java:721)
        at smartbi.connectionpool.ConnectionPool.driverConnect(ConnectionPool.java:516)
        at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:818)
        at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:782)
        at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:81)
        at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:78)
        at smartbi.connectionpool.RepositoryConnection.invoke(RepositoryConnection.java:61)
        at com.sun.proxy.$Proxy99.getMetaData(Unknown Source)
        at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2154)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at smartbi.framework.rmi.ClientService.executeInternal(Smartbi:138)
        at smartbi.framework.rmi.ClientService.execute(Smartbi:120)
        at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:202)
        at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:271)
        at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:253)
        at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:77)
        at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:253)
        at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:284)
        at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:112)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.framework.rmi.TransactionFilter.doFilter(Smartbi:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:236)
        at smartbi.freequery.filter.Filter.doFilter(Filter.java:33)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.ExceptionResponseFilter.doFilter(ExceptionResponseFilter.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:219)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckRefererFilter.doFilter(CheckRefererFilter.java:45)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckHttpMethodFilter.doFilter(CheckHttpMethodFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:56)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.framework.RedisSessionFilter.doFilter(Smartbi:137)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
Caused by: 获取数据库连接失败:Could not create connection to database server. Attempted reconnect 3 times. Giving up.
        at smartbi.connectionpool.ConnectionPool$5.createConnectionInner(ConnectionPool.java:1276)
        at ...(...)
        at smartbi.connectionpool.ConnectionPool$5.createConnectionInner(ConnectionPool.java:1270)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
        at com.mysql.jdbc.Util.getInstance(Util.java:408)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
        at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2095)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2020)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
        at smartbi.connectionpool.ConnectionPool$5.createConnectionInner(ConnectionPool.java:1270)
        at smartbi.connectionpool.ConnectionPool$5.createConnection(ConnectionPool.java:1312)
        at smartbi.connectionpool.SmartbiPoolableConnectionFactory.makeObjectInternal(SmartbiPoolableConnectionFactory.java:145)
        at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:72)
        at smartbi.connectionpool.ConnectionPool.doGetConnection(ConnectionPool.java:721)
        at smartbi.connectionpool.ConnectionPool.driverConnect(ConnectionPool.java:516)
        at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:818)
        at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:782)
        at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:81)
        at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:78)
        at smartbi.connectionpool.RepositoryConnection.invoke(RepositoryConnection.java:61)
        at com.sun.proxy.$Proxy99.getMetaData(Unknown Source)
        at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2154)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at smartbi.framework.rmi.ClientService.executeInternal(Smartbi:138)
        at smartbi.framework.rmi.ClientService.execute(Smartbi:120)
        at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:202)
        at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:271)
        at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:253)
        at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:77)
        at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:253)
        at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:284)
        at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:112)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.framework.rmi.TransactionFilter.doFilter(Smartbi:71)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:236)
        at smartbi.freequery.filter.Filter.doFilter(Filter.java:33)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.ExceptionResponseFilter.doFilter(ExceptionResponseFilter.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:219)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckRefererFilter.doFilter(CheckRefererFilter.java:45)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.CheckHttpMethodFilter.doFilter(CheckHttpMethodFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:56)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at smartbi.framework.RedisSessionFilter.doFilter(Smartbi:137)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
        at sun.reflect.GeneratedConstructorAccessor70.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:335)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2187)
        at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2036)
        ... 89 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:299)
        ... 91 more
回复

使用道具 举报

发表于 2022-2-25 20:09:27
同一个问题,请问有人知道怎么解决吗
回复

使用道具 举报

发表于 2022-4-24 08:47:15
报错信息来看是smartbi连接知识库失败。可以查看windows的后台服务,看看smartbi_mysql服务有没有正常启动。
一般出现这个问题,应该是权限问题,可以右键管理员权限运行启动smartbi。
  •   孙雁宇
    您好,请问怎么重新启动smartbi_mysql呢,我之前一不小心在任务管理器里面把这个关闭了
    2022-4-28 16:11| 回复

回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

4回帖数 0关注人数 4856浏览人数
最后回复于:2022-4-24 08:47
快速回复 返回顶部 返回列表