gpt4 book ai didi

wso2-api-manager - 在 WSO2 AM-Analytics 中更改密码

转载 作者:行者123 更新时间:2023-12-01 14:44:26 26 4
gpt4 key购买 nike

我已经在服务器上安装了 WSO2 Api Manager,我正在尝试添加 Analytics。问题是当我在 WSO2 Api Manager 中更改管理员密码时,我的 Analytics 实例保留了他的旧密码。因此,Api Manager 无法再访问 Analytics。

如何更改 API-M Analytics 的密码,并创建其他用户?

谢谢!

编辑:APIM 版本 2.6.0 和 APIM-Analytics 2.6.0

编辑deployment.yaml后

我在 deployment.yaml 中添加了 auth 段,并在 api-manager.xml 中更改了密码(Analytics 段、StreamprocessorPassword 属性和 StreamProcessorRestApiPassword 属性)以与我在 deployment.yaml 中的密码相匹配。

我还更改了 log4j.properties(DAS_AGENT 和 LOGEVENT)中的密码。API 管理器一直说我的用户名或密码错误(用户名没有更改)

API 管理器日志

TID: [-1] [] [2018-11-27 15:51:41,481] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://10.16.243.135:9711. {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://10.16.243.135: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.16.243.135: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.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 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

API 管理器分析 worker 日志

ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} - Dropping wrongly formatted event sent org.wso2.carbon.databridge.core.exception.EventConversionException: Error when converting loganalyzer:1.0.0 of event bundle with events 1 at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:188) at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:90) at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72) 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.core.exception.EventConversionException: No StreamDefinition for streamId loganalyzer:1.0.0 present in cache at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:171) ... 7 more

最佳答案

在 APIM 2.6.0 Analytics 中,它在内部使用 WSO2 流处理器。它默认使用基于文件的 IDP。所以你可以在<SP_HOME>/conf/<PROFILE>/deployment.yaml中更新管理员密码文件。

auth.configs: 
type: 'local'
userManager:
adminRole: admin
userStore:
users:
-
user:
username: admin
password: YWRtaW4=
roles: 1
roles:
-
role:
id: 1
displayName: admin

引用:https://docs.wso2.com/display/SP430/User+Management+via+the+IdP+Client+Interface#UserManagementviatheIdPClientInterface-LocalIdPClient

关于wso2-api-manager - 在 WSO2 AM-Analytics 中更改密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53499144/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com