【发布时间】:2023-04-02 03:57:01
【问题描述】:
我有一个运行 openldap、mysql、wso2is 和 wso2am 的 docker 环境。我正在尝试使用 API Manager Publisher 发布 API,但遇到以下错误:
码头日志:
[2021-03-18 21:40:32,764] INFO - CarbonAuthenticationUtil 'admin@wso2.com@carbon.super [-1234]' logged in at [2021-03-18 21:40:32,764+0000]
[2021-03-18 21:40:32,899] ERROR - APIGatewayManager Error occurred when publish to gateway Production and Sandbox
org.apache.axis2.AxisFault: Error while Deploying API
at org.wso2.carbon.apimgt.impl.utils.APIGatewayAdminClient.deployAPI_aroundBody14(APIGatewayAdminClient.java:215) ~[org.wso2.carbon.apimgt.impl_6.7.206.jar:?]
原因:
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: org.apache.axis2.AxisFault: Error while obtaining API information from gateway. null
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) ~[axis2_1.6.1.wso2v41.jar:?]
更多信息:
[2021-03-18 21:40:33,178] INFO - DataBridge user admin@wso2.com connected
[2021-03-18 21:40:33,187] ERROR - DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://172.29.0.5:9712.
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://172.29.0.5:9712.
[2021-03-18 21:40:33,234] INFO - CarbonAuthenticationUtil 'admin@wso2.com@carbon.super [-1234]' logged in at [2021-03-18 21:40:33,233+0000]
[2021-03-18 21:40:33,264] ERROR - APIGatewayManager Error occurred when check api is published on gatewayProduction and Sandbox
ssl 的端口 9712 在哪里定义?因为我在 docker 上没有此端口:
wso2am:3.2.0-alpine "/home/wso2carbon/wa..." 7 天前 上升 12 分钟(健康) 0.0.0.0:8243->8243/tcp, 5672/tcp, 9099/tcp, 0.0.0.0:8280- >8280/tcp, 9443/tcp, 9611/tcp, 9711/tcp, 9763/tcp, 9999/tcp, 11111/tcp, 0.0.0.0:9444->9444/tcp
我正在使用 WSO2 IS 作为密钥管理器,并且集成正在运行。现在我的问题只是当我尝试发布 API 时。
wso2is:5.10.0-alpine
wso2am:3.2.0-高山
PS:我已从 docker-compose 禁用网络,以免出现主机问题。
【问题讨论】: