WSO2 APIM v3.2 - API not visible in publisher



I recently encountered a strange issue with API visibility in the publisher portal. Here is what happened and how I overcome to this issue-

Environment

  1. WSO2 APIM- v3.2.x
  2. Openshift: 4.x
  3. MSSQL Database 19.x
  4. Using PV/PVC for synapse-config and executionplans

Problem Statement: There was OpenShift upgrade happened and we have restart the server i.e. re-creation of the pods. This has caused an issue in API listing inside publisher portal. We have verified the API in the database system but the same was not visible in the publisher portal. When we tried to re-create the same via publisher portal; it didn't worked and we got an error that the API exists with the same context.

Root Cause:  These issues occurs due to indexing issues and not limited to underlying infra upgrade. This may happen due to multiple reasons that causes indexing failure

Solution: Re-building the index solves this issue in following ways-

Option 1: Open the management console/ carbon portal and click on the resources > browse section > Rename lastaccesstime and restart the server (Open the indexing link and then use 


Option 2: Open the management console/ carbon portal and click on the Meatdata > List > APIs. Now click on the respective API and make some minor changes (e.g. name) and save it.
I have tried and tested both options and it has performed the re  indexing and the API was then visible in the publisher portal. 

Option 3:  Delete the following folders solr/indexed-data/index solr/indexed-data/tlog and restart the server


Comments

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c