Skip to content

Containers and packages ​

Problems running Spalto in containers, installing the packages, and building images on Apple silicon or rootless hosts.

Inspection container restarts, "undefined symbol ... re2" in its log ​

  • Cause: the image has a RE2 library with a different interface version from the one the binary was built against. For example, Debian trixie's own libre2-11 (20240702) is used with a binary built against RE2 20250805 or later. The library name is the same, but the symbols differ.
  • Check: compose logs inspect, and compose exec inspect ls /usr/lib/aarch64-linux-gnu | grep re2.
  • Fix: rebuild the images with make images. It installs libre2-11 20251105.

Console not reachable on 127.0.0.1:9443, TLS "unexpected EOF" ​

  • Cause: the management listener accepts only the addresses in management.trusted_networks (the default is loopback). Connections published from the compose network arrive from outside that range, so they are refused. waap_management_refused_total counts them.
  • Check: compose exec control waap settings get management.
  • Fix: use deploy/compose/waap.yaml for a new state volume. Or run compose exec control waap settings set management trusted_networks=127.0.0.0/8,10.0.0.0/8,... with your own networks.

Envoy container exits: "the control plane has not written /run/waap/envoy.json" ​

  • Cause: the control container did not start, or it cannot write to the run volume.
  • Check: compose logs control, and compose ps.
  • Fix: fix the control error. It is often a bad configuration file, which waap validate finds. Then run compose up -d.

Package install refused: "nothing provides libre2.so.9()(64bit)" or "Depends: libre2-11 (>= ...)" ​

  • Cause: the package's requirements are read from its binary. On the RHEL family, EPEL is not enabled, and re2 comes from EPEL. On Debian 13, its libre2-11 (20240702) is older than the RE2 that the .deb was built with (Ubuntu 26.04, 20250805). The library name is the same, but the interface differs.
  • Check: dnf repolist lists epel. Run rpm -qp --requires waap-*.rpm, and dpkg-deb -f waap_*.deb Depends.
  • Fix: run dnf install epel-release (Rocky, Alma; on RHEL, install the EPEL release package), then retry. For Debian 13, build the .deb on Debian 13 (run scripts/pkg-build.sh there), or use the container images.

amd64 build under Rosetta: "rosetta error: unhandled auxillary vector type 29" ​

  • Cause: the Lima VM's kernel (Ubuntu 26.04, 7.x) passes an auxiliary vector entry that Rosetta on macOS 15 does not know. Every amd64 program in the VM exits with status 133.
  • Fix: use scripts/lima-x86.yaml (Ubuntu 24.04, kernel 6.8). The containers inside stay on 26.04.

amd64 build under Rosetta: tar "Cannot open: Function not implemented" ​

  • Cause: GNU tar 1.35 in an amd64 container uses a system call that fails under Rosetta.
  • Fix: let BuildKit unpack archives, with ADD file.tar.gz /dest/, as the scripts/amd64/*.Dockerfile files do.

amd64 tests under Rosetta: "exec format error" after a systemd container started ​

  • Cause: binfmt_misc is not namespaced. systemd in a privileged container runs systemd-binfmt, which clears the VM's Rosetta registration, so no amd64 program starts.
  • Check: ls /proc/sys/fs/binfmt_misc/ in the VM has no rosetta entry.
  • Fix: restart the VM. limactl stop waap-x86 followed by limactl start waap-x86 registers Rosetta again. Use the test images in scripts/amd64/, which mask systemd-binfmt and its mounts.

Image build stalls at "apt-get update" (rootless build) ​

  • Cause: the network of the rootless build container can be very slow while the host's network is fast.
  • Fix: do not use apt in the build. scripts/image-build.sh installs pinned .deb files, which it downloads on the host.