无法在WSO2 APIM发布者和商店中查看已创建的API,但能够在订阅下查看它们

时间:2017-03-15 15:03:27

标签: solr wso2 wso2-am

我之前创建了几个API并通过WSO2 API管理器(APIM)中的API Publisher发布了相同的API,我也能够在Publisher Dashboard和Store Dashboard中查看它们。我订阅了它们并且能够使用API

最近,在API管理器中,我无法在Publisher Dashboard或Store Dashboard中看到任何创建的API。

我没有对API Manager的配置进行任何更改。

我尝试使用WSO2 APIM公开的REST API发布API,但我收到了以下错误消息。

发布商回复:

{
   "error" : true, 
   "message" : "Failed to change the life cycle status : An exception occurred   while executing handler chain. SolrCore 'registry-indexing' is not available due to init failure: Error opening new searcher"

}

我已经检查了Thrift端口(两者都在10397上,我已经尝试过禁用它们,就像堆栈溢出上的其他帖子一样)。

我已经检查了API网关凭证,因为它们是默认的,即

<APIGateway>
        <!-- The environments to which an API will be published -->
        <Environments>
            <!-- Environments can be of different types. Allowed values are 'hybrid', 'production' and 'sandbox'.
                 An API deployed on a 'production' type gateway will only support production keys
                 An API deployed on a 'sandbox' type gateway will only support sandbox keys
                 An API deployed on a 'hybrid' type gateway will support both production and sandbox keys. -->
            <!-- api-console element specifies whether the environment should be listed in API Console or not -->
            <Environment type="hybrid" api-console="true">
                <Name>Production and Sandbox</Name>
                <Description>This is a hybrid gateway that handles both production and sandbox token traffic.</Description>
                <!-- Server URL of the API gateway -->
                <ServerURL>https://localhost:${mgt.transport.https.port}${carbon.context}services/</ServerURL>
                <!-- Admin username for the API gateway. -->
                <Username>${admin.username}</Username>
                <!-- Admin password for the API gateway.-->
                <Password>${admin.password}</Password>
                <!-- Endpoint URLs for the APIs hosted in this API gateway.-->
                <GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint>
            </Environment>
        </Environments>
    </APIGateway>

我也无法创建新的API,因为似乎注册表存在一些问题。

P.S:它还给出了MQTT被禁用的消息

有人可以帮忙吗?

请检查屏幕截图以获得更清晰

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

看起来像索引问题。我们应该尝试here中提到的内容。这将重新索引API。