Troubleshooting
Common problems with redroid nodes, ARM translation, Frida, DevTools and VPN.
Цей контент ще не доступний вашою мовою.
Session stuck in provisioning
Section titled “Session stuck in provisioning”kubectl -n holtdroid describe pod <session>: usually the redroid image is still being pulled (about 1.5 GB) or no node matchesnodeSelector/tolerationswith a free slot.- Enable the pre-pull DaemonSet to avoid the pull on first use.
Session fails in booting
Section titled “Session fails in booting”CreateContainerError: … path escapes from parent: the cluster doesn’t honoursupplementalGroupsPolicy: Strict(Kubernetes 1.31+, containerd 2.x).- Android never boots: the node’s kernel needs binder
(
CONFIG_ANDROID_BINDERFS). Theandroidcontainer’s log is Android’s own (kubectl -n holtdroid logs <session> -c android); Android also writes to the node’s kernel log. - No screen, or a black one: on hosts without a Mesa GPU at
redroid.gpu(/dev/dri/renderD128), setredroid.gpu: ""to use software rendering (provider-dockerfalls back toguestmode automatically). - The agent’s log:
kubectl -n holtdroid logs <session> -c agent(ordocker logs holtdroid-session-<id>-agenton Docker). - Android 11 on
arm64:holtdroid-redroidpublisheslinux/amd64andlinux/arm64for Android 12–16, while Android 11 islinux/amd64only (AOSP 11’s audio HAL is 32-bit ARM only).
Install fails with INSTALL_FAILED_NO_MATCHING_ABIS
Section titled “Install fails with INSTALL_FAILED_NO_MATCHING_ABIS”- On
x86_64hosts, redroid runsx86_64/x86natively and translatesarm64-v8avialibndk_translation; 32-bit ARM (armeabi-v7awithoutarm64-v8a) is not translated on Android 12–16. - On
arm64hosts (including Apple Silicon), redroid uses_64onlyimages and runsarm64-v8anatively;x86_64-only andarmeabi-v7a-only APKs cannot be installed.
Ask for a build that includes arm64-v8a (or x86_64 on x86_64 hosts).
App installs but crashes immediately
Section titled “App installs but crashes immediately”- ARM-only native libraries run through Android’s ARM translation layer;
a few libraries (heavy NEON assembly, JIT engines, some DRM) don’t work
under it.
adb logcatfrom your connected computer showslibndk_translationin the crash’s backtrace. - The app may detect root, an emulator or Frida and exit. The agent log shows the Frida spawn and the app’s exit. Holtdroid never repackages an APK, so such apps need a build without the checks.
Frida doesn’t attach
Section titled “Frida doesn’t attach”The agent starts the app under Frida to turn on WebView debugging; nothing in the APK changes.
- The session fails with
adb root: …orstart frida-server: …: after boot the agent runsadb root, pushesfrida-serverand starts it. The redroid images are userdebug builds, soadb rootworks; a different image inredroid.imagesmust be one too. - Only the app’s main process is instrumented. A WebView in another process of the app may show up without debugging enabled.
- Apps started from the launcher are instrumented too: the agent notices the new process within about a second and attaches to it. A WebView created in that first second gets debugging once the script loads.
- Upgrading Frida means bumping
frida-goandFRIDA_VERSIONinimages/session.Dockerfiletogether: the agent’s devkit and the device’sfrida-servermust be the same version. - On Apple Silicon macOS, run the native
linux/arm64session and redroid images inside Lima (deploy/docker/lima-holtdroid.yaml) rather than under Rosetta (x86_64Frida fails under Rosetta because ofeventfd).
DevTools shows no targets
Section titled “DevTools shows no targets”- The app has not created a WebView yet; targets appear as soon as it does.
- If the app starts WebViews in a separate process, pick that process in the target selector.
- Check the agent’s
/v1/devtools/targetsthrough the portal:https://<portal>/s/<session>/v1/devtools/targets.
DevTools panel stays blank
Section titled “DevTools panel stays blank”The portal fetches the DevTools frontend from Google’s frontend host and keeps
it in devTools.storage (the api’s storage when unset; a cache volume there
means a crawl after every restart, so point it at an S3 prefix). It does so
ahead of sessions for every Chromium and WebView build it lists, and on the
first open of any other revision, which can take a minute. The api needs
outbound HTTPS for that; session Pods don’t.
VPN location doesn’t change the IP
Section titled “VPN location doesn’t change the IP”bypassCIDRsmust not contain the address range of the VPN servers.- The sidecar logs
lookup ….cluster.local: … mdns: query timeout: sing-box sends*.localnames to mDNS. Setvpn.resolverto your cluster DNS IP (kubectl -n kube-system get svc kube-dns). - A WireGuard tunnel that drops whenever another session starts: the same key is in use from several places (other session Pods, or a client outside Holtdroid on the same server). Move WireGuard into a shared VPN gateway and give it servers nobody else uses with that key.
- WireGuard logs
sendmmsg: message too long: lower itsmtuto 1280 on overlay networks.
No metrics or audit lines
Section titled “No metrics or audit lines”- Metrics are off until
telemetry.metrics.listenis set (chart:telemetry.metrics.enabled).curl <pod>:9090/metricsfrom inside the cluster; session pods only accept scrapes fromtelemetry.metrics.from. - The
PodMonitorneeds the Prometheus Operator CRDs, and your Prometheus usually only picks monitors with its own release label (telemetry.metrics.podMonitor.labels). - Audit lines go to stdout, regular logs to stderr. A collector that only
reads one stream misses the other. Filter on
"log":"audit". holtdroid_audit_dropped_total{sink="webhook"}growing: the webhook is down or slow; the api log says why (audit webhook dropped a batch).