Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Podman: the health check gives up on a server that never answers; docs: what the sandbox needs rootless

milind-sonib8ea40063906
diff --git a/deploy/podman/install.sh b/deploy/podman/install.sh
index 80f9da5f44..1d4e9a0909 100755
--- a/deploy/podman/install.sh
+++ b/deploy/podman/install.sh
@@ -275,7 +275,8 @@ Volume=$DATA_DIR:/data$label
EnvironmentFile=$INSTALL_DIR/server.env
# Chrome's shared memory, as the Docker install gives it. The image brings its own init (tini).
ShmSize=512m
-HealthCmd=curl -sf http://127.0.0.1:$SERVER_PORT/api/health | grep -q openmausbot
+# curl's own limit: Podman 4.9 does not end a check that hangs on a server that accepts and never answers.
+HealthCmd=curl -sf --max-time 4 http://127.0.0.1:$SERVER_PORT/api/health | grep -q openmausbot
HealthInterval=30s
HealthTimeout=5s
HealthRetries=3
diff --git a/docs/self-hosting.md b/docs/self-hosting.md
index 3c9f1a266d..d1b5413e26 100644
--- a/docs/self-hosting.md
+++ b/docs/self-hosting.md
@@ -221,17 +221,27 @@ it through Podman: `podman unshare rm -rf ~/.local/share/openmausbot`.
**What rootless does not do.**
-- The bots' sandbox (bubblewrap) is not part of the published server image,
- so bots run in the server's container, beside its data. Use this install
- on a machine only you sign in to, as with the Docker image.
-- Chrome runs without its own sandbox inside the container, as in every
- container install. The container is the boundary.
-- Ports below 1024 need root or a sysctl change; put Caddy, a tunnel or
- Tailscale in front for HTTPS (`--public-url`).
+- The bots' sandbox (bubblewrap) is off. The published server image does
+ not include bubblewrap, so bots run in the server's container, beside its
+ data, as with the Docker image. Use this install on a machine only you
+ sign in to. Bubblewrap itself can run in a rootless container, with the
+ repository's seccomp profile (`connector/profiles/seccomp-omb-home.json`)
+ and `/proc` left uncovered (`--security-opt unmask=/proc/*`). There the
+ box's self-check passes 31 of 32 checks; the kernel keyring stays
+ reachable. This install sets neither.
+- Chrome runs with `--no-sandbox` inside the container, as in every
+ container install, and the container is the boundary. It needs no other
+ flag: the built-in browser starts and loads pages.
+- No HTTPS of its own: put Caddy, a tunnel or Tailscale in front and pass
+ `--public-url`.
- Per-bot Linux desktops (**Local VM**) need the Podman socket, which this
install does not mount. [deploy/podman](../deploy/podman/README.md) runs
the full stack with them.
+Tested on Ubuntu 24.04 (x86-64, Podman 4.9.3), with
+`kernel.apparmor_restrict_unprivileged_userns=1`. SELinux hosts (Fedora,
+RHEL), Podman 5 and ARM64 have not been tried yet.
+
## Troubleshooting
| You see | It means | Do this |