Meshery Operator, MeshSync, Broker Troubleshooting Guide
Meshery Error Code Reference
Have specific error with an error code? See the Meshery Error Code Reference for probable cause and suggested remediations.There are common issues Meshery users may face while operating the Meshery Operator and its custom controllers, MeshSync and Broker, that can be resolved by performing specific actions. This documentation aims to empower users by providing a set of troubleshooting tools and actions.
Understanding the Status of Meshery Operator, MeshSync, and Meshery Broker
The following table describes the various states of MeshSync and Meshery Broker and their implications.
MeshSync:
- ENABLED: Custom Resource present. MeshSync Controller is not connected to Broker.
- DEPLOYED: Custom Resource present. MeshSync Controller is present but the state is not RUNNING or ERRDISABLE, though
- RUNNING: MeshSync pod present and in a running state.
- CONNECTED: Deployed and connected to Broker.
- UNDEPLOYED: Custom Resource not present.
Meshery Broker:
-
DEPLOYED: External IP not exposed OR External IP exposed but Meshery Server is not connected as a client to Broker hence data is not being published.
- UNDEPLOYED: Custom Resource not deployed.
- CONNECTED: Deployed, sending data to Meshery Server.
Meshery Operator Deployment Scenarios
Because Meshery is versatile in its deployment models, there are a number of scenarios in which you may need to troubleshoot the health of the operator. The following sections describe the various scenarios and the steps you can take to troubleshoot them.
In-Cluster Deployment
Meshery Operator, MeshSync, and Broker are deployed in the same cluster as Meshery Server. This is the default deployment scenario when using mesheryctl system start
or make run-local
.
Out-of-Cluster Deployment
- Meshery Server is deployed on any Docker host (- Meshery Server is deployed on a Docker host, and Meshery Operator is deployed on a Kubernetes cluster). or
- Meshery is managing multiple clusters, some of which are not the cluster unto which Meshery Server is deployed.
Fault Scenarios
Common failure situations that Meshery users might face are described below.
- No deployment of Meshery Operator, MeshSync, and Broker.
- Probable cause: Meshery Server cannot connect to Kubernetes cluster; cluster unreachable or kubeconfig without proper permissions needed to deploy Meshery Operator; Kubernetes config initialization issues.
- Meshery Operator with MeshSync and Broker deployed, but Meshery Server is not receiving data from MeshSync or data the Meshery Database is stale.
- Probable cause: Meshery Server lost subscription to Meshery Broker; Broker server not exposed to external IP; MeshSync not connected to Broker; MeshSync not running; Meshery Database is stale.
- The SQL database in Meshery serves as a cache for cluster state. A single button allows users to dump/reset the Meshery Database.
- Orphaned MeshSync and Broker controllers - Meshery Operator is not present, but MeshSync and Broker controllers are running.
Operating Meshery without Meshery Operator
Meshery Operator, MeshSync, and Broker are crucial components in a Meshery deployment. Meshery can function without them, but some functions of Meshery will be disable / unusable. Whether Meshery Operator is initially deployed via mesheryctl
command or via Meshery Server, you can monitor the health of the Meshery Operator deployment using either the CLI or UI clients.
Verifying the Status of Meshery Operator, MeshSync, and Meshery Broker
Troubleshooting using Meshery CLI
The following commands are available to troubleshoot Meshery Operator, MeshSync, and Broker.
Meshery Server and Adapters
mesheryctl system status
- Displays the status of Meshery Server and Meshery Adapters.
Meshery Operator, MeshSync, and Broker
mesheryctl system check
- Displays the status of Meshery Operator, MeshSync, and Broker.
Troubleshooting using Meshery UI
Based on discussed scenarios, the UI exposes tools to perform the following actions:
- (Re)deploy Operator, MeshSync, Broker.
- Uninstall and Install MeshSync, Broker, Operator.
- Reset Database.
- Ad hoc Connectivity Test for Operator, Meshery Broker, MeshSync.
- Reconnect Meshery Server to Meshery Broker.
- Ad hoc Connectivity Test for Kubernetes context.
- Rediscover kubeconfig, delete, (re)upload kubeconfig.
Synthetic Test for Ensuring Change in Cluster State
Initiate a synthetic check to verify a fully functional Operator deployment, testing MeshSync/Broker connectivity.
- Empty database shows the main-cluster node.
- Corrupt database triggers an error snackbar with a link to the Settings screen.
- Disconnected Kubernetes displays MeshSync logo pulsating when data is received.
This documentation provides comprehensive guidance on troubleshooting in Meshery, ensuring users can address common issues efficiently.
Suggested Reading
- Troubleshooting Meshery Installations - Troubleshoot Meshery installation and deployment
- Troubleshooting Errors while running Meshery - Troubleshooting Meshery errors when running make run-fast / meshery system start
Recent Discussions with "meshery" Tag
- Mar 13 | Badge leveling system proposal
- Mar 20 | While running the command Make-server. localhost shows 404 not found. Are there any possible solution to fix also please suggest the setting up the project using docker route
- Feb 23 | Local Environment Setup TroubleShooting error
- Mar 20 | Meshery Development Meeting | March 20th 2024
- Mar 11 | [Help Wanted] A list of open DevOps-centric needs on Meshery projects
- Mar 17 | Error while deploying pod on meshmap
- Mar 15 | Meshery Build & Release Meeting | March 14th, 2024
- Mar 13 | Can i know ,is it possible to have admission controllers and CRD's in meshery catlog? or will support in future?
- Mar 13 | Meshery Development Meeting | March 13th 2024
- Mar 07 | Trying to deploy kyverno admission controller on meshery playground , but unexpectedly facing 42 errors