Skip to main content

Troubleshooting by symptom

info

Start on-site troubleshooting with the first observed symptom. This page gives check orders for task failures, missing data, lag, agent disconnections, node changes, disk growth, and upgrade recovery. The “Do not do yet” column is as important as the check order. Deleting tasks, clearing recovery state, or increasing concurrency can destroy evidence before the cause is located.

Where to operate: taosExplorer task status, logs and configuration on the actual execution host; run SQL in the taosExplorer Data Browser or taos CLI.

Record the failure time, time zone, task ID, and failure reason first, then investigate by symptom. Test one hypothesis at a time and verify recovery with target data.

1. Choose a troubleshooting entry​

First symptomWhere to startDo not do yet
Task fails to start or keeps retrying“Task fails to start or repeatedly fails” below; obtain status and complete errors firstDo not delete tasks, clear recovery state, or repeatedly start
Authentication fails, all monitoring appears offline, or tasks stop after a password changeUse Update credentials after a database password change to distinguish clients, taosKeeper, the daemon, and task DSNsDo not infer that every process is offline from missing metrics or delete and recreate Xnodes to update credentials
Task runs but a known record is missing“Task runs but the target has no data” below; trace the same source record through each segmentDo not judge health from parsing previews or running status alone
Data arrives but slows increasinglyObtain task and resource metrics for the same window using Logs and performance, then use the lag checks belowDo not immediately increase every concurrency and queue setting
Agent offline or task fails after node changeCheck connections, dependencies, and files on the actual agent or new execution hostDo not use browser-host network tests as collection-host results
Files grow or disk space runs lowFirst identify whether directories hold logs, archives, or pending-send cachesDo not delete unidentified queues, checkpoints, or backup chains
Incomplete data after upgrade or recoverySave versions, objects, and time boundaries, then check upgrades and recoveryDo not repeatedly import over existing state or treat task exports as database backups
Concern about target effects even with TMQ delete options disabledFirst check Delete-propagation restrictions, have support confirm the exact version and supported plan, and preserve source/target evidenceDo not test deletion on business tables or treat disabling a switch, disabling concurrency, or changing write policies as reliable delete prevention

In every scenario, first run SHOW XNODES;, SHOW XNODE TASKS;, and SHOW XNODE JOBS; in the taosExplorer Data Browser or taos CLI. If an agent is used, also run SHOW XNODE AGENTS;. Record output times and compare task IDs, actual states, desired states, and reason. Keep results containing credentials on site and redact them before submission.

2. Task fails to start or repeatedly fails​

Compare SHOW XNODES, SHOW XNODE TASKS, and SHOW XNODE JOBS to distinguish unavailable nodes, tasks not running, and specific connection errors. If desired state is running but actual state is failed, inspect reason and logs for the same period.

Check plugins, licensing, service identity, certificates, source/target addresses, and ports on the actual execution host. For taosX-Agent collection, focus on the agent host. Files or source services accessible by an interactive user may not be accessible by the background service account.

If the failure follows a database password change, 0x80000357 may come from a connection still using the old password. The connection performing the change and Token connections are unaffected. Sign in with the new password, then update taosKeeper, xnoded, and saved task DSNs separately. If taosKeeper cannot write, log.* tables stop updating and the monitoring page may show every component offline or without data. That does not establish that all those processes exited. See Password Change Impact and Remediation for the full procedure.

If CREATE XNODE returns 0x8000802C after the password change, the supplied credential differs from the existing cluster credential and no node was created. Update it with ALTER XNODE SET USER ... PASS ... or ALTER XNODE SET TOKEN .... Running DROP XNODE and recreating the node does not clear or update its stored credential. After management authentication recovers, save each task connection again; signing in alone does not update them.

After fixing the issue, start the original task and verify a small sample. Do not delete and recreate it merely to clear an error state. DSN errors in dual-active tasks may change desired state to stopped; explicit startup is needed after correction.

Narrow the scope in this order:

  1. Node offline: check that node's service, actual listening address, and management connection. See Restarts, checkpoints, and store-and-forward for service checks.
  2. Node online but task failed: read reason and search complete logs by task ID and time on the actual execution host. See Logs and performance.
  3. Source connection or permission error: check networks, certificates, and read permissions from the actual collection host under the task's service identity. Port connectivity does not establish successful authentication.
  4. Target error: check the real target address, database, table structure, and create-table/write permissions in task configuration. Verify with a minimal sample before expanding source reads.
  5. Issue fixed and original task recovered: confirm that new failures no longer persist and known samples are ingested. Check recovery of old failed records separately.

3. Task runs but the target has no data​

Use Health assessment and missing-data investigation to collect evidence from source, reads, mapping, writes, and target queries segment by segment.

ScenarioFirst checksHow to confirm the fix
KafkaActual topic, consumer group, committed positions, starting-point settings, and whether new messages are sentA message with a known partition and identifier is queryable in the expected target table
OPC UAServer endpoints, trust, point IDs, read permissions, and collection modeA confirmed point change is queryable at the correct time and in the correct table
PI backfillPoints, start/end times, time zone, CSV modeling, and historical read permissionsHistorical records, values, and statuses for the same interval match PI
File importFile host, read permissions, format, read scope, and target mappingSamples and expected counts from the specified file are ingested
note

A successful parsing preview proves only that the sample can be parsed. It does not prove continuous reading or successful writes. Also check actual runtime configuration and target logs.

If the OPC UA source has no confirmed new values, no target row growth may be normal. Obtain source timestamps and values first, then trace the same record using the health investigation steps above.

4. Data lag or backlog keeps increasing​

Record source input, target processing, failure counts, resources, and pending-work trends for the same period. Eliminate persistent retries before deciding whether capacity, batches, or concurrency need changes.

If resource-pause logs appear, check whether budgets are below normal workloads. If unconsumed data is about to exceed source retention, prioritize preserving the recoverable range, reduce source load if necessary, and contact support. Do not manufacture zero backlog by clearing consumer positions or caches. See Tuning and resource control.

After recovery, confirm that historical backlog gradually subsides, new-data lag returns to normal, and the earliest unprocessed source data remains within retention.

Record input, processing, and failure increments for a fixed window and compare them with source backlog. Fix growing failures first. If errors are resolved but processing is still insufficient, check resources and target capacity. For intentional throttling, compare budgets. See Logs and performance for metrics and counting definitions, and Tuning and resource control for resource waits. Without data from the same window, collect evidence before declaring CPU, network, or database bottlenecks.

5. taosX-Agent offline or intermittently disconnected​

On the agent host, check the relevant service, connection addresses, network, and authentication. Correlate connections with taosX logs for the same period. Check writable agent disks, required plugins, and configuration compatibility with the version in use.

After the agent returns online, continue checking task recovery, cache replay, and target data. Reconnection alone does not guarantee backfill for data without store-and-forward or data not received during disconnection. Assess using Restarts, checkpoints, and store-and-forward.

On the agent host, first confirm that the process has not exited and the taosX address in startup configuration is correct, then test that address and port. The default gRPC port is 6055; substitute the actual custom port where applicable. Once reachable, check agent authentication and taosX logs for the same period. If only source collection fails while the agent connection is normal, investigate the source path instead of repeatedly changing agent authentication.

6. Task fails after a node change​

Check whether the new node can access the original source and target and has same-version plugins, dependencies, certificates, files, and directory permissions. Even with identical paths, check that actual file contents exist. If original-node caches have not moved, preserve original state first and plan recovery.

Once prerequisites are met, recover the original task or adjust execution location under the maintenance plan. Verify original time boundaries and new data. Successful scheduling does not mean recovery state from the original execution node migrated.

7. Unexpected times, table names, or fields​

Compare raw samples with actual parsing, filtering, and mapping configuration. Focus on time units, time zones, primary-key selection, tag values, dynamic table-name templates, and existing target structures.

Verify corrections with one sample or a short time range first. If structures or primary-key mapping have changed, plan backfill and old-data handling for the affected scope before expanding reruns. Writes with the same primary key may not increase row counts; compare values and tags, not only total rows.

8. Disk full or continuously growing archives/caches​

Identify the host, task, and directory type responsible for growth. Address downstream connection failures and persistent data errors first. Expand capacity and reduce input load if needed. Preserve failure-period materials before cleaning logs or diagnostic samples confirmed no longer needed.

Do not delete unverified persistent queues, checkpoints, or pending-write caches. Data in an archive directory does not mean all failed records were saved. After recovery, check free space, failure counts, and pending replay data against the failure window.

First save directory paths, task ownership, sizes, and growth periods, then gather read-only statistics using Tuning and resource control. For error archives, extract a few samples to investigate causes. For growing target-error caches, restore target connectivity and writes first. Even when space must be freed, prioritize only materials confirmed safe to remove; deleting pending-send caches is not disk repair. If space cannot support continued collection, have the responsible person approve load reduction or pause scope and record the potentially affected data window.

9. Tasks missing or unable to recover after upgrade​

For upgrades from versions earlier than v3.4, check whether tasks were exported from the old environment and imported into the new one. Upgrades do not automatically move old tasks. Imported tasks also need startup. See Upgrade, rollback, and verification.

If backup or task export files exist, confirm their version, purpose, and coverage first. Importing task configuration does not restore business databases, and backup completion does not mean a database has been restored. If recovery scope is unclear, required files are missing, or version compatibility is unconfirmed, preserve the scene and submit Diagnostic packages and support tickets. Do not repeatedly overwrite existing data.

If the symptom is “backup succeeded but the target has no data,” distinguish between backup files merely generated, restore executed into another database, restore errors, and restore scope excluding the object. Record backup paths, backup points, restore commands or tasks, target databases, and complete errors. Check target structures and samples for the specified period first. Do not repeatedly restore into existing business databases before confirming the mechanism and overwrite risks.

Continue in this order:

  1. Use Backup and restore to identify taosX incremental backup, per-table backup, taosdump, or cluster full backup. Do not interchange restore tools.
  2. For taosX incremental restore, follow Data backup and restore in the operations guide to check the initial-to-target point range, hidden layout markers, file inventories, copy verification, and precreated target databases. For per-table backups, check schema.meta, schema.meta.1, every data file, and successful/failed table summaries. If .z files exist but the final structure file is missing, confirm backup completion first; do not fabricate layout markers to force replay.
  3. If logs show no files processed, check the execution host, paths, and layout first. If files are processed but table creation fails, check target permissions. If tables exist without records, check backup objects, business windows, and target DSNs. Some restore errors may be logged and skipped; task completion and successful exit do not prove completeness or guarantee failed-data archiving. Check each item against Data backup and restore, not only whether the task failed.
  4. Query real target tables and windows according to verification requirements in Backup and restore. Retain first, last, and intermediate samples. Preserve unexplained differences before taking further action; do not repeatedly overwrite the target.

10. When to submit a support ticket​

If the same issue keeps recurring, data is missing beyond the recoverable range, positions or execution-host recovery state are damaged, dual-active deletion keeps failing, or recovery materials require changes with uncertain consequences, stop expanding the operation scope. Submit symptoms, completed checks, and data impact. Prepare materials according to Diagnostic packages and support tickets.