在调用已发布的api时,更改wso2 api管理器上的管理员密码会导致错误
我使用MYSQL对WSO2 APIM进行了简单的设置,并使用管理员用户发布了API 更改API manager的默认管理员密码后,我可以在Publisher/Store上使用新密码登录,但不能使用已发布的API 在更改密码时遵循了。重新启动WSO2 APIM 调用发布的API时,我看到以下响应:在调用已发布的api时,更改wso2 api管理器上的管理员密码会导致错误,wso2,wso2-appm,Wso2,Wso2 Appm,我使用MYSQL对WSO2 APIM进行了简单的设置,并使用管理员用户发布了API 更改API manager的默认管理员密码后,我可以在Publisher/Store上使用新密码登录,但不能使用已发布的API 在更改密码时遵循了。重新启动WSO2 APIM 调用发布的API时,我看到以下响应: {"fault":{"code":900900,"message":"Unclassified Authentication Failure","description":"Error while ac
{"fault":{"code":900900,"message":"Unclassified Authentication Failure","description":"Error while accessing backend services for API key validation"}}
以下是wso2-apigw-errors.log中观察到的错误的堆栈跟踪:
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://10.93.16.127:9711.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:134)
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 :/10.93.16.127: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:128)
... 6 more
Caused by: org.wso2.carbon.databridge.commons.exception.AuthenticationException: wrong userName or password
at sun.reflect.GeneratedConstructorAccessor194.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryEventSender.processResponse(BinaryEventSender.java:163)
at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint.login(BinaryDataEndpoint.java:44)
... 7 more
只要我将密码更改回默认的“admin”,此错误就会消失。请检查此处的密码是否正确
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<TrafficManager>
<Type>Binary</Type>
<ReceiverUrlGroup>tcp://${carbon.local.ip}:${receiver.url.port}</ReceiverUrlGroup>
<AuthUrlGroup>ssl://${carbon.local.ip}:${auth.url.port}</AuthUrlGroup>
<Username>admin</Username>
<Password>admin</Password>
</TrafficManager>
真的
二元的
tcp://${carbon.local.ip}:${receiver.url.port}
ssl://${carbon.local.ip}:${auth.url.port}
管理
管理
请检查此处的密码是否正确
<ThrottlingConfigurations>
<EnableAdvanceThrottling>true</EnableAdvanceThrottling>
<TrafficManager>
<Type>Binary</Type>
<ReceiverUrlGroup>tcp://${carbon.local.ip}:${receiver.url.port}</ReceiverUrlGroup>
<AuthUrlGroup>ssl://${carbon.local.ip}:${auth.url.port}</AuthUrlGroup>
<Username>admin</Username>
<Password>admin</Password>
</TrafficManager>
真的
二元的
tcp://${carbon.local.ip}:${receiver.url.port}
ssl://${carbon.local.ip}:${auth.url.port}
管理
管理
您是否在api-manager.xml中更新了凭据,此文件可在/repository/conf中找到您是否在api-manager.xml中更新了凭据,此文件可在/repository/confIts中找到,并设置为${admin.password}
。另外,密码是通过Carbon UI更新的,持久性是MYSQL,密码更改是否会自动从MYSQL中获取?您是否在traffic manager中配置了user-mgt.xml?如果没有,请尝试在此处对admin/admin进行编码。如果没有更新user-mgt.xml,它仍然包含默认值。此外,根据文件:“请注意,当服务器首次启动时,user-mgt.xml文件中的密码将写入主用户存储。此后,将从主用户存储验证密码,而不是从user-mgt.xml文件验证密码。因此,如果需要更改存储在用户存储中的管理员密码,则不能简单地更改user-mgt.xml文件中的值。若要更改超级管理员密码,必须使用管理控制台中的“更改密码”选项。“。抱歉,不清楚。我问的是您是否在traffic manager中配置了userstore?如果没有,请按照我上面所说的做。其设置为${admin.password}
。此外,密码是通过Carbon UI更新的,持久性为MYSQL,密码更改是否会自动从MYSQL中获取?您是否在traffic manager中配置了user-mgt.xml?如果没有,请尝试在此处对admin/admin进行硬编码。尚未更新user-mgt.xml,它仍然包含默认值。另外,根据文档:请注意,当服务器第一次启动时,user-mgt.xml文件中的密码将写入主用户存储。此后,将从主用户存储验证密码,而不是从user-mgt.xml文件验证密码。因此,如果需要更改存储在用户存储中的管理员密码,则不能简单地更改user-mgt.xml文件中的值。若要更改超级管理员密码,必须使用管理控制台中的“更改密码”选项。“。抱歉,不清楚。我问的是您是否在traffic manager中配置了userstore?如果没有,请按照上面所说的做。