Common deployment errors
This topic lists some common errors that you might encounter when you are deploying the Cloud App Management product. The error messages that are displayed, the reasons for these errors occurring, and the solutions for them are included in the following information.
Problem - Certificate error
could not read x509 key pair (cert: "/root/.helm/cert.pem", key: "/root/.helm/key.pem"):
can't load key pair from cert /root/.helm/cert.pem
and key /root/.helm/key.pem: open /root/.helm/cert.pem: no such file or directorySymptoms
This error occurs when you try to run any Helm command to connect the Helm server. The certificate key files are not installed correctly.
Solution
/root/.helm default location. You can
manually copy over these keyfiles to the ~/.helm/ default directory by issuing the
following command: cp ~/.kube/mycluster/*.pem ~/.helm/
Problem - Helm cannot connect error
Error: cannot connect to TillerError: transport is closingSymptoms
This error occurs when you try to run a helm command and you did not add the
--tls parameter with this command.
Solution
--tls to the helm command that you are running. For
example: helm install --tlsProblem - kubectl or Helm errors because authorization has expired
kubectl get pods
Error: the server doesn't have a resource type "pods"Symptoms
These type of errors occur when you are not actively working in your IBM® Cloud Private cluster from the IBM Cloud Private CLI for a long time such as a few hours. Your authorization has expired.
Solution
You must log in to the IBM Cloud Private cluster again by issuing the following command:
cloudctl login -a https://mycluster.icp:8443 --skip-ssl-validation -u admin
Where mycluster.icp is the default IBM Cloud
Private cluster name. This name might be something
different if you entered your own cluster name when you were deploying IBM Cloud
Private.
Problem - Deployment already exists error
deployment my_deployment_name already existwhere
my_deployment_name is the deployment name.Symptoms
This error occurs when the previous deployment with the same name as the deployment you are attempting to install now didn't delete successfully.
Solution
You must find this deployment and delete it manually. For example, to find the deployment, issue the following command:
kubectl get deploymentNext, you must manually delete the
deployment by issuing the following
command:
kubectl delete deploy my_deployment_name