FAQ
Failed installs and upgrades, console access and sign-in, sites and certificates, false positives, crawlers classed as fake, multi-node, and licences and host fingerprints. Causes and fixes by symptom.
Errors from the install and upgrade scripts start with [rstwaf] ERROR:. To read service logs, run docker compose --project-directory /opt/rstwaf logs.
Installation and upgrade
Installation reports preflight check(s) failed
Preflight checks failed, and the script printed the reasons above: architecture does not match the package, Docker Engine older than 20.10 (docker not found), Compose plugin older than 2.24 (docker compose v2 plugin not found), not enough memory or disk, or a port in use. Docker from the Kylin, UOS and openEuler 22.03 repositories is too old; use Docker's official static binaries instead. See Requirements and network.
Installation reports signature check FAILED or checksum check FAILED
The package does not match the release public key, or a file was damaged in transfer. Transfer the package again and make sure the key came through an independent channel. Do not bypass the check.
Installation reports run as root
Run with sudo. To install as a member of the docker group, set RSTWAF_ALLOW_NONROOT=1 and make that user the owner of the install directory.
Installation reports already installed
The product is already installed on this host. Upgrade with /opt/rstwaf/upgrade.sh, or run uninstall.sh --yes --keep-data before reinstalling.
Installation reports RSTWAF did not become healthy
The services started but did not pass the health check. Run docker compose --project-directory /opt/rstwaf logs to find out why. On slow hosts, add --health-timeout to wait longer. On hosts with SELinux, if the logs show permission denied, allow the configuration directories under your security policy.
Upgrade reports package serial … is not newer than installed
The new package's serial is not higher than the installed version, so the script refuses to downgrade. Check the package version. If you really need to downgrade, add --allow-downgrade.
Upgrade reports upgrade failed; rolled back
A step failed, and the upgrade rolled back to the old version, which passed its health check. The backup is kept in the directory shown, and the service is running. Check the earlier error messages, fix the cause and upgrade again. If the message says the rollback is unhealthy (rolled back to … but it is unhealthy), keep the backup directory and contact support.
Online updates show no new version
- Online updates are off by default; turn them on under Settings > Online updates.
- In offline mode only an internal mirror is reachable. The vendor channel needs Allow internet update source ticked.
- With a licence, you can only upgrade to versions released before your maintenance end date.
- Software upgrades are announced, never installed automatically. An administrator must download and confirm them.
Console
The console does not open
By default the console listens on 127.0.0.1:9443 only. From another computer, use an SSH tunnel or change RSTWAF_CONSOLE_BIND; see Console access.
The console says this IP is not allowed
The console IP allow list does not include your IP. Ask another administrator who can reach the console to change the list under Settings > Security. If nobody can, set RSTWAF_CONSOLE_ALLOWLIST=off in .env and run docker compose up -d to disable the list temporarily.
An account is locked
After too many consecutive failed sign-ins (5 by default), the account is locked for a while (15 minutes by default). Wait and try again, or ask an administrator to unlock it under Account management. After 5 failures from the same IP, that IP must wait 15 minutes.
An administrator password is forgotten
Another administrator can reset it under Account management. If the only super administrator has forgotten the password, contact support.
Behind a reverse proxy, sign-in limits and the IP allow list behave oddly
RSTWAF_CONSOLE_TRUSTED_PROXIES is not set, so the console sees everyone as the proxy's address. Set the proxy addresses and RSTWAF_COOKIE_SECURE=1.
Sites and traffic
A site returns 502
The upstream cannot be reached. From the WAF host, curl the upstream address and check the address, port and firewall. If a site with identity authentication returns 502, check that nodes can reach ports 9445 and 9446 on the control plane and that the control plane is running.
A site returns 503 with Retry-After
The node is overloaded and rejecting requests quickly. The overview and nodes pages show an overload notice. If the back end is slow and fully loaded, raise RSTWAF_OVERLOAD_MAX_INFLIGHT. If overload persists, add nodes; see Requirements and network.
Every security event shows the same source IP
There is a CDN, load balancer or reverse proxy in front of the site, but no trusted proxies are configured. Set trusted proxies and client IP headers under Sites and nodes > Global configuration, or turn on PROXY protocol.
Automatic certificates are unavailable
Automatic issuance and DNS validation need outbound access and are unavailable in offline deployments. Upload certificates under Settings > Certificates.
False positives
Legitimate requests are blocked
- Ask the user for the event ID on the block page and look it up under Monitoring > Investigate to see which layer blocked it.
- In the event details, select Allow false positive, or use Handle false positive / allow to choose a method by what you want to allow.
- Allow rules enter shadow mode first. Activate them once no likely attacks show up.
See Tuning.
False positives increase after a rule bundle update
The false-positive safety valve rolls back automatically within the observation window and raises an alert (规则更新已自动回滚). You can also roll back by hand to the previously active version under rule bundle versions on Rules and policies.
Baidu, Bing and other crawlers are classed as fake
Internal DNS returns NXDOMAIN for reverse lookups of external addresses while verified crawler reverse DNS is set to auto. Under Access and CC protection > Challenges, set verified crawler reverse DNS to Off.
Multi-node
A node fails to join
--join: not a join token: the token is malformed. Tokens start withrstj1_.--join needs --node-env FILE: include the credentials file created bynode-creds.shon the control plane.the node did not join: the token has expired or been used, or the node cannot reach port 9444 on the control plane. Rundocker compose --project-directory /opt/rstwaf logs agentto find out why. The connectivity check in the join node dialog can confirm the network first.
A node shows configuration out of sync or failed to apply
The node rolls back to the last good configuration on its own, and the error appears on the nodes page. Fix the error, then select Resync.
Licence
No host fingerprint
The host has no /etc/machine-id. Run:
sudo systemd-machine-id-setup # without systemd: sudo sh -c 'dbus-uuidgen > /etc/machine-id'
sudo sed -i 's#^RSTWAF_HOST_MACHINE_ID=.*#RSTWAF_HOST_MACHINE_ID=/etc/machine-id#' /opt/rstwaf/.env
cd /opt/rstwaf && sudo docker compose up -d controlplaneImporting a licence says it is bound to another host
A licence is valid only on the control plane that created the activation request. Moving to another host, reinstalling with the data volumes cleared, or cloned virtual machines sharing a machine-id all change the fingerprint. Create a new activation request and request a licence.
The console says configuration changes are paused
The licence has passed its grace period, been revoked, the system clock was set back, or an online licence has not reached the licence server for too long. Detection and blocking are not affected. Import a renewed licence, or correct the system clock. See Licence.
Saving says the licence does not include a feature
The feature needs a higher edition or an add-on; see Editions.
Integrations
Certificate management, alert channels and rules, system alerts, Kafka log export, CrowdSec CTI and AlienVault OTX, the LLM connection, the open API and tokens, and the outbound connections list.
Error codes
Console and open API error codes, licence import errors, the status codes and JSON responses the data plane returns to clients in each protection scenario, and exit codes of the install and upgrade scripts.