Skip to content

FAQ ​

Account & Login ​

Forgot Password? ​

Method 1: Contact admin to set a new password

The admin goes to "System" → "Users", edits the user and sets a new password.

Method 2: Use deployment script to reset admin password

bash
cd testnet-deploy
./testnet.sh reset-password
# Password after reset is Admin@123456 (fixed for dev/testing; production installs generate a random password at install time)

Account Disabled? ​

Contact the system admin to re-enable your account in "User Management".


Workflows & Tasks ​

Task remains in PENDING state after workflow execution ​

Possible Cause 1: No online scanning nodes

  • Check the "Scanning Nodes" list to confirm there are 🟢 online nodes
  • If there are no nodes, you need to deploy a scanning probe first

Possible Cause 2: The node's tool whitelist excludes the tool

  • Open "Scanning Nodes" → "Configure" to review the node's tool whitelist (empty means unrestricted)
  • Add the tool to the whitelist, or clear the whitelist

How to troubleshoot workflow execution failures? ​

  1. Go to the "Run Center" and find the failed task
  2. Click "Logs" to view detailed error information
  3. Common errors:
    • Docker image not found: Tool Docker image not pulled, check node network
    • Input asset is empty: Input asset is empty, check if upstream nodes have output
    • Timeout: Execution timeout, increase timeout in workflow node configuration

How to retry a failed task? ​

Find the failed task in the "Task List" and click "Re-run" to execute it again.

How do I cancel a running task? ​

In the "Run Center", click "Cancel Task" in the task row actions. The task is immediately marked CANCELLED and pending tasks are no longer dispatched; tasks already running on a node are not terminated in real time — their containers/subprocesses wind down when the task times out.

How do I tune scan concurrency and pacing? ​

  • Node concurrency: set task.max_concurrent in the node's config.yaml (default 3), push it via the server-side node configuration, or override temporarily with the TESTNET_MAX_CONCURRENT environment variable.
  • HTTP probing pace: http.rate_limit_enabled and http.host_min_interval (default 10s) control the request interval against the same host, protecting fragile targets.
  • Batch task limits: testnet_task batch dispatch is jointly bounded by the number of online nodes and their concurrency caps — no manual splitting needed.

Why does a workflow run end as PARTIAL (partially successful)? ​

PARTIAL means the workflow finished, but some nodes failed or were skipped. This is common in workflows configured with errorStrategy: CONTINUE/SKIP_NODE, where one node's failure doesn't halt the remaining branches. What to do:

  • In "Run Center → Workflow Records", expand the run to locate the failed node and inspect its task logs;
  • If the failed node doesn't matter for the conclusion, leave it as is; if it feeds downstream, fix it and re-run just that branch;
  • The default policy is STOP (any node failure fails the whole run); "best-effort" inspection workflows can set CONTINUE explicitly — see the DSL Reference.

The node is online — why isn't it receiving tasks? ​

Check in this order:

  1. Tool whitelist mismatch: the task's tool is not on that node's whitelist — the dispatcher only assigns whitelisted tools to it. Verify under "Scanning Nodes" → "Configure" (empty means unrestricted).
  2. Concurrency full: the node already runs max_concurrent tasks; new ones wait for other nodes or idle capacity.
  3. Forced upgrade in progress: nodes below the minimum required version pause pulling new tasks during a forced upgrade and resume afterwards.
  4. Long-poll window: dispatch may lag by up to one long-poll cycle (poll_timeout, default 30s) — normal behavior.

How do nodes get upgraded? Why can't Docker nodes self-update? ​

Binary-deployed nodes support one-click "Dispatch Upgrade" from the console (select nodes → confirm in the drawer); each node downloads, verifies, and restarts in place while idle. Policies and the minimum version are covered in Node Online Self-Upgrade. Docker container nodes cannot self-update — replacing the binary inside a container is lost on rebuild — so the console skips them automatically; upgrade them together with the images.

A node keeps showing "Upgrade failed" after dispatch ​

  • Check the failure reason on the node card (lastUpgradeError is reported to the console)
  • On self-signed HTTPS deployments make sure server.tls.insecure_skip_verify: true on the node, otherwise the package download fails certificate verification (recent releases inherit the TLS policy for upgrade requests automatically)
  • Unavailable checksums make the upgrade skip intentionally (fail-closed) — the binary is never overwritten without verification; re-dispatch after fixing the download path

How do I use the MCP changedSince cursor? ​

testnet_vuln, testnet_asset, testnet_task, and the traffic-record search list_records all accept an ISO8601 changedSince argument: after a first full pull, remember the current timestamp and pass it in the next round to fetch only new/changed data — ideal for periodic reconciliation in long sessions without full re-scans.

How do I restrict certain nodes to specific tools only? ​

Configure a node tool whitelist: open "Scanning Nodes" → "Configure" and pick the allowed tools under "Tool Execution Whitelist" (empty means unrestricted). Once saved, the node only pulls tasks for whitelisted tools — see Node Tool Whitelist.


Asset Management ​

Excel import failed? ​

  1. Download the latest import template (list page "Import" → "Download Template")
  2. Check if required fields are filled (fields marked with *)
  3. Check if data format meets specifications (e.g., IP address format)
  4. File size must not exceed 20MB

Assets blocked by rules? ​

Asset rules can configure validation rules. Assets that do not meet the conditions will be rejected (BLOCKED).

  • View blocked records in the import results
  • Go to "Asset Config" → "Access Rules" to check currently active rules
  • Modify rules or adjust data and re-import

Too many items selected during batch operation? ​

Click "Clear Selection" in the batch operation bar to clear current selection, or refresh the page to reset state.


Search Engine ​

API Key test failed after configuration ​

  • Check if the Key is correct (no extra spaces)
  • Check if the Key has expired or been banned
  • Check if the server can access the corresponding engine's API (network connectivity)

Search results are empty ​

  • Try simplifying the search syntax to rule out syntax errors
  • Some engine free accounts have query limits, try reducing the result count
  • Check if API quota has been exhausted

System & Permissions ​

Contact admin to check your role permission configuration:

  1. Go to "Role Management"
  2. Find your role
  3. Confirm that the view permission for the corresponding module is enabled

WebSocket connection disconnected, notifications cannot be received in real-time ​

  • Check if network connection is stable
  • Refresh the page to re-establish WebSocket connection
  • If using a reverse proxy, check if the proxy configuration supports WebSocket long connections

AI & MCP ​

Where do I get the MCP API Key? ​

Sign in and open "AI" → "MCP Access" to view and copy the API Key; for setup steps see Claude / Cursor Setup. In production, configure a dedicated key via the TESTNET_MCP_API_KEY environment variable.

How do I rotate the MCP API Key? ​

  1. Change TESTNET_MCP_API_KEY in the deployment .env to a new long random secret (never reuse the dev default)
  2. Restart the server (./testnet.sh restart) — the old key becomes invalid immediately
  3. Update the Authorization header in every AI client config (Claude Code / Cursor, etc.)
  4. The dev default default-mcp-api-key-for-dev-environment is for local development only — always override it in production

Static API Key vs user JWT — what's the difference? ​

The static API Key never expires and is designed for long-lived agent access; on success it injects the mcp-agent system identity (the least-privilege set mcp:view + mcp:execute). A user JWT expires after 24 hours and requires an account with mcp:view / mcp:execute — better suited to short-lived human debugging.


Performance & Stability ​

System response is slow ​

  • Check server CPU/memory usage
  • Check if PostgreSQL connection count has reached the limit
  • Temporary slowdown may occur during high concurrent task execution, wait a moment

Task logs cannot load ​

  • Logs for running tasks load via incremental polling on the page; check your network connection and refresh
  • When tasks are completed, logs are loaded from the database, confirm the task was actually executed

Deployment & Environment Troubleshooting ​

Docker File Descriptor Limit Error (out of memory / ulimit) ​

Symptom:

When running high-concurrency scan tasks or starting Docker containers on Linux distributions (such as Kali Linux, Debian, or older CentOS releases), you encounter:

text
library initialization failed - unable to allocate file descriptor table - out of memory

Solution:

  1. Edit the system's docker.service configuration file:
    bash
    sudo vim /usr/lib/systemd/system/docker.service
  2. Append --default-ulimit nofile=65536:65536 to the ExecStart=/usr/bin/dockerd line:
    text
    ExecStart=/usr/bin/dockerd --default-ulimit nofile=65536:65536
  3. Reload systemd daemon and restart Docker:
    bash
    sudo systemctl daemon-reload
    sudo systemctl restart docker

DNS Resolution Failure Inside Docker Containers ​

Symptom:

Scan probe nodes report network errors when pulling dependencies or resolving target domains:

text
Temporary failure resolving 'mirrors.aliyun.com'

Solution:

  1. Configure global DNS resolvers in Docker's daemon configuration:
    bash
    sudo mkdir -p /etc/docker
    sudo vim /etc/docker/daemon.json
  2. Add reliable public DNS servers:
    json
    {
      "dns": ["223.5.5.5", "114.114.114.114", "8.8.8.8"]
    }
  3. Restart Docker service:
    bash
    sudo systemctl restart docker

Permission Denied When Mounting Docker Sock or Volumes ​

Symptom:

Probe nodes fail to launch scanner containers when mounting /var/run/docker.sock or local data volumes, throwing Permission denied.

Solution:

  • Temporarily disable: Run sudo setenforce 0
  • Permanently disable: Edit /etc/selinux/config and set SELINUX=disabled, then reboot the host.
  • Volume Policy (Recommended): Append :z or :Z flags to the volume mount path (e.g., -v /var/run/docker.sock:/var/run/docker.sock:z).

Slow Dependency Downloads in Restricted Networks ​

Symptom:

Dependencies (e.g., Python pip packages or GitHub repository artifacts) time out during online probe setup.

Solution:

  1. PyPI Mirror: Add domestic mirror flags to your Python dependency installation:
    bash
    pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
  2. GitHub Acceleration: Prepend acceleration proxy URLs (e.g., https://gh-proxy.com/) in node tool configurations or environment variables.

Local Proxy fake-IP Pollutes DNS Conclusions ​

Symptom:

When the admin/test machine runs a TUN-mode proxy (e.g. Clash/Surge fake-IP mode), local nslookup / dig / ping commands return fake IPs from the 198.18.0.0/16 range for any domain. Any DNS-based conclusion ("subdomain is alive", "resolution anomaly", etc.) drawn from local output is invalid, and fake IPs may even be mistakenly registered into the asset inventory.

Solution:

  1. Trust platform probes for DNS conclusions: all resolution and liveness conclusions must come from TestNet probe nodes or the testnet_http relay (probes use their own DNS stack inside the container and bypass the local proxy). Never trust direct local probing results.
  2. Verify local pollution: nslookup example.com returning 198.18.x.x indicates fake-IP pollution.
  3. If local verification is required: disable the proxy's TUN mode or add the target domain to the proxy's fake-ip-filter exclusion list, then retry.

Manual Debugging & Diagnostic Steps for Failed Scan Tasks ​

If a scan task fails on a probe node and UI logs are insufficient, follow these 5 diagnostic steps:

  1. Extract Command: Go to the "Run Center", view task logs, and copy the exact executed command.
  2. Access Probe Container: Access the probe client container on the host server:
    bash
    docker exec -it testnet-client /bin/bash
  3. Execute Manually: Paste and execute the copied tool command directly inside the container to inspect raw stdout and stderr output.
  4. Fix Dependencies:
    • For binary permission errors, execute chmod +x <tool>.
    • For missing Python / Go dependencies, run pip install or adjust environment variables.
  5. Re-verify: Ensure the command exits with code 0 inside the container, then click "Re-run" in the web console.

Contact Support ​

If the above content cannot resolve your issue, please:

  1. Check the Deployment Guide to confirm correct installation configuration
  2. Collect server logs (docker logs testnet-server)
  3. Contact platform admin or submit an Issue
最近更新

Released under the MIT License