Diagnostic packages and support tickets
This page explains preparing diagnostic materials for technical support or incident handover, including issue descriptions, collection, redacted copies, and packaging. taosX does not automatically generate diagnostic packages. Keep on-site originals separate from external submission copies. Before submission, sample each file category and search for credentials.
Where to operate: taosExplorer task information, logs and configuration on actual execution hosts; run SQL in the taosExplorer Data Browser or taos CLI.
Distinguish confirmed impact from issues awaiting investigation and state each check's results.
1. Describe the issue
Describe expected behavior, actual symptoms, first occurrence time and time zone, affected tasks, and data scope. State the last known normal time, whether reproduction is continuous, and any preceding upgrade, configuration, node, network, or permission changes.
Distinguish confirmed missing data, lag, and duplicates from unverified impact. Instead of just “no data,” specify the target database, table, time range, and missing source record.
2. Prepare the diagnostic directory in order
- Follow the platform instructions below to choose a separate, access-controlled diagnostic directory outside task caches, checkpoints, and business backups. Replace paths and incident identifiers with actual values.
- Create an issue description recording failure time and time zone, task ID, current impact, and recent changes, then collect materials from the table below. Preserve logs and short-retention source evidence first rather than waiting for all materials to be ready.
- Collect materials for the same period separately from actual taosX, agent, and necessary source/target hosts. Include hosts and components in filenames to prevent same-name files from different nodes overwriting one another.
- Keep on-site recovery originals separate from external submission copies. After redacting external copies, package or upload them as required by support channels. Do not automatically upload all business data.
- Linux
- Windows
2.1 Prepare a diagnostic directory on Linux
Run these Bash commands on the Linux host organizing materials. The example uses the current operator's home directory and does not require changing permissions on taosX service directories:
diagnostic_root="$HOME/taosx-diagnostics"
(
umask 077
mkdir -p -- "$diagnostic_root/case-001"
)
ls -ld -- "$diagnostic_root" "$diagnostic_root/case-001"
Replace case-001 with the incident identifier. Use a newly created, separate directory for this incident, not an old ticket directory. umask 077 in the subshell makes newly created directories accessible only to the owning account, without affecting later commands in the current session or tightening existing directories. ls -ld checks ownership and permissions. If others can already access the directory, choose a suitable directory under host security procedures first. Do not directly change production configuration, log, or cache permissions.
This directory holds external submission copies. Store on-site originals in another controlled location. After copying or generating materials with an editor, also check each file's permissions and redaction; do not rely solely on the directory-creation umask. If service logs cannot be read, have an authorized administrator extract them. Collect only failure-window files rather than recursively copying all of /etc/taos or /var/lib/taos. See Logs and performance for log searches and Tuning and resource control for process and disk checks.
Run in PowerShell on the Windows host organizing materials. This example uses the current account's user directory. Replace case-001 with the incident identifier first:
$diagnosticRoot = Join-Path $env:USERPROFILE 'taosx-diagnostics'
$caseDir = Join-Path $diagnosticRoot 'case-001'
if (Test-Path -LiteralPath $caseDir) { throw '事件目录已存在 请使用新的事件编号' }
New-Item -ItemType Directory -Path $caseDir -ErrorAction Stop | Out-Null
Get-Acl -LiteralPath $caseDir | Format-List Owner,AccessToString
Check directory ownership and access lists. Only authorized personnel should read diagnostic materials. A compliant account home directory does not automatically prove its subdirectories meet organizational permission requirements. If permissions are too broad, have the host administrator choose a controlled location under security procedures. Do not change production log or cache permissions to collect evidence. Continue checking origins and redaction after saving files.
3. Collect necessary materials
| Material | Required contents |
|---|---|
| Versions and deployment | taosX, server, taosExplorer, agent, and plugin versions; operating system, deployment method, and service identity type |
| Topology and tasks | Source/target types, actual execution hosts, Xnode, agent, task and job IDs; connection directions involved in the failure |
| Status | Run SHOW XNODES, SHOW XNODE TASKS, and SHOW XNODE JOBS in the taosExplorer Data Browser or taos CLI, plus SHOW XNODE AGENTS when agents are used; retain relevant results and collection times |
| Logs | Find actual directories and rotated files using Logs and performance; collect continuous periods around errors covering taosX, relevant agents, and connectors, with target/source logs if necessary |
| Configuration | Relevant sections, redacted task definitions, parsing and mapping; note configuration change and process restart times |
| Metrics and resources | Save failure-window SQL results or Grafana charts using Logs and performance, including task/instance filters and run start; attach concurrent host resources and note missing monitoring |
| Data checks | Small redacted inputs, target queries and results, source count definitions, objects, and time boundaries |
| Recovery material information | Whether store-and-forward is enabled, cache directories and sizes, source retention, and backup/export times and versions |
Retain original error codes, log keywords, timestamps, field names, and data types for correlation. Use the same objects and time semantics for source history and target queries. For large files, prioritize a clear failure window and state where full materials are retained.
To inspect archive samples, use taosx archive from Logs and performance. This tool is not a one-command diagnostic package generator or data recovery command.
Use names such as the following so support can trace evidence from the issue description:
case-001/
issue.txt
versions.txt
topology.txt
task-status.txt
metrics/
logs/
config-redacted/
samples-redacted/
manifest.txt
This structure is a reference for manual organization. taosX does not automatically generate packages in this format. manifest.txt lists each file's source host, component, time range, time zone, and redaction status. For unattached large files, note their on-site location and size.
3.1 Alternatives when monitoring or archives are missing
If monitoring was not enabled beforehand, do not fabricate historical failure charts. Provide existing logs, task states, source/target samples, and current host resources, noting that collection occurred after the failure. If error archives are absent, state the policy, directory check results, and whether rotation may have occurred. No archive does not mean no failure. If necessary, reproduce under control in isolation or a small-scope task and collect additional evidence using the same definitions.
4. Redaction checks
For backup/restore failures, add the mechanism, initial and target points, relative file inventory, layout-marker presence, copy verification, restore target, and a few data differences. Do not attach complete backup chains by default. For TLS or DSN protection failures, add certificate validity, errors, and configured paths, not private keys. If parameter origins are unclear, record effective startup entry points and overrides using Configuration files. Do not send complete service environments externally.
After preserving on-site originals, create external submission copies. Check task export JSON, SQL output, DSNs, configuration, logs, screenshots, and samples. Replace passwords, tokens, authentication headers, and credentials inside connection strings. Agent query results may contain tokens; do not paste complete output directly.
Do not put certificate private keys, keytabs, or unredacted credential files in ordinary diagnostic packages. Retain relevant configuration key names and dependency types, replacing sensitive values with consistent placeholders. When redacting addresses, preserve the correspondence of the same host across materials. Use explainable redacted business samples that can reproduce type issues.
Do not remove task IDs, time zones, error codes, time units, or field types needed for correlation. Keep diagnostic copies separate from recovery originals so redaction does not damage subsequent recovery capability.
Before submission, open samples of each file category, search all text for password fields, token, Authorization, DSN usernames/passwords, and other sensitive content, then review manually. No search matches do not prove complete redaction. If the issue depends on specific business values, first agree on a secure channel and minimal sample with support. Do not upload entire archives, databases, or cache directories directly.
5. Support ticket template
问题:
预期行为与实际行为:
首次发生时间与时区/最近正常时间:
受影响任务、Xnode、代理及源目标:
各组件版本与操作系统:
数据影响范围及确认依据:
故障前的变更:
已执行的检查、操作及结果:
当前任务状态与完整错误:
复现步骤或最小样本:
附件清单及各自覆盖时段:
当前恢复条件(源端保留期、缓存、备份):
Submit through the actual support channel and provide a reachable on-site contact. Explicitly note deleted tasks, cleaned files, and irrecoverable logs to avoid mistaking missing evidence for a component having reported no errors.
Final checks before sending: attachments open, the failure period is covered, task/host correspondence is consistent, performed operations state results clearly, and sensitive information is handled. The following commands package only inspected submission copies. They do not automatically collect configuration, logs, or business files.
- Linux
- Windows
5.1 Package redacted submission copies on Linux
Confirm that case-001 above contains only inspected external submission copies, no symbolic links to original sensitive materials, and no private keys, keytabs, recovery originals, or active caches. Then package it with tar. The example output is outside the incident directory to avoid including the archive itself:
diagnostic_root="$HOME/taosx-diagnostics"
(
umask 077
tar -czf "$diagnostic_root/case-001.tar.gz" -C "$diagnostic_root" case-001
)
tar -tzf "$diagnostic_root/case-001.tar.gz"
-c creates an archive, -z uses gzip compression, and -f takes the output file. -C first changes to the materials' parent directory, so archived paths start with case-001/. The second tar command uses -t to list contents without extracting them. The example requires tar with gzip support. Existing same-name archives are overwritten; use a new incident name or filename when regenerating materials to preserve old results.
Submit only after creation and listing both succeed and contents match expectations. For permission, insufficient-space, or file-changed-during-read warnings, address material sources first; do not send incomplete packages. Listing does not replace opening file categories and reviewing redaction. Like ZIP, .tar.gz is not encrypted and still requires authorized transfer channels.
Run on the Windows host organizing materials. The incident directory from above must already exist and contain only redacted submission copies. Confirm no junctions or symbolic links point to original sensitive materials, then package in the same PowerShell session:
$packageFile = Join-Path $diagnosticRoot 'case-001.zip'
if (Test-Path -LiteralPath $packageFile) { throw '压缩包已存在 请使用新的文件名' }
Compress-Archive -LiteralPath $caseDir -DestinationPath $packageFile -ErrorAction Stop
Get-Item -LiteralPath $packageFile | Select-Object FullName,Length,LastWriteTime
Open the generated ZIP in File Explorer, check its incident directory and manifest.txt, and sample every file category for readability. Compress-Archive has limitations for hidden and large files. Compare every item with the manifest; archive existence alone does not establish completeness. If commands fail or the listing differs, preserve the original directory, adjust submission scope or use an organization-approved packaging tool, and do not deliver a partially generated archive.
Compression is not encryption. Whether using ZIP or .tar.gz, transfer through authorized channels and control access as required. Submit only after the manifest, actual files, and redaction results match.
6. Retain materials after submission
Retain on-site originals, diagnostic copies, submission times, subsequent operations, and every verification result. Add new changes to the timeline during handling to avoid mixing materials from different configurations and runs.
After resolving the issue, check affected periods and new data, and record the root cause, fix, unrecovered scope, and preventive measures. Confirm recovery and retention requirements before handling diagnostic files and temporary log settings.