Skip to content

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 any waap admin 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, owner waap).
  • Check: systemctl status waap, journalctl -u waap -n 30, ls -ld /run/waap.
  • Fix: sudo systemctl enable --now waap, then sudo waap setup. Use sudo for admin commands, or set WAAP_RUNTIME_DIR.

Package install: the service fails to start ​

  • Symptom: systemctl start waap fails or restarts in a loop.
  • Cause: (1) error while loading shared libraries: libre2.so.N: the RE2 package is missing (apt install libre2-11 or dnf install re2, EPEL on RHEL), or the package was built for another distribution family (a .rpm built on Ubuntu needs libre2.so.11, which RHEL 9 does not ship). Packages from make packages declare the exact library and refuse to install instead. (2) GLIBC_2.xx not found or undefined symbol in RE2: the package was built on a newer distribution than this one; use the package for this family (the .rpm is 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 configuration in the journal: /etc/waap/waap.yaml was 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 -i the package again with --force-confmiss, or copy from the package's example). A low port needs the packaged unit, which grants CAP_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 waap deletes 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 waap shows the capabilities the unit grants.
  • Fix: add CAP_NET_ADMIN in a systemd drop-in, then restart the service. See Failover and the virtual address.

Envoy version mismatch (tarball or source run) ​

  • Symptom: make check-envoy says need 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/envoy and always start that one.
  • Check: $ENVOY_BIN --version against the pin in the Makefile (ENVOY_VERSION).
  • Fix: point ENVOY_BIN (or the unit's ExecStart) at the pinned release, or install the package.
  • Symptom: make race fails 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 . and du -sh "$(go env GOCACHE)".
  • Fix: after builds stop, run go clean -cache to remove reproducible build artifacts, then retry GOFLAGS=-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 directory during build, test or race.
  • Cause: a concurrent make ui replaces 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 ui first, 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 -9 of 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 run starts Envoy under waap envoy-guard, which stops Envoy when waap exits for any reason.
  • Check: pgrep -fl envoy after 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.sock or control.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 $TMPDIR or a test directory) exceeds it.
  • Check: echo -n "<runtime-dir>/envoy-admin.sock" | wc -c must be under 104.
  • Fix: use a short runtime directory, for example -runtime-dir /tmp/waap-a, and pass the same -runtime-dir to administration commands.

Requests answer 503 "upstream connect error" ​

  • Symptom: an application answers 503; Envoy's access log shows UF or UH.
  • 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 shop application reaches the wrong server).
  • Check: lsof -iTCP:<port> -sTCP:LISTEN; health check status in Envoy's /clusters output.
  • Fix: start the backend, fix health_check.path, or change server_pools[].servers[].address to 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-dir than 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 closed and kill EPERM; HTTP and Envoy groups pass. Chromium can also report bootstrap_check_in ... MachPortRendezvousServer with Permission 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 e2e outside 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/e2e with 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.
  • 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 demo exits 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; open https://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-stop stops it (the .demo/waap run and .demo/upstream processes), and make demo-restart stops, 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 waap with 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.