Appearance
Starting and processes
Symptoms seen when installing, starting or restarting the Spalto service and its data plane.
Package install: waap setup says the service does not answer
- Symptom:
waap setup(or anywaapadmin command) prints "the service does not answer on ..." or "contacting the control plane". - Cause: the service is not running (the package installs but does not start it), it failed to start, or the command ran without the privileges to read
/run/waap(mode 0700, ownerwaap). - Check:
systemctl status waap,journalctl -u waap -n 30,ls -ld /run/waap. - Fix:
sudo systemctl enable --now waap, thensudo waap setup. Usesudofor admin commands, or setWAAP_RUNTIME_DIR.
Package install: the service fails to start
- Symptom:
systemctl start waapfails or restarts in a loop. - Cause: (1)
error while loading shared libraries: libre2.so.N: the RE2 package is missing (apt install libre2-11ordnf install re2, EPEL on RHEL), or the package was built for another distribution family (a.rpmbuilt on Ubuntu needslibre2.so.11, which RHEL 9 does not ship). Packages frommake packagesdeclare the exact library and refuse to install instead. (2)GLIBC_2.xx not foundorundefined symbolin RE2: the package was built on a newer distribution than this one; use the package for this family (the.rpmis built on Rocky Linux 9) or build on this distribution. (3) a listener port is taken (address already in use), for example port 80 used by another web server. (4)invalid configurationin the journal:/etc/waap/waap.yamlwas edited wrongly. - Check:
journalctl -u waap -n 30,ldd /usr/bin/waap | grep "not found",ss -ltnp,waap validate -config /etc/waap/waap.yaml. - Fix: install the missing package, free or change the port in the listener, or restore the file (
dpkg -ithe package again with--force-confmiss, or copy from the package's example). A low port needs the packaged unit, which grantsCAP_NET_BIND_SERVICE.
Package install: waap setup refuses
- Symptom: "an administrator (admin) already exists".
- Cause: setup already ran, or the data directory was restored from a backup.
- Check: the administrator accounts are listed in the console, on the Accounts page.
- Fix: to reset a password use
sudo waap admin password -user admin. To start over, purge the package (apt purge waapdeletes all data) or stop the service and delete/var/lib/waap.
Package install: low ports or virtual addresses fail
- Symptom: high availability cannot add the virtual address ("operation not permitted").
- Cause: the unit grants only
CAP_NET_BIND_SERVICE. - Check:
systemctl cat waapshows the capabilities the unit grants. - Fix: add
CAP_NET_ADMINin a systemd drop-in, then restart the service. See Failover and the virtual address.
Envoy version mismatch (tarball or source run)
- Symptom:
make check-envoysaysneed Envoy X, have: ..., or Envoy rejects the pushed configuration with unknown-field or unknown-extension errors in the control log. - Cause: the product is tested against one pinned Envoy release. A system Envoy of another version was found first. Packages and images never have this: they carry the pinned build in
/usr/lib/waap/envoyand always start that one. - Check:
$ENVOY_BIN --versionagainst the pin in theMakefile(ENVOY_VERSION). - Fix: point
ENVOY_BIN(or the unit'sExecStart) at the pinned release, or install the package.
Go build or race link fails: "ld: write() failed, errno=28"
- Symptom:
make racefails while linking, with errno 28 or "no space left on device". - Cause: the build cache and concurrent test binaries exhausted local disk space.
- Check:
df -h .anddu -sh "$(go env GOCACHE)". - Fix: after builds stop, run
go clean -cacheto remove reproducible build artifacts, then retryGOFLAGS=-p=2 make build test race lint. Tests still run in full; fewer packages compile concurrently. Keep enough free space for the subsequent end-to-end build.
Go build reports a missing embedded UI asset
- Symptom:
embed dist/assets/index-....js: open ...: no such file or directoryduring build, test or race. - Cause: a concurrent
make uireplaces the bundle while Go is reading it for embedding. This is a local check ordering failure. - Check: confirm whether a UI build was running at the same time as the Go command.
- Fix: finish
make uifirst, then run the Go build, test, race and lint targets and the browser checks against the stable bundle. Rerun the failed command; keep its assertions unchanged.
Envoy keeps serving (or holds the ports) after waap was killed
- Symptom: after
kill -9of waap, the data-plane ports still answer, or a restart fails with "address already in use". - Cause: before the guard process existed, Envoy outlived a killed waap. Now
waap runstarts Envoy underwaap envoy-guard, which stops Envoy when waap exits for any reason. - Check:
pgrep -fl envoyafter waap is gone should show nothing within a second. - Fix: if an Envoy from an older build is still running, stop it (
pkill -f 'envoy.*<runtime-dir>') and upgrade. If you start Envoy yourself (-envoy ""), supervise it so it stops with waap.
Socket errors at start on macOS ("bind: invalid argument", path too long)
- Symptom: waap fails to start with an error on
xds.sock,inspect.sockorcontrol.sock; or administration commands cannot connect. - Cause: unix socket paths are limited to 104 bytes on macOS (108 on Linux). A deep
-runtime-dir(for example under a long$TMPDIRor a test directory) exceeds it. - Check:
echo -n "<runtime-dir>/envoy-admin.sock" | wc -cmust be under 104. - Fix: use a short runtime directory, for example
-runtime-dir /tmp/waap-a, and pass the same-runtime-dirto administration commands.
Requests answer 503 "upstream connect error"
- Symptom: an application answers 503; Envoy's access log shows
UForUH. - Cause: nothing listens on the upstream target, it fails health checks, or the port is taken by another program (on a development Mac port 9000 is often used by another service, so the example
shopapplication reaches the wrong server). - Check:
lsof -iTCP:<port> -sTCP:LISTEN; health check status in Envoy's/clustersoutput. - Fix: start the backend, fix
health_check.path, or changeserver_pools[].servers[].addressto a free port and apply the configuration.
Administration command: "dial unix .../control.sock: connect: no such file or directory"
- Cause: the command uses a different
-runtime-dirthan the server, or runs as another user (the admin socket is owner-only). - Fix: pass the server's
-runtime-dir; run as the account that runs waap.
Browser acceptance cannot launch Chromium in an agent sandbox
- Symptom: the end-to-end run fails browser groups with
browserType.launch: Target page, context or browser has been closedandkill EPERM; HTTP and Envoy groups pass. Chromium can also reportbootstrap_check_in ... MachPortRendezvousServerwithPermission denied (1100). - Cause: the sandbox prevents Chromium from launching or managing its child processes.
- Check: the Playwright launch log for the process permission error. Missing Chromium is a different failure and reports a missing executable.
- Fix: rerun
make e2eoutside the sandbox. Keep the browser checks enabled; do not skip them or change product policy to make the suite pass.
Browser acceptance times out opening Certificates
- Symptom: the application forms acceptance test times out at
getByRole("link", { name: "Certificates", exact: true }).click()after finding the visible link. - Cause: not established. One full-suite run timed out here, while the isolated retry passed all nine browser scenarios. No product assertion was changed.
- Check: save the Playwright call log and error context; check machine load and retry
WAAP_E2E=1 go test -tags re2_cgo -count=1 -v -run '^TestBrowserAcceptance$' ./test/e2ewith the browser allowed to run outside the sandbox. - Fix: if the retry passes, record the transient full-suite failure. If it repeats, diagnose the page and browser before changing code; do not extend the test timeout.
Browser tests still select old menus or match two Events links
- Symptom: Playwright waits for an old tab such as "ICAP servers", or reports a strict-mode violation because Events matches both the main and application menus. A stalled browser test can also push the full suite past Go's default 10-minute deadline.
- Cause: the navigation destinations and labels changed. Events exists globally and within the open application's menu.
- Check: read the failed locator and page snapshot before the final suite timeout. Confirm the intended destination against the current sidebar.
- Fix: use the current menu label (for example Antivirus servers), and identify the intended global or application Events link. Keep the behavior assertions, rerun the affected browser test, then the full end-to-end gate. Do not hide the failure by extending the browser timeout or changing product policy.
Demo start refuses: "management port 127.0.0.1:19443 is already in use"
- Symptom:
make demoexits before building or starting another process. - Cause: the demo or another service already uses the management port. Starting a second instance with the same runtime directory could remove the first instance's control socket.
- Check:
lsof -nP -iTCP:19443 -sTCP:LISTEN; openhttps://127.0.0.1:19443. - Fix: keep using the running demo, or stop it with Ctrl-C in its original terminal before restarting. If it was started from another session or its terminal is gone,
make demo-stopstops it (the.demo/waap runand.demo/upstreamprocesses), andmake demo-restartstops, rebuilds the UI and starts again. Do not remove the running instance's socket.
Demo start seems to hang with no output
- Symptom: after
make demo, nothing changes for minutes. - Cause: the first step builds
waapwith cgo and RE2; a cold build takes minutes. - Check: the step line (
[1/4] building waap ... 95s) keeps counting; the step's output is in.demo/step.log. A failed step prints its last lines and stops. - Fix: wait for the step to finish. If step 3 (waiting for the web UI) fails, read
.demo/waap.log.