Troubleshoot Virtual Appliance Issues
Follow the troubleshooting steps if you face the following issues during or after installing Splunk AppDynamics On-Premises Virtual Appliance.
appd-mysql and authn mysql pods are in Unkown state
The appd-mysql and authn mysql pods can turn into Unknown state.
kubectl get innodbcluster command displays UNKNOWN status under the following conditions:
- A node has recently failed over or recovered.
- The MySQL pods are active, but the application or authentication services are unable to establish a connection to the database.
Follow this procedure if appd-mysql or auth-mysql pods are stuck in the UNKNOWN state.
Follow this procedure if a member pod is active but appears offline in Group Replication (example, the pod is stuck in the RECOVERING state or is missing from the group).
Follow this procedure to verify the group replication status.
kubectl exec -n mysql appd-mysql-1 -c mysql – \
mysql-uroot-p"$(kubectl get secret mysql-secret -n mysql -o jsonpath='{.data.rootPassword}'|base64-d)"\
-e"SELECT MEMBER_HOST, MEMBER_PORT, MEMBER_STATE, MEMBER_ROLE FROM performance_schema.replication_group_members ORDER BY MEMBER_HOST;"
MEMBER_STATEdisplaysONLINEfor all members.MEMBER_ROLEdisplays PRIMARY for one member and SECONDARY for the remaining.Sample Output:MEMBER_HOSTMEMBER_PORTMEMBER_STATEMEMBER_ROLEappd-mysql-0.appd-mysql-instances.mysql.svc.cluster.local3306 ONLINE SECONDARY appd-mysql-1.appd-mysql-instances.mysql.svc.cluster.local3306 ONLINE SECONDARY appd-mysql-2.appd-mysql-instances.mysql.svc.cluster.local3306 ONLINE PRIMARY
Update DNS Configuration for an Air-Gapped Environment
An air-gapped environment is a network setup that does not have Internet connectivity. In this environment, DNS may become unreachable. To fix this issue, configure a DNS server that can be reached.
Following are example details used to explain how to update DNS configuration:
The IP addresses 10.0.0.1, 10.0.0.2, and 10.0.0.3 belong to the Virtual Appliance cluster.
The 10.0.0.5 is the IP address of the standalone Controller.
standalone-controller is the DNS of the standalone on-premises Controller.
Update CIDR of the Pod
If you require to change the default CIDR of the pod, you can update the CIDR to the available subnet range. Perform the following steps to update CIDR of the pod:
Error Appears for appdctl show boot
When you run the appdctl show boot command, the following error appears if any background processes are pending:
Error: Get "https://127.0.0.1/boot": Socket /var/run/appd-os.sock not found. Bootstrapping maybe in progress
Please check appd-os service status with following command:
systemctl status appd-os
Run the command after few minutes.
Insufficient Permissions to Access Microk8s
Sometimes this error appears if the terminal was inactive between installation steps. If you face this error, re-login to the terminal.
Restore the MySQL Service
If a Virtual Machine restarts in the cluster, the MySQL service does not automatically start. To start the MySQL services, complete the following:
EUM Health Fails After Multiple Retries
Run the following commands to restart the Events and EUM pod:
kubectl delete pod events-ss-0 -n cisco-events
kubectl delete pod eum-ss-0 -n cisco-eum
IOException Error Occurs in the Controller UI
In the Controller UI, when you select , the following IOException error occurs:
IOException while calling 'https://pi.appdynamics.com/pi-rca/alarms/modelSensitivityType/getAll?accountId=2&controllerId=onprem&startRecordNo=0&appId=7&recordCount=1'
To workaround this issue, run the following commands:
kubectl get pods -n cisco-controller
kubectl delete pod <Controller-Pod-Name> -n cisco-controller
- List all the pods in the completed state.
CODE
Kubectl get pods -A -
Delete the completed pods.CODE
kubectl delete pod <Controller-Pod-Name>
MySQL Router Pods Fail to Start
Sometimes, MySQL Router pods fail to start.
When you are restoring data during upgrade, MySQL pods don't start.
Restart the services using the following commands:
Issues after Restarting Virtual Appliance Services in Hybrid Deployment
You must regenerate the hybrid configure file and reconfigure the Controller properties in Kuberenetes CLI. See the following sections: