麦粉社区
>
帖子详情

配置License时,报错“服务器连接失败”怎么办

安装指导 发表于 2024-5-15 18:06
发表于 2024-5-15 18:06:54

在License配置时,看文档去配置的,状态服务那一栏不知道填啥(文档上没有描述),测试连接的时候,显示“服务器连接失败”


报错详情如下图:



报错栈信息:


BuildTime: 2024-04-30 18:24:05

TAG: Hotfix_SmartbiV11_20240429 

Tid: b59413cb405ee169

HostName: DESKTOP-FU26KAD

 

 

连接失败:获取数据库连接失败:Could not create connection to database server. Attempted reconnect 3 times. Giving up.

at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2380)

at ...(...)

at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:83)

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:83)

at smartbi.connectionpool.ConnectionPool.lambda$doGetConnection$0(ConnectionPool.java:851)

at smartbi.monitor.MetricHelper$.withSpan(MetricHelper.scala:87)

at smartbi.monitor.MetricHelper.withSpan(MetricHelper.scala)

at smartbi.connectionpool.ConnectionPool.doGetConnection(ConnectionPool.java:814)

at smartbi.connectionpool.ConnectionPool.driverConnect(ConnectionPool.java:632)

at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:960)

at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:913)

at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:87)

at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:84)

at smartbi.connectionpool.RepositoryConnection.invoke(RepositoryConnection.java:61)

at com.sun.proxy.$Proxy130.getMetaData(Unknown Source)

at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2378)

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(ClientService.java:180)

at smartbi.framework.rmi.ClientService.execute(ClientService.java:158)

at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:235)

at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:146)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:515)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:583)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:212)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:249)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.aichat.AIChatFilter.doFilter(AIChatFilter.java:56)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:77)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:276)

at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:127)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.rmi.TransactionFilter.doFilter(TransactionFilter.java:87)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:249)

at smartbi.freequery.filter.Filter.doFilter(Filter.java:33)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.ExceptionResponseFilter.doFilter(ExceptionResponseFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:188)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckRefererFilter.doFilter(CheckRefererFilter.java:45)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckHttpMethodFilter.doFilter(CheckHttpMethodFilter.java:62)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:62)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.RedisSessionFilter.doFilter(RedisSessionFilter.java:146)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.LogFilter.doFilter(LogFilter.java:110)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:81)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.SmartbiApplicationFilter.doFilter(SmartbiApplicationFilter.java:54)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:682)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:617)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:932)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1695)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)

at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)

at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)

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$7.createConnectionInner(ConnectionPool.java:1561)

at ...(...)

at smartbi.connectionpool.ConnectionPool$7.createConnectionInner(ConnectionPool.java:1555)

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

at sun.reflect.GeneratedConstructorAccessor110.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.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.(ConnectionImpl.java:768)

at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)

at sun.reflect.GeneratedConstructorAccessor107.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.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$7.createConnectionInner(ConnectionPool.java:1555)

at smartbi.connectionpool.ConnectionPool$7.createConnection(ConnectionPool.java:1603)

at smartbi.connectionpool.SmartbiPoolableConnectionFactory.makeObjectInternal(SmartbiPoolableConnectionFactory.java:206)

at smartbi.connectionpool.SmartbiPoolableConnection.doGetConnection(SmartbiPoolableConnection.java:73)

at smartbi.connectionpool.ConnectionPool.lambda$doGetConnection$0(ConnectionPool.java:851)

at smartbi.monitor.MetricHelper$.withSpan(MetricHelper.scala:87)

at smartbi.monitor.MetricHelper.withSpan(MetricHelper.scala)

at smartbi.connectionpool.ConnectionPool.doGetConnection(ConnectionPool.java:814)

at smartbi.connectionpool.ConnectionPool.driverConnect(ConnectionPool.java:632)

at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:960)

at smartbi.connectionpool.ConnectionPool.getConnection(ConnectionPool.java:913)

at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:87)

at smartbi.connectionpool.RepositoryConnectionProvider$2.call(RepositoryConnectionProvider.java:84)

at smartbi.connectionpool.RepositoryConnection.invoke(RepositoryConnection.java:61)

at com.sun.proxy.$Proxy130.getMetaData(Unknown Source)

at smartbi.config.BIConfigService.testConnection(BIConfigService.java:2378)

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(ClientService.java:180)

at smartbi.framework.rmi.ClientService.execute(ClientService.java:158)

at smartbi.framework.rmi.RMIServlet.processExecute(RMIServlet.java:235)

at smartbi.framework.rmi.RMIServlet.doPost(RMIServlet.java:146)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:515)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:583)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:212)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.extension.ExtensionFilter$1.doFilter(ExtensionFilter.java:249)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.aichat.AIChatFilter.doFilter(AIChatFilter.java:56)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.security.patch.PatchFilter.doFilter(PatchFilter.java:77)

at smartbi.extension.ExtensionFilter$2.doFilter(ExtensionFilter.java:273)

at smartbi.extension.ExtensionFilter.doFilterInternal(ExtensionFilter.java:276)

at smartbi.extension.ExtensionFilter.doFilter(ExtensionFilter.java:127)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.rmi.TransactionFilter.doFilter(TransactionFilter.java:87)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.GZIPFilter.doFilter(GZIPFilter.java:249)

at smartbi.freequery.filter.Filter.doFilter(Filter.java:33)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.ExceptionResponseFilter.doFilter(ExceptionResponseFilter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckIsLoggedFilter.doFilter(CheckIsLoggedFilter.java:188)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckRefererFilter.doFilter(CheckRefererFilter.java:45)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.CheckHttpMethodFilter.doFilter(CheckHttpMethodFilter.java:62)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.TraceFilter.doFilter(TraceFilter.java:62)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.RedisSessionFilter.doFilter(RedisSessionFilter.java:146)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.LogFilter.doFilter(LogFilter.java:110)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.freequery.filter.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:81)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at smartbi.framework.SmartbiApplicationFilter.doFilter(SmartbiApplicationFilter.java:54)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:682)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:617)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:932)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1695)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)

at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)

at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)

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.GeneratedConstructorAccessor104.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.(MysqlIO.java:335)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2187)

at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2036)

... 102 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.(MysqlIO.java:299)

... 104 more

 

发表于 2024-5-16 09:10:02
这是连接知识库失败,config界面知识库配置的地方你填写的是什么?截图来看看
回复

使用道具 举报

发表于 2024-5-16 15:02:02

服务器地址: localhost:3306


 


数据库名: 自己的数据库


用户名:自己的数据库用户名


密码自己的数据库密码


 


 


 


 


不要用它默认的,  我也遇到类似的问题,最后全部改成自己的就可以了

回复

使用道具 举报

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

本版积分规则

2回帖数 0关注人数 844浏览人数
最后回复于:2024-5-16 15:02
快速回复 返回顶部 返回列表