Chapter 10 — Troubleshooting

Last Updated: 2026-11-30 14:51 Views: 12

10.1 Basic checks

wxserver -t -c /etc/wxserver/wxserver.toml
wxserver --service status -c /etc/wxserver/wxserver.toml
tail -n 100 /var/log/wxserver/error.log

The dashboard or GET /api/status confirms version, PID, uptime and config path. Most startup problems show in the first lines of error.log.

10.2 Common issues

Symptom Common cause Action
Startup fails with address already in use Port taken or duplicate instance ss -lntp to find it; stop the old process or change listen
config test failed TOML syntax, unknown key, include escape Fix the reported file/key; includes must be relative .toml
Console returns 403 Source not in allow_cidr Add the CIDR, or use an SSH tunnel
Login keeps failing Wrong password, TOTP, failure block Check manager-login.log; use --reset-password / --reset-totp if needed
Site returns 404 Wrong root/index, unmatched Host Check domains, catch-all site, file permissions
413 Body exceeds client_max_body_size Raise the http or location limit and reload
502⁄504 Backend down or timeout Check upstream address and health check; tune proxy_*_timeout_sec
TLS handshake fails Expired certificate, name or key mismatch openssl s_client -connect host:443 -servername domain
ACME issuance fails Port 80 unreachable, DNS credentials or propagation timeout Try staging = true; check TXT records and error.log
WAF false positive A CRS rule matched Exclude by waf_rule in waf.log, or disable WAF for that location
External module fails to load ABI/manifest validation or missing dependency Rebuild with the same toolchain via cargo build --release, then reload; check manifest errors in the startup log
Worker cannot write logs or read site Wrong ownership/permissions Give logs to the worker user; make site files readable

10.3 Reporting a problem

When filing an issue, include the WxServer version, the startup command, the configuration path, the relevant error.log excerpts, a reproducing request (curl -v) and the TLS output. Redact domains, tokens, certificate private keys and client addresses from access logs first.

← Previous Article Chapter 9 — Configuration Reference Next Article → No next article

Comments

No comments yet