Skip to content
MySQL plug-in

Troubleshooting

View Markdown

The things that go wrong most often, what each one looks like, and what to change.

In this page: The license gate · Install and deploy · Connecting to MySQL · ClusterSet health · Jobs · Metrics that look wrong · Collections stop reaching the repository · Logs and the log level · Known issues in this release · Getting support

Nearly everything that goes wrong in the first hour with this plug-in is one of a small number of things. This page is that list rather than a general guide to Enterprise Manager.

If a MySQL Database target is Up but its pages are empty, it is the license key. That is the first thing to check on a new target, so it is the first section.

For a target whose pages are empty or partly filled, open its Monitoring Readiness page first: it checks the privileges, performance_schema, the sys schema, the backup history tables, the license and MySQL Shell, and shows the statement to run for each fix (see Monitoring pages). When a single metric group is empty on an otherwise working target, open its Collector Status group first: one row per group, with a status word and a reason (see Collector Status and the entries in Metrics that look wrong). A troubleshooting guide for AI assistants covers the same checks in a form you can load into your own assistant together with the page’s results, before you raise a service request.

Symptom. The target shows Up. Its Overview page and every metric page are empty. There is a CRITICAL incident on the License metric, and each metric group reports a collection error reading:

Collection stopped by license status: <status>

Cause. Every MySQL Database target needs a license key in its Plug-in License Key credential (MySQLDatabaseLicenseMonitoringCreds). A target upgraded from an earlier build may still hold the key in the old License Key property (ip_mysql_database_license), which is read while the credential is empty. While the status is anything but Active, the plug-in stops ordinary collection on that target. Availability keeps reporting, which is why the target stays Up rather than going Down. The incident and the collection errors are the signal, not the target status.

Fix. Read the Status column of the License metric and act on it:

StatusMeaningWhat to do
ActiveThe key is genuine, issued for this plug-in, and in date, including the last day, the printed expiration dateNothing
License RequiredNo key has been enteredEnter your license key in the Plug-in License Key credential (a blank or space-only credential counts as no key; if the legacy License Key property is empty too, nothing is set)
Invalid SignatureThe key text was alteredPaste the key exactly as issued, as one line, no wrapping, no trailing spaces
Wrong Plug-inThe key was issued for a different plug-in, for example a key issued for a pre-release buildUse the key issued for ip.em.xmys
ExpiredThe key’s expiry date has passed. A key is valid through its printed date and is Expired from the next day, by the agent host’s local dateRequest a new key

The key is checked on the agent host every 15 minutes, and again as soon as the key changes. Collections resume at their next interval once the key is accepted. Nothing needs a restart.

Not affected. InnoDB Cluster and InnoDB ClusterSet targets are containers, not licensed targets. They are never gated and need no key.

Incompatible version at import. The plug-in ships one artifact per Enterprise Manager line, each built with that line’s development kit, and EM refuses the other one. Use 24.1.12.0.0 on EM 24ai and 13.5.12.0.0 on 13.5.

A new release’s metrics show no data. Some releases move target metadata. When they do, the OMS side and the agent side must both be deployed. Deploy the agent side in the same maintenance window as the OMS side. Until you do, metrics added by that release have nowhere to come from and their pages stay empty while everything else keeps working. Upgrade notes lists every release that needs it.

The OMS restarted during deployment. Expected on releases that move target metadata. emcli get_plugin_deployment_status -plugin=ip.em.xmys tells you when it is back.

MySQL Connector/J not found: no mysql-connector-j-*.jar in <directory>; files present: ... Every collection on that agent, and Run EXPLAIN, reports this until the driver is in place; the target is not showing a MySQL problem. The message names the directory the plug-in looked in, <agentStateDir>/ip_plugin/xmys/lib, and lists what it found there. Put exactly one Connector/J jar in that directory (8.4.0, 9.7.0 or 26.10.0, the certified versions; the prerequisites page covers the rest), readable by the agent user; the next collection uses it. If the message says the directory was missing and has been created, the agent had never had a driver staged. See Prerequisites.

MySQL Connector/J: N mysql-connector-j-*.jar files in <directory> (...); keep exactly one. Two or more drivers were left in the directory, typically after an upgrade. Remove all but the one you mean to use.

MySQL Connector/J: <jar> is not usable by this plug-in - it lacks <class> ... The file is not a Connector/J release the plug-in can link against: a legacy mysql-connector-java build renamed, a corrupt download, or a release outside the tested range. Replace it with mysql-connector-j-8.4.0.jar and compare its SHA-256 with the value in the prerequisites.

Collections stop after installing a newer Connector/J. Connector/J 8.4.0, 9.7.0 and 26.10.0 are the certified versions; other 8.4.x, 9.x and 26.x releases are expected to work but are not certified for this release. Go back to one of the certified three and send us the version that failed.

MySQL Connector/J <version> is outside the supported range (8.4.0 through 26.10.x). Collection continues. A warning in the plug-in log, written at most once every 24 hours on each agent. The driver in the agent’s ip_plugin/xmys/lib directory is older than 8.4.0 or newer than the 26.10 series. The plug-in does not refuse it and collections run. If a collection fails with that driver, most likely the sign-in over a Unix socket, replace the jar with Connector/J 8.4.0 (User Guide 2.9).

MySQL Connector/J: cannot locate <agentStateDir>/ip_plugin/xmys/lib - agentStateDir did not resolve on this agent. The agent did not hand the plug-in its instance directory. Check emctl status agent on that agent shows an Agent Home, and that the plug-in was deployed to the agent after the agent was last upgraded.

Windows agents. Not supported in this release. The agent doing the monitoring must be Linux; the MySQL server it monitors can be anywhere it can reach.

The target is Down. Is the server unreachable, or is the login refused? The Response metric reports a Reason beside its Status, and the Database connection check on Monitoring Readiness leads with the same name. Open Monitoring → All Metrics → Response on the target, or its Monitoring Readiness page.

ReasonWhat happenedWhat to do
NONEThe target is up.Nothing.
AUTH_FAILEDThe server answered and refused the user name, the password or the client host.Check the target’s monitoring credentials and the account’s host clause (the entries below).
ACCOUNT_LOCKEDThe server answered; the monitoring account is locked.Unlock it with ALTER USER ... ACCOUNT UNLOCK. A lock set by failed logins also ends after its lock time.
PASSWORD_EXPIREDThe server answered; the account’s password has expired.Set a new password on the server and store it in the monitoring credentials.
KERBEROS_TICKETKerberos authentication failed on the agent host before the login completed.Check that the agent’s operating-system user holds a valid ticket, and the target’s Kerberos configuration file.
TLSThe TLS handshake or the certificate check failed.Read the TLS_ name on Monitoring Readiness (the TLS entries below).
TLS_REQUIRED_BY_SERVERThe server refused an unencrypted connection: it has require_secure_transport=ON (error 3159) and the target’s TLS Mode is empty or disabled, which connects without encryption. Amazon RDS for MariaDB 11.8.9 defaults to this setting.Set the target’s TLS Mode to required (2.5, 4.1). The reason matches no incident of its own.
NETWORKNo login was attempted: the connection was refused, dropped, or the host was not found.Check that the server is up and that its host and port are reachable from the agent host.
TIMEOUTThe server did not answer in time.Check the network path and the server’s load.
OTHERAnything else, for example a server at its connection limit.Read the plug-in log on the agent host.

AUTH_FAILED, ACCOUNT_LOCKED, PASSWORD_EXPIRED and KERBEROS_TICKET raise a CRITICAL incident of their own after two collections in a row, “Monitoring cannot authenticate to MySQL”, beside the target-down event. The incident names the reason and never the user name or the password. It clears when the login works again, and also when the fault becomes a plain outage. The Reason applies to MySQL Database, MySQL InnoDB Cluster and MySQL InnoDB ClusterSet targets from GA Update 1.

Target stays Down, or Access denied for an account you just created. The agent connects over TCP, so the monitoring account’s host clause has to match the agent’s address as MySQL sees it, not localhost. An account created as 'em_monitoring'@'localhost' will not authenticate a remote agent. See Prerequisites.

Access denied even though the account exists with the right host clause. MySQL matches the most specific host entry first, and an anonymous account (''@'localhost', present by default in some distributions) is more specific than 'em_monitoring'@'%' for a connection that arrives as localhost. The anonymous entry wins, authentication is attempted against it, and it fails. Check with:

SELECT user, host FROM mysql.user ORDER BY user, host;

If an anonymous row exists and your agent connects locally, either remove it (DROP USER ''@'localhost';) or connect over TCP to an address that does not match it. The error names your account while the server never tried it.

Cannot set monitoring credential at instance. Set credential for parent target ... when you change a target’s user, password or license key. The target is a member of a MySQL InnoDB Cluster or ClusterSet target through a cluster_contains association that was created with emcli create_assoc. Enterprise Manager refuses credential changes on a cluster member, in the console and in EM CLI, and the parent target has no credential set for its members. The credentials already stored keep working. To change them, remove the association, set the credential on the target, and create the association again. See Changing credentials on a member of a cluster target.

A member of a cluster target reads AUTH_FAILED right after a property update, and its MySQL user and password did not change. The target is a member of a MySQL InnoDB Cluster or ClusterSet target through a cluster_contains association, and the reason appeared at the first Response collection after an emcli modify_target on it. Enterprise Manager rewrote the target on the agent without its monitoring user name and password. This is rare: a property update on a member keeps the stored credentials.

To recover: Enterprise Manager refuses to set credentials on a member, so remove the association, set the monitoring credentials on the target, and create the association again. The target returns to Up at the next Response collection. See Changing credentials on a member of a cluster target.

Socket connections. A local agent can use the Unix socket instead of TCP, which changes the host-clause rules. See Prerequisites.

Access denied over a Unix socket right after mysqld restarted, for an account using caching_sha2_password. MySQL refuses the full authentication exchange over a socket until the account’s password has been cached by a login, and drops that cache on restart. This release completes the exchange itself, so a socket target recovers on its next collection with no human login. If you still see it, the driver in ip_plugin/xmys/lib is not the tested Connector/J release: the fix lives in the plug-in’s own authentication code, which links against Connector/J 8.4.0.

Kerberos (JDBC path) fails while the same account works from the mysql client. The collections authenticate through the Java runtime’s Kerberos libraries, not the system ones, so they read the credential cache and krb5.conf the agent’s Java sees. Set the target’s Kerberos Configuration File (4.1) to a file the agent user can read, keep the ticket refreshed for the agent’s operating-system user, and check that the agent’s Java trusts the realm’s encryption types.

health_status reads UNKNOWN and dr_promotion_ready reads -1. Readiness was not assessed. ClusterSet health needs MySQL Shell (mysqlsh) on the agent host, on the agent’s PATH, and a connection it can use. When it cannot run, the plug-in falls back to a repository rollup or, with no data to roll up, to no assessment at all, and fallback_reason says why. Neither can assess promotion readiness, so the verdict is UNKNOWN rather than a pass or a fail, and the DR Promotion Ready alert does not fire. MYSQLSH_NOT_FOUND is a missing prerequisite, not a sick cluster: see Prerequisites. The reasons below that name a fault also raise the Fallback Reason WARNING.

health_source reads JDBC_METADATA. MySQL Shell was not used for this row: the Health Source Mode property is JDBC_METADATA, or it is AUTO and MySQL Shell could not be used (the fallback_reason names why). The row was read over JDBC from the members the agent reached, and health_status is UNKNOWN by design: without MySQL Shell the DR readiness gate, GTID lag and errant transactions are not assessed.

A cluster with -1 health values, or UNKNOWN global status in the Clusters table, had no listed member answer: add members of that cluster to the target’s Host and Port lists, or open the agent host’s path to them. To get a readiness verdict, give the agent host a path to every member and set the mode to AUTO or ADMINAPI (user guide 2.2).

A JDBC_METADATA collection reads COLLECTION_ERROR in Collector Status. In JDBC_METADATA mode no listed endpoint answered, or the metadata read was refused. The reason names the error class and the MySQL error number, as for any JDBC group: a connection failure is the same as for the Response metric, and an error 1142 is a monitoring user without SELECT on mysql_innodb_cluster_metadata (the global SELECT of user guide 2.4 covers it). A server with no metadata schema at all reads as not part of a ClusterSet, and the group returns no row.

dr_promotion_ready reads 0 and the DR Promotion Ready alert is CRITICAL. MySQL Shell assessed the ClusterSet and a readiness check failed: health_status reads NOT_READY. A replica cluster the agent cannot reach counts as failed only when the primary cluster shows no live replication connection from it (see below). The ClusterSet DR Health page shows which one. A ClusterSet with no replica clusters reads 0 too, because there is nothing to fail over to.

A replica cluster reads UNKNOWN with Fault Tolerance UNREACHABLE, and its status text says the cluster is running. The agent host has no path to any member of that replica cluster, but the primary cluster’s primary lists a live ClusterSet replication connection from it, so the cluster itself is healthy. Readiness is not assessed (dr_promotion_ready -1, health_status UNKNOWN) and the DR Promotion Ready alert does not fire. Open the agent host’s path to every member of the replica cluster on its MySQL port, or add the members to the target’s Host and Port lists; the WARNING clears on the first collection that reads the cluster.

A replica cluster reads UNKNOWN, Fault Tolerance NOT_ASSESSED, and its status text says no member is in the endpoint list. The target reads over JDBC and none of that cluster’s members is listed as an endpoint (a Router endpoint or one member), so the agent never tried to reach it. Nothing is wrong and nothing alerts. Add the cluster’s members to the target’s Host and Port lists to assess it. A member counts as listed when its host and port match the metadata, or resolve to the same address on the same port.

A replica cluster reads NOT_ASSESSED and its status text says endpoint list entries could not be matched to the cluster’s members (name resolution). An endpoint on a member’s port could not be compared with the metadata’s member names because a name did not resolve on the agent host, or the lookup took too long. Fix name resolution on the agent host, or list the members under the names the metadata records (dba.getClusterSet().status() shows them).

The status text says a host is shared by several clusters. The primary cluster’s primary lists a ClusterSet replication thread, but its host appears in the metadata for more than one cluster (several ports on one host, or a replica cluster on a primary cluster host). The thread carries no port, so it cannot be assigned, and every cluster on that host reads “not checked” and keeps its earlier answer. Give each cluster its own host name or address if you want the check to decide.

“Host not resolvable” means a thread’s host or a member’s name could not be resolved on the agent host; fix its name resolution. “The check timed out” means the connection, the statements and the lookups together took more than 15 seconds. A socket target always reads “socket targets cannot reach the global primary”.

A replica cluster that is down reads UNKNOWN for several minutes before the DR alert raises. While the primary still lists the dead cluster’s replication thread, the cluster reads like a running one. The primary frees the thread when its TCP connection times out, which can take up to about 15 minutes.

A replica cluster reads UNREACHABLE and its status text says there is no live ClusterSet replication connection. The agent cannot reach the cluster and the primary cluster’s primary has no Binlog Dump GTID thread from an account named mysql_innodb_cs_<hex> whose host is a member of it. The cluster is down or its replication channel is stopped. On ADMINAPI this is the case that keeps dr_promotion_ready at 0. On the replica cluster’s primary, dba.getClusterSet().status() from a host that reaches it shows why.

The status text says the check for a live ClusterSet replication connection could not run. The reason follows in brackets as an error class and a MySQL error number, or in words. Error 1142 or 1044 means the monitoring user cannot SELECT from performance_schema.threads or the metadata schema on the primary cluster’s primary: run the grant of user guide 2.4. “Does not list the monitoring session” means performance_schema is off on the primary. “The primary cluster’s primary could not be reached” means the agent host cannot connect to it. In each case the health source keeps the answer it gave before the check existed: 0 and the DR Promotion Ready alert on ADMINAPI, not assessed on JDBC_METADATA.

TLS_TRUSTSTORE_REQUIRED. The target’s TLS Mode is verify_ca or verify_identity, and its CA Certificate File is empty or is not a readable PEM file of certificates on the agent host. The plug-in does not start MySQL Shell without it, so the check fails closed and reports this status. Set the CA Certificate File property (2.5).

TLS_VERIFY_FAILED. MySQL Shell was given the target’s CA Certificate File and rejected a member’s certificate. No CA in the file signed it, or, with verify_identity, it does not name the member’s host. MySQL Shell reports both with the same text. The Database connection check on Monitoring Readiness names the reason for the endpoint the collections use. Check that the file holds the CA of every member.

MEMBER_UNREACHABLE. MySQL Shell connected successfully through one of the target’s listed endpoints, but then failed reaching a different member, Can't connect to MySQL server on '<host>:<port>', while reading the ClusterSet-wide status. The AdminAPI opens its own session to every member Group Replication still considers online, regardless of which member Shell is connected through, so this can happen even when the endpoint list itself worked.

Retrying a different listed endpoint will not fix it: the same member is unreachable either way. Open the agent host’s network path to that member too. Every member of every cluster needs a path from the agent host on its MySQL port, whether or not the member is configured on the target (see Prerequisites).

The same reason is reported when MySQL Shell answers through a replica-cluster member but cannot reach any member of the primary cluster: Shell then reports the primary cluster’s state as UNKNOWN instead of failing, and the plug-in reports readiness as not assessed rather than “not ready”, because from the agent host a cut path and a primary cluster that is down look the same.

KERBEROS_TICKET. The ClusterSet target uses Kerberos, and the Kerberos exchange failed before any member saw a credential. MySQL Shell reports every such failure as no more than Unknown MySQL error, so the plug-in names the family for you; the usual cause is the agent operating-system user’s credential cache being missing or expired, but an unreachable KDC, clock skew between the agent host and the KDC, or a member without a mysql/<host> service principal produce the same text.

Start with klist as the agent’s operating-system user on the agent host; if it shows no ticket or an expired one, restore the unattended refresh (k5start, or a scheduled kinit -kt <keytab> <principal>) described in Prerequisites. If the ticket is fine, kinit and a manual mysql --default-auth=authentication_kerberos_client against the member will show the real error.

Do not read the target’s other collections as proof either way: MySQL Shell resolves the credential through the system Kerberos libraries and the JDBC collections through the Java runtime, which can read different caches, so one path can authenticate while the other does not.

KERBEROS_CLIENT_UNAVAILABLE. MySQL Shell on the agent host could not load its Kerberos client plug-in (Authentication plugin 'authentication_kerberos_client' cannot be loaded). Install the MySQL Shell package that ships its client plug-ins, and the Kerberos client libraries it links against, on the agent host; mysqlsh --version alone does not prove the plug-in is present.

KERBEROS_CONFIG_UNREADABLE. The Kerberos Configuration File set on the target is not readable by the agent’s operating-system user, so the plug-in did not run MySQL Shell at all. MySQL Shell would otherwise fall back to /etc/krb5.conf silently, while the JDBC collections fail on the same path, and the two would disagree. Check the path in the target’s properties and the file’s permissions on the agent host.

replica_clusters_complete reads 0. MySQL Shell reports a replica cluster with a member that is not ONLINE (OK_PARTIAL or OK_NO_TOLERANCE_PARTIAL in that cluster’s Cluster Status). The cluster’s global status stays OK, so this is the only readiness check that fails. Bring the missing member back (cluster.rejoinInstance()), or remove it from the cluster if it is gone for good (cluster.removeInstance()); the gate opens on the next collection that shows every configured member ONLINE.

Fault Tolerance reads NO_TOLERANCE, PARTIAL or NO_QUORUM. This is MySQL Shell’s own cluster status, on the Cluster Health metric of a Cluster target and on each row of ClusterSet Clusters. Cluster Status Text gives Shell’s sentence, and the two member counts show how many configured members are ONLINE. The values and their severities are listed with the Cluster pages in the guide. A cluster built with one or two members reads NO_TOLERANCE permanently; change the threshold for that target if that size is your design, and keep ASSESSMENT_FAILED in the WARNING pattern of a Cluster target when you do.

Fault Tolerance reads NOT_ASSESSED or ASSESSMENT_FAILED on a Cluster target. MySQL Shell could not be used, and Why Not MySQL Shell (fallback_reason) gives the reason. NOT_ASSESSED means MySQL Shell is not installed or does not apply to the target, and raises nothing. ASSESSMENT_FAILED means MySQL Shell is installed and failed for a reason you can fix; it is a WARNING, and it keeps an incident that was already open from clearing while the cluster cannot be read.

The reasons in this section apply to a Cluster target as well. Two more are specific to it. NOT_A_CLUSTER: no listed member is part of an InnoDB Cluster, as on a plain Group Replication group, so there is no cluster status to read. GROUP_REPLICATION_INACTIVE: every listed member that answered belongs to an InnoDB Cluster and has Group Replication stopped. Start Group Replication on that member, or list every member on the target so that MySQL Shell can ask one that is serving.

Registered MySQL Router versions reads not applicable on a Cluster target. The server has no mysql_innodb_cluster_metadata schema, as on a plain Group Replication group. MySQL Routers register in that metadata, so none can be registered and the check has nothing to compare. The status is OK and no action is needed. The check reads Unknown with the server’s message in two other cases: the monitoring account lacks the SELECT privilege that would let the server confirm the schema is absent, or the schema holds metadata older than version 2.0. dba.upgradeMetadata() in MySQL Shell brings old metadata up to date.

Time Lag reads empty on a replica cluster and Time Lag Status reads NOT_ASSESSED. MySQL Shell read the cluster’s status but could not find or open a session to that replica cluster’s primary (its replication receiver, as MySQL Shell reports it), or the query failed. Time Lag is read with one more session from the agent host, using the account, password or Kerberos ticket and TLS Mode of the target, so check that the agent host reaches the replica cluster’s primary on its MySQL port and that the account can log in there. Every other ClusterSet value is unaffected.

The same status appears for a third-or-later replica cluster, because one collection reads at most three, and for a cluster not reached within the 15 seconds the reads share. The reading comes back on the next collection that succeeds.

KERBEROS_NOT_SUPPORTED. The endpoint refused the Kerberos client plug-in (Authentication method authentication_kerberos_client is not supported). That is what a MySQL Router port answers to MySQL Shell: Shell cannot log in with Kerberos through a Router, a MySQL limitation (the plug-in’s JDBC collections can, so the rest of the target keeps collecting). Configure the ClusterSet target with member endpoints (a node list) instead of a Router port, or use password authentication for a Router-fronted target.

Run EXPLAIN fails with Unable to get credentials for defaultHostCred. The job needs two credentials, and this error is about the second one:

  • the target’s monitoring credential, the MySQL account, which connects and asks for the plan; and
  • a Host Preferred Credential on the target, a named host credential whose run-as is the agent’s operating-system user, which lets the agent start the plug-in’s program on the agent host.

The agent’s own OS credential is not resolved automatically for this job type, so a named host credential is required rather than optional. Set it once per target under Setup → Security → Preferred Credentials: select the MySQL Database target type, open Manage Preferred Credentials, and set the host credential set to a named credential running as the agent’s OS user.

Run EXPLAIN fails with MySQL Connector/J not found ... or cannot locate <agentStateDir>/ip_plugin/xmys/lib - EMSTATE is not set in the job step. The job runs under the target’s Host Preferred Credential and reads the same driver directory as the collections. The first message means the driver is missing on that agent host or unreadable by the credential’s operating-system user (the jar and the directory must be readable by it). The second means the credential switched user without keeping the agent’s environment, usually a sudo rule with env_reset and no env_keep; allow the environment through, or use a credential that runs directly as the agent user.

The Host Preferred Credential uses pbrun or another privilege-delegation tool. This release is tested with a credential that runs directly as the agent’s operating-system user and with sudo. PowerBroker (pbrun) and similar tools are untested. If you must use one, confirm that the switched user keeps the agent’s environment (see the EMSTATE entry above) and send us the result either way.

Run EXPLAIN fails with the job step's javaHome=... does not name a JVM. The Java runtime Enterprise Manager resolved for the job is not there. This points at the agent installation rather than the plug-in; emctl status agent on that agent and the agent’s own upgrade history are the place to look.

Run EXPLAIN fails with MISSING_PRIVILEGE: the monitoring account ... does not hold the ... privilege on .... The statement is an INSERT, REPLACE, UPDATE or DELETE, and MySQL refuses to plan a statement the account could not run. Nothing was run. The message names the privilege, the account as the server identified it, and the table or column. Grant that privilege on that table to the monitoring account, or explain the SELECT that reads the same rows with the same WHERE clause. See Jobs.

Run EXPLAIN returns a syntax error on a statement copied from Query Analyzer. Query Analyzer shows normalized digests, with literals replaced by ?. A digest will not explain as it stands. Substitute real values for the placeholders first. See Jobs.

Run EXPLAIN reports No complete query reached the job, so nothing was explained. The plug-in refused the job’s input rather than explain part of a statement, and the job ends Failed. An ERROR line names the reason: in the plug-in log (below) when the job’s Host Preferred Credential runs as the agent user, otherwise just above the message in the job output. The reasons are: the input did not finish arriving within 10 seconds (a heavily loaded agent host; run the job again), or a value repeated a setting the job passes itself, which happens when the Database Name contains a line break. Enter the database name on one line.

Run EXPLAIN reports … This query starts with something else, so it was not run. The job explains only a SELECT, WITH, TABLE, INSERT, REPLACE, UPDATE or DELETE statement, or one opening with (, so that it never runs the statement. Remove anything before the statement other than comments, such as ANALYZE, a FORMAT= option or a /*! comment. See Jobs.

Run EXPLAIN reports A connection property contains a comma, which the job cannot pass. The target’s Host, Port, Unix Socket Path, TLS Mode, CA Certificate File or Kerberos config contains a comma, usually an endpoint list. Run EXPLAIN connects to one server: give the target a single host and port.

Query Analytics look stale on an idle server. Like all Enterprise Manager keyed metrics, the query-digest tables retain their last collected rows when a collection window sees no new activity. The rows are not being refreshed because there is nothing to refresh them with. The active_digest_count column is the freshness signal. Read that before concluding a collection has stopped.

Backup failures are not being detected. Detection is tool-asymmetric: MySQL Enterprise Backup records failed runs, and Percona XtraBackup does not. For an XtraBackup-only estate the backup-age threshold is your failure signal, because a failed run leaves no row to find. Details in Backup monitoring.

One metric group errors on an uncertified MySQL version. The plug-in does not block versions it has not seen. It attempts full monitoring, and where an uncertified server behaves differently the affected group degrades to a collection error on that group alone rather than taking the target down. If you hit this, report the group and the MySQL version to your Integration Plumbers support contact.

Time Lag Status reads CLOCK_SKEW. The replica’s clock is behind the source’s by more than 2 seconds, so a transaction looks as if it committed in the future. The plug-in reports the offset in Clock Skew and no lag, because a lag calculated across the gap would be wrong. Synchronize the clocks of both servers with NTP or chrony and check with chronyc tracking on each. The WARNING clears on the first collection after the clocks agree. On a ClusterSet the check is against the primary cluster, and on a replica of a replica it is against the original source.

Time Lag Status reads NO_WORKER_DATA, NO_DATA, SOURCE_DISCONNECTED or APPLIER_STOPPED. NO_WORKER_DATA: the applier is running and the worker table has no rows for the channel. Time Lag needs a multithreaded applier (replica_parallel_workers of 1 or more, the default since MySQL 8.0.27); Seconds Behind Source covers a single-threaded one. NO_DATA: the applier is running and no transaction with a commit time has been queued or applied on its workers, and the status changes when the first one arrives.

SOURCE_DISCONNECTED: the replica is idle and its connection to the source is down, so it cannot know how far behind it is. Check the I/O thread alert and last_io_error. APPLIER_STOPPED: the applier is not running, and the replica_sql_running alert reports it. In all four Time Lag is empty on purpose, and it is never 0.

A metric group is empty. How do I find out why? Read the group’s row in the target’s Collector Status group (CollectorStatus), in the metric browser, with emcli or through an assistant over MCP. Find the row by its MetricGroup key. Status is one of six words and Reason is a fixed phrase. Read Status before any number in the row: an empty number reads as 0 over MCP. The sections below say what to check for each word.

A group reads NOT_CONFIGURED. The collection ran and the server does not have what the group reads. This is correct for many servers, and no alert is raised. Change the server only if you want the feature. The reason names the cause:

ReasonWhat to check
no replication channel is configuredThe server is not a replica. Expected on a standalone server or a source.
binary logging is offBinary logging is off on this server. On a managed service it follows the backup settings (4.4 in the user guide).
performance_schema is offThe performance_schema variable is OFF. It cannot be changed while the server runs: set it in the server configuration, or in the platform’s parameter group or database flag, and restart. Monitoring Readiness shows the same check.
a performance_schema consumer this group needs is disabled, the performance_schema instruments this group needs are disabledThe consumers in performance_schema.setup_consumers or the instruments in performance_schema.setup_instruments that the group reads are disabled. An UPDATE there is lost at a restart; put the setting in the server configuration to keep it.
the sys schema is not installed, the sys schema is older than the supported releaseThe sys schema is missing, or older than 1.5.1. Install or upgrade it. Monitoring Readiness has a sys schema check.
the audit log status counters are not present, the firewall status counters are not present, the NDB Cluster status counters are not presentThe component is not installed. Expected on Community Edition and on managed services.
no backup tool history was foundNeither MySQL Enterprise Backup nor Percona XtraBackup has left history on the server. Expected on managed services (4.4 in the user guide).
Group Replication is not active on this serverThe server is not a member of a group. On a Cluster target, check that the target points at a member.
no InnoDB Cluster metadata schema was foundThe server holds no mysql_innodb_cluster_metadata schema, so it is not part of an InnoDB Cluster.
the Router has no metadata cacheThe Router was not bootstrapped against a cluster, so it routes statically.
MySQL Shell could not be used: NOT_A_CLUSTER, NOT_A_CLUSTERSET, MYSQLSH_NOT_FOUND, KERBEROS_NOT_SUPPORTED, KERBEROS_CLIENT_UNAVAILABLESection 4 explains each. MYSQLSH_NOT_FOUND means MySQL Shell is not on the agent host’s PATH (2.2 in the user guide).

A group reads COLLECTION_ERROR. The collection failed, and after two collections in a row a CRITICAL alert names the group and the reason. The reason says where to look:

ReasonWhat to check
privilege denied with error number 1044, 1142, 1143, 1227 or 1370The monitoring account lacks a privilege the group needs. Check its grants against 2.4 in the user guide; REPLICATION CLIENT (BINLOG MONITOR and REPLICA MONITOR on MariaDB) covers the replication and binary log groups.
unknown table, unknown column or unknown system variable (error numbers 1146, 1109, 1054, 1193)The server release differs from what the group expects. See the entry above on an uncertified MySQL version.
query time limit reachedThe statement ran into the 50-second limit. Check the server’s load (6.2 in the user guide).
authentication failed, account locked, password expired, TLS failure, network failure, timed outA connection problem. Section 3 has the remedy for each.
MySQL Shell could not be used: <REASON>Section 4 has the remedy for each reason.
the Router REST port did not answer, the Router REST TLS check failed, the Router REST login was refused, the Router does not load the REST plug-in, the Router REST collection ran out of time, the Router REST answer was not usableThe Router’s REST API; 2.10 in the user guide covers its setup.
Collection failed (see the plug-in log on the agent host)The collection reported a failure without a cause the status can name. Read mysql_oem.log (section 8) for the line at the time of LastAttemptEpoch.

A group reads NOT_COLLECTED_YET. The status has no collection to stand on. The reason says which case it is:

  • no collection has completed for this group yet. The target is new, the agent was just upgraded, or the Collector Status group is new on the management server. Wait one collection of the group; its default schedule is in the metrics reference. After an upgrade, check that the OMS was restarted before the agents.
  • the first window only takes the baseline. A delta group needs two collections to report. It changes on the next one.
  • no collection has completed within the default collection interval. The group has not finished a collection for three of its default intervals, and never less than 15 minutes. Check that the agent is running and not overloaded, that the group’s schedule has not been lengthened or the group stopped in Metric and Collection Settings (7.2 in the user guide), and the agent log for a collection that timed out.
  • the target did not answer, see Response. The target is down. Read its Response group and section 3. The group returns to its own status after the target answers.

A group reads DISABLED. The plug-in does not collect the group on this target by design. With the reason Collection stopped by license status, the license gate stopped collection: section 1. With MySQL Shell could not be used: SOCKET_CONNECTION, the target connects over a Unix socket and MySQL Shell cannot (2.6 in the user guide). With this group is not collected on MariaDB or this MariaDB release has no replication connection table, the group does not apply to that MariaDB release.

A group reads NO_DATA. The feature is there and the collection succeeded, and the server had nothing to report: no lock waits, no Router registered, an idle window. No action is needed.

7. Collections stop reaching the repository

Section titled “7. Collections stop reaching the repository”

The 24 Hours window stops advancing, Week and Month stay empty, and emctl status oms -details says “PBS may not be up” while the console works. The repository cannot absorb the metric load, usually because the agent hosting the MySQL targets shares a host with the Management Service or the repository database, or carries more targets than its cores allow. Confirm with the WebLogic server log ([STUCK] ExecuteThread stacks ending in MetricLoadShared.flushRows on a JDBC commit) and the repository’s wait profile (log file sync in seconds). Relief and the sizing rule are in the user guide, 2.8: blackout what you can spare, restart the OMS, then spread the targets or lower the high-cardinality schedules before lifting the blackout.

The plug-in log. Every collection runs as its own short Java process on the agent host that monitors the target, and all of them write to one file there:

<agent binaries>/plugins/ip.em.xmys.agent.plugin_<version>/logging/mysql_oem.log

emctl status agent on the agent host prints Agent Binaries (the plugins directory is under it) and Agent Home (the agent’s own logs are under it). Each launch logs one INFO line naming the target type and the metric group, for example Running with args: target=Instance category=Response; a fault follows as WARN or ERROR with the driver’s or MySQL Shell’s message. A line does not name the target, so match lines to a target by time and metric group.

The file rolls over at 15 MB and the plug-in keeps ten rolled files beside it. Passwords and license keys are never written to it.

A Run EXPLAIN job whose Host Preferred Credential runs as the operating-system user that owns the plug-in’s logging directory, the agent user, writes its log lines to this file, including the stack trace of a failure. Under any other user the job never writes this file, so that it cannot create or roll it as that user; its ERROR lines go to the job step’s output instead, one line each with no stack trace. Either way the step output ends with the result: the plan rows, or one em_error line that names the fault, and a failed run ends with the status Failed.

The agent log. <agent home>/sysman/log/gcagent.log is the agent’s own view: a collection that timed out, a metric evaluation error, or an upload that could not reach the OMS. Read it beside the plug-in log when a metric group shows a collection error the plug-in log does not explain.

The OMS log. Console pages and job dispatch run on the OMS, so an Unexpected Error dialog on a plug-in page, or a job that never reaches the agent, leaves its trace in <OMS instance>/em/EMGC_OMS1/sysman/log/emoms.trc. Deployment progress is in emcli get_plugin_deployment_status -plugin=ip.em.xmys.

Raising the log level. The plug-in ships a standard log4j2 configuration beside the log, at logging/log4j2.xml in the same plug-in directory, and the agent points every launch at it. To see more, change the root level in that file from info to debug:

<Root level="debug">

Each collection is a new process, so the next collection on that agent uses the new level with no restart. Set it back to info when you are done: a database target makes about 14 launches a minute, and each of them now logs at debug. The file is replaced when the plug-in is upgraded on the agent, which restores info.

These are the known issues of Update 1. None of them stops a target from collecting. The limits of the features that Update 1 adds are listed under Known limitations and boundaries in What’s new.

  • Schema advisor violations can stay open after the last finding is fixed. When a database no longer has any schema advisor finding, the SchemaAdvisor collection returns no rows and Enterprise Manager keeps the previous rows. The violations of Index Covered By Another Index, Table Has No Primary Key and the two Auto-Increment Column rules then stay open, while the total rules and the Indexes page counts read 0. While at least one finding remains, every fixed finding clears as expected. A patch release of Update 1 corrects this.
  • Managed services are added manually, and Azure is not certified. Amazon RDS for MySQL 8.4, Amazon Aurora MySQL 8.4, OCI MySQL HeatWave 8.4 and Google Cloud SQL for MySQL 8.4 are certified. Azure Database for MySQL works as a manually added target and is not yet certified. Add every managed instance manually (see 4.4 in the user guide). The MySQL 9.6 and 26.7 innovation releases are expected to work and are not certified (1.3 in the user guide).
  • MariaDB differences. A MariaDB target needs the MariaDB grant set (2.4 in the user guide): BINLOG MONITOR and REPLICA MONITOR in place of REPLICATION CLIENT. The per-worker replication and InnoDB lock waits groups are not collected on MariaDB, the four InnoDB status groups stay empty, and before MariaDB 11.6 the two replication connection groups read no rows. 4.4 in the user guide lists these differences.
  • Tested versions. MySQL Connector/J 8.4.0 is the version this release ships its checksum for, 9.7.0 and 26.10.0 are certified as well, and other 8.4.x, 9.x and 26.x releases up to the 26.10 series are expected to work without being certified (2.9 in the user guide). MySQL Shell 8.4 LTS, 9.7, 26.7 and 26.10 are tested for Cluster and ClusterSet health (2.2). InnoDB ClusterSet is certified on MySQL 8.4 and validated on MySQL 9.5 commercial (1.3).
  • Windows agents are not supported, and pbrun is untested. The monitoring agent must run on Linux. Host Preferred Credentials are tested running directly as the agent user and through sudo; PowerBroker and similar tools are untested (see Jobs above).
  • EM 13.5 column widths. On Enterprise Manager 13.5 some console tables keep the widths that Enterprise Manager’s own table component gives them, rather than being sized to their content as on 24ai. Update 1 does not change this. Enterprise Manager 24ai is the reference platform (1.3 in the user guide).

Integration Plumbers supports the plug-in directly. Write to helpdesk@integrationplumbers.io: every message opens a ticket and you receive the ticket reference by reply. Open and follow tickets at https://integrationplumbers.zohodesk.com/portal/en/home. For a suspected security vulnerability, put SECURITY first in the subject line. Response targets by priority are set in the support terms that accompany your license.

What to send. The support bundle is one archive from the agent host that monitors the target, plus two lines from the OMS. On the agent host, as the agent’s operating-system user, with the two paths from emctl status agent:

Terminal window
emctl status agent > /tmp/agent-status.txt
tar czf /tmp/mysql-plugin-support-$(hostname).tgz /tmp/agent-status.txt \
<agent binaries>/plugins/ip.em.xmys.agent.plugin_*/logging \
<agent home>/sysman/log/gcagent.log

On the OMS host:

Terminal window
emcli list_plugins_on_server
emcli get_plugin_deployment_status -plugin=ip.em.xmys

Add the target’s Monitoring Readiness page (every check with its status, current value and required value), the MySQL version and edition, the metric group or console page involved, and what you expected to see. The plug-in log carries no passwords or license keys; look through anything else you add and replace a secret with <removed> before sending. Do not send keytabs or Kerberos tickets.


In short: the license gate explains most empty pages, a missing mysqlsh explains most unhappy ClusterSets, and a missing host credential explains Run EXPLAIN.

If you find something that is not on this page, send it to support (section 10); this page grows from what you report.