Event Gateway pods fail after upgrading with MissingElementException error

Symptoms

When integrated with IBM API Connect, Event Gateway pods fail after upgrading Event Endpoint Management to 11.1.0. The Event Manager logs display the following MissingElementException error:

ERROR com.ibm.ei.data.core.AdminManager - [lambda$getOrganization$101:574]
com.ibm.ei.core.utils.MissingElementException: MissingElementException{path='contact'}

Causes

The Subscription data that is created by using API Connect is not migrated as expected when upgrading your Event Manager instance.

Resolving the problem

To resolve the problem, complete the following steps:

  1. Log in to your Kubernetes cluster as a cluster administrator by setting your kubectl context.
  2. Ensure you are in the namespace where your Event Manager instance is installed:

    kubectl config set-context --current --namespace=<namespace>
    
  3. Run the following command to display the Event Manager instances:

    kubectl get eventendpointmanagement
    
  4. Remove the opt/storage/APIC directory:

    rm -rf opt/storage/APIC
    
  5. Run the following command to delete your Event Manager pod:

    kubectl delete pod <pod-name> -n <namespace>
    

The MissingElementException error is resolved when the pod restarts.