Skip to content

Troubleshooting ​

The console does not open or sign-in fails ​

  • Open http://127.0.0.1:9650/ on the gateway host, adjusting the address for your deployment. Check that the server is running and listening on the management port.
  • If Nginx returns 502, check the configured upstream. For the management socket, verify that /run/xigexb-tunnel/admin.sock exists, that the containers share its directory, and that the Nginx worker can connect. For a TCP upstream, verify that Nginx can reach the gateway on 9650/TCP and that the upstream uses HTTP. For a browser certificate warning, inspect the certificate chain Nginx serves and the hostname used to reach it. HTTPS reverse proxy
  • If Nginx uses the management socket and the console returns 400, check that Nginx overwrites X-Real-IP with $remote_addr. Tunnel requires a single valid IP in this mode. TCP management requests use the connection peer IP. Management request addresses
  • On first install, use the configured initial password to sign in as admin. A gateway with existing accounts reads the saved password from the database. A regular user can sign in only when both the account and the user role are enabled. Accounts and permissions
  • If an authenticator code fails, check the clock on the authenticator device and the server, then try a fresh code in the next time step. If the authenticator is lost, sign in with your password and an unused recovery code. Select the two-factor reset option to enroll a new authenticator afterward. If an administrator just reset a regular user's password, first complete authentication, then replace the temporary password when prompted. Two-factor authentication
  • If you cannot access a resource, check resource ownership and the relevant operation grant. A system administrator can open Security → Security Management → IP Bans → Ban Rules and use Test to find active rules for a source IP. Check IP Ban Records for bans on individual addresses. Login IP bans
  • If live updates stop, check /api/v1/events and /api/v1/clients/{client}/logs/events. Disable proxy response buffering and forward Last-Event-ID.

A client cannot connect ​

Use the running instance's config file to check status or validate the config offline.

sh
client --config ./client.yml status
client --config ./client.yml verify
  • If first enrollment fails, verify the enrollment key for the device, check that the hostname or IP in web_endpoint is in the gateway certificate's SAN, and confirm that the client can reach the UDP listener directly, on 9650/UDP by default. For root enrollment, check the provisioned ML-DSA-87 public root certificate. For ZIP deployments, check all three PEM files, certificate validity, and either the CA in web_ca or the default tunnel-ca.pem. Accessing the Nginx HTTPS site in a browser only verifies the browser endpoint. Enrollment settings
  • If TLS fails after switching cryptographic suites, confirm that both binaries and templates come from the same source revision. The current suite requires TLS 1.3, ML-DSA-87 certificates, pure MLKEM1024 key exchange, and TLS_AES_256_GCM_SHA384. Keep earlier identity material with the original deployment and generate new material for a fresh installation. Fresh installation
  • If a client disconnects after Tunnel CA rotation, obtain the administrator-verified public trust material and update the configured root, web_ca, or tunnel-ca.pem as applicable. Tunnel CA rotation
  • With root-based enrollment, the first certificate may expire before the control connection confirms it. Once HTTP/3 is reachable again, restart the client with its original data directory and enrollment key. The client proves possession of the original key and requests a replacement after the gateway confirms that the first candidate expired.
  • For an offline client with an existing identity, check its data directory, certificate expiry, and control endpoint. The default control port is 9651/TCP.
  • For MQTT, confirm that the client's assigned relay under Resources → MQTT Relays (资源 → 中继 MQTT) is enabled. Check the broker address, TLS certificates, credentials, and topic ACLs, then verify the deployment ZIP's app.yml. If the broker requires mutual TLS, also check the certificates and private keys that the Tunnel server and client use to connect to it. MQTT setup
  • If the running client holds its log directory open, give the separate verify command a different --log-path. Client configuration

If the certificate has expired, check phase in the output of status. In recovering_identity, the direct client is retrying HTTP/3 enrollment with the deployment root. In identity_expired, have an administrator issue a recovery ZIP for the same device, then update the certificate for its existing access method and reload the client. Recover an expired device certificate

MQTT relay runtime status ​

Under Resources → MQTT Relays, check the last failure stage and timestamp. For a broker connection failure, check the address, port, CA, and credentials. For bootstrap subscription or session topic failures, compare the ACLs for both peers with the deployment ZIP’s mqtt-topics.txt. For a device TLS or authorization failure, check the Tunnel CA, device certificate, Tunnel TLS server name, and device access status. After reconnecting, check the latest successful connection time and online device count. MQTT setup

A mapping is pending or the target is unreachable ​

  1. If a mapping stays pending, check whether the provider is online and look for its acknowledgment in Configuration History.
  2. If saving a business listener fails, open Resources → Port Resources, select Test for that port, and check the TCP or UDP result. In use means a mapping has been assigned the port or Tunnel is listening. Occupied means binding the corresponding address and protocol failed. If a visitor listener fails to save, check whether source client A is online, supports port reservation, and can bind the requested address and port.
  3. Check the gateway listener, firewall, published container ports, and work relay. Check Host or SNI for domain routes and the exact path for WebSocket. For private access, connect to the address that source client A is listening on.
  4. Connect to the target from the provider. 127.0.0.1 is the provider's own loopback. Check Client Logs and Runtime Status → Proxy Diagnostics for the failure stage.
  5. If XTCP keeps relaying, check that both clients can reach the advertised UDP probe. If the probe succeeds but the QUIC handshake fails, check NAT and the UDP path on both sides. You can configure an additional STUN service on both clients and retry. XTCP direct connections

If a connection exists but traffic is unexpected, open Tunnel Mappings → Active Links and locate it by mapping path and source address. Check both directions of the link-specific limit alongside the mapping and provider bandwidth settings. Direct XTCP traffic updates when the visitor reports a sample. Use the sample timestamp when interpreting current speeds. Active links

A hook denies access or a plugin configuration is pending ​

  • For a public HTTP route returning 403, check access grants, security groups, and denial decisions from the Access hook. For 503, check the gateway's operation history for a hook timeout, exhausted concurrency limit, unreachable loopback service, or invalid response. For 502, check the work relay and provider target. Server hook implementation
  • If registration policy rejects a mapping change, verify that the loopback service in new_proxy_hook handles POST /api/v1/hooks/new-proxy and returns a valid JSON decision. For public HTTP route annotations, use the permitted x-tunnel-hook-* fields. Hook settings
  • If a client plugin is unavailable, compare the desired and applied revisions in the client details. Check client logs, the provider's loopback listener, the mapping target, and permissions on plugin files. For a virtual network, also check both TUN interfaces, the visitor's STCP grant, and the peer host route. Virtual network verification

GeoX fails to update or a rule does not match ​

  1. Under Security → GeoX Data (安全 → GeoX 数据), check whether GeoX is enabled and review the last successful update time and any error shown. Save the settings, then select Update Now. The country and ASN data may be unavailable until the first successful update. Updates and data recovery
  2. A custom download URL must be reachable from the gateway or selected proxy, use public HTTPS, and return the expected file type. If you use a proxy, check its address, credentials, expiry, and fallback chain. Test Connection and Quality Check use fixed official sources. Use the GeoX update result to validate a custom URL. Proxy configuration
  3. Check the source IP observed by the gateway and which rules are enabled. GEOIP,!CN matches known locations outside mainland China. An address with no geographic classification does not match that rule. Security groups

The gateway starts but is not ready ​

For Docker Compose, run docker compose logs --tail 100 server first. If you mounted a separate server log directory, also check its server.log. Review the configuration, database, certificates, and port conflicts.

If metrics are enabled, use the actual loopback HTTP listener. A non-loopback listener requires HTTPS and the probe client must support the gateway’s TLS suite. Metrics TLS and scraping

sh
curl --fail --show-error http://127.0.0.1:9100/healthz
curl --fail --show-error http://127.0.0.1:9100/readyz

/healthz confirms the metrics listener is up. /readyz checks the database connection. If it returns HTTP 503, check the database process, connection address, and credentials. Health probes

A backup or restore fails ​

  • If a backup or restore job fails, check the server logs, verify exclusive database access and a separate writable backup directory, and check the native tools for the configured database. Backup requirements and tools
  • If the connection drops during an in-place restore, reopen Backup after the gateway returns and check the final job status. For a failed restore, inspect the server logs and verify the archive's database engine, size, and integrity. Restore the deployment
  • If the S3 connection test fails, check the endpoint, bucket, region, access credentials, and addressing mode. Existing archives use the S3 configuration recorded with each backup. Storage settings

Collect runtime information ​

Record the version, operating system, protocol, timestamp, and client or mapping ID. Copy a record from Client Logs or download JSONL. Remove keys, tokens, private keys, database connection strings, and sensitive addresses before sharing. Report an issue · Report a security issue