WSO2 3.2.0 - 发布一个 API - 错误 - APIGatewayManager 错误

WSO2 3.2.0 - Publish an API - ERROR - APIGatewayManager Error

我有一个 docker 环境 运行 openldap、mysql、wso2is 和 wso2am。我正在尝试使用 API Manager Publisher 发布 API,但遇到以下错误:

docker 日志:

[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-高山
wso2am:3.2.0-高山

PS:我已从 docker 禁用网络-compose 没有主机问题。

第 01 期:

Caused by: org.apache.axis2.AxisFault: Error while obtaining API information from gateway. null 

出现上述错误很可能是由于发布者和网关之间的连接问题server/s。 要解决此问题,您可能需要验证发布者节点中的网关配置。为此,打开 <PUBLISHER_HOME>/repository/conf/deployment.toml 文件并 检查以下配置是否正确

[[apim.gateway.environment]]
service_url = "https://<hostname_of_the_GW>:9443/services/"

第 02 期:

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.

出现以上错误说明9712端口无法访问。此 9712 是二进制 SSL 传输的 BinaryDataReceiver 启动的默认端口,它将用于验证发布到流量管理器的数据。因此,您需要使此端口可用。