WSO2AM成功启动后出现奇怪错误。

huangapple go评论76阅读模式
英文:

WSO2AM strange errors after successful startup

问题

我已经安装了全新版本的WSO2AM 3.2.0,只需将下载的ZIP文件提取到/opt/wso2am/wso2am-3.2.0/。我还设置了两个数据库(db_am和db_shared),并在文件deployment.toml中按照文档中的描述使用它们。然后,我通过执行wso2server.sh脚本来启动应用程序。它启动得很好,出现了以下行,告诉我应用程序已成功启动。

TID: [-1234] [] [2020-10-26 15:59:14,710]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server           :  WSO2 API Manager-3.2.0                                
TID: [-1234] [] [2020-10-26 15:59:14,717]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 53 sec                                              
TID: [-1] [] [2020-10-26 15:59:14,776]  INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin connected

但就在那之后,它给了我以下错误:

TID: [-1234] [] [2020-10-26 15:59:15,600] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="  
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,903] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,932] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,933] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1] [] [2020-10-26 15:59:15,651] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://<the servers local ip>:9711. org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://<the servers local ip>:9711.                                             
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:145)                                                             
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.run(DataEndpointConnectionWorker.java:59)                                                                  
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to data receiver :/<the servers local ip>:9711                                            
        at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint.login(BinaryDataEndpoint.java:50)                                                                              
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:139)                                                              
        ... 6 more
Caused by: org.wso2.carbon.databridge.commons.exception.AuthenticationException: org.wso2.carbon.identity.base.IdentityRuntimeException: com.mysql.cj.jdbc.exceptions.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.

然后这些行不断重复。我真的不理解这些错误从哪里来。

  • 前几个错误中的字符串看起来像是密码或令牌,但我没有在配置中设置这个字符串。
  • 其他错误告诉我关于借用某个客户端的信息,但对我来说没有意义。

这些错误是从哪里来的,我该如何修复它们,甚至找出是什么原因引起了这些错误?

英文:

I have installed a fresh version of WSO2AM 3.2.0 by just extracting the downloaded ZIP file to /opt/wso2am/wso2am-3.2.0/. I have also set up two databases (db_am and db_shared) and I am using those in the file deployment.toml as described in the documentation. Then I'm starting the application by just executing the wso2server.sh script. It starts up just fine and the following lines appear, telling me that the application has started successfully.

TID: [-1234] [] [2020-10-26 15:59:14,710]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server           :  WSO2 API Manager-3.2.0                                
TID: [-1234] [] [2020-10-26 15:59:14,717]  INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 53 sec                                             
TID: [-1] [] [2020-10-26 15:59:14,776]  INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin connected

But right after that it gives me the following errors:

TID: [-1234] [] [2020-10-26 15:59:15,600] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="  
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,903] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,903] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,932] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,933] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,933] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1] [] [2020-10-26 15:59:15,651] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://<the servers local ip>:9711. org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://<the servers local ip>:9711.                                            
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:145)                                                             
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.run(DataEndpointConnectionWorker.java:59)                                                                  
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to data receiver :/<the servers local ip>:9711                                            
        at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint.login(BinaryDataEndpoint.java:50)                                                                             
        at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:139)                                                             
        ... 6 more
Caused by: org.wso2.carbon.databridge.commons.exception.AuthenticationException: org.wso2.carbon.identity.base.IdentityRuntimeException: com.mysql.cj.jdbc.exceptions.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.

Those lines then repeat indefinitely. I really don't understand where those errors are coming from.

  • The string from the first few errors looks like a password or a token but I have not set this string anywhere in the config.
  • The other errors, telling me about borrowing some client don't make any more sense to me

Where do these errors come from and how could I fix them or even find out what is causing them?

答案1

得分: 3

关于数据库问题,请检查您的数据库服务器是否已启动并运行,并且在 deployment.toml 中正确配置了数据库配置(用户名、密码、URL、端口),并且已按照文档中的说明对您的数据库运行了正确的 MySQL 脚本。(还请不要忘记包含 JDBC 驱动程序)

示例:deployment.toml 配置

[database.shared_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/shared_db?useSSL=false"
username = "root"
password = "admin"
英文:

For the database issue Check whether your database server is up and running and your database configs are correctly configured in deployment.toml(username, password, URL, port) and you have run the correct MySQL scripts to your databases as in the docs. (Also don't forget to include the JDBC driver)

ex: deployment.toml configs

[database.shared_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/shared_db?useSSL=false"
username = "root"
password = "admin"

答案2

得分: 1

检查是否在不同的网络接口上打开了端口9711,而不是您的 <服务器本地IP>。您可以通过执行以下命令来验证。

   sudo lsof -i -P -n

如果它已经对另一个网络接口打开,请关闭该端口,然后再次启动APIM服务器。

否则,您可以更改APIM配置以配置新的端口。

[[apim.throttling.url_group]]
traffic_manager_urls = ["tcp://<服务器IP>:<端口>", "tcp://<服务器IP>:<端口>"]
traffic_manager_auth_urls = ["ssl://<服务器IP>:<端口>", "ssl://<服务器IP>:<端口>"]
type = "failover"

以下是示例配置。

[[apim.throttling.url_group]]
traffic_manager_urls = ["tcp://localhost:9611", "tcp://localhost:9611"]
traffic_manager_auth_urls = ["ssl://localhost:9711", "ssl://localhost:9711"]
type = "failover"
英文:

Check whether port 9711 is opened on a different network interface instead of your <the servers local ip>. You can verify this by executing the following command.

   sudo lsof -i -P -n

If it is open to another network interface then close that port and
then start the APIM server again.

Or else you can change the APIM configs to configure a new port.

[[apim.throttling.url_group]]
traffic_manager_urls = [&quot;tcp://&lt;server_ip&gt;:&lt;port&gt;&quot;,&quot;tcp://&lt;server_ip&gt;:&lt;port&gt;&quot;]
traffic_manager_auth_urls = [&quot;ssl://&lt;server_ip&gt;:&lt;port&gt;&quot;,&quot;ssl://&lt;server_ip&gt;:&lt;port&gt;&quot;]
type = &quot;failover&quot;

An example configuration is given below.

[[apim.throttling.url_group]]
traffic_manager_urls = [&quot;tcp://localhost:9611&quot;,&quot;tcp://localhost:9611&quot;]
traffic_manager_auth_urls = [&quot;ssl://localhost:9711&quot;,&quot;ssl://localhost:9711&quot;]
type = &quot;failover&quot;

huangapple
  • 本文由 发表于 2020年10月26日 23:24:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/64540036.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定