Cloudctl login fails

After IBM Cloud Pak foundational services installation, you cannot log in to your cluster by using cloudctl.

Symptoms

You might see the following error when you run the cloudctl login command.

Authenticating...
Error response from server. Status code: 403; message: Error 403 : Access Forbidden

FAILED
Set 'CLOUDCTL_TRACE=true' for details

You see panic messages in the auth-pdp container log.

Causes

MongoDB is not stable. The MongoDB pod restarts multiple times, and data replication error is seen in the MongoDB log. The auth-pdp pod then does not recover from previous connection error.

Resolving the problem

  1. Log in to your boot node by running the oc login command.

  2. Verify the status of the MongoDB pods.

     oc get pods -n ibm-common-services | grep mongo
    

    If the MongoDB pods are running, proceed with the next step.

  3. Restart the auth-pdp pods by deleting them.

     oc delete pod -l app=auth-pdp -n ibm-common-services