Перейти к содержимому

Troubleshooting

Common problems with redroid nodes, ARM translation, Frida, DevTools and VPN.

Это содержимое пока не доступно на вашем языке.

  • kubectl -n holtdroid describe pod <session>: usually the redroid image is still being pulled (about 1.5 GB) or no node matches nodeSelector/ tolerations with a free slot.
  • Enable the pre-pull DaemonSet to avoid the pull on first use.
  • CreateContainerError: … path escapes from parent: the cluster doesn’t honour supplementalGroupsPolicy: Strict (Kubernetes 1.31+, containerd 2.x).
  • Android never boots: the node’s kernel needs binder (CONFIG_ANDROID_BINDERFS). The android container’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), set redroid.gpu: "" to use software rendering (provider-docker falls back to guest mode automatically).
  • The agent’s log: kubectl -n holtdroid logs <session> -c agent (or docker logs holtdroid-session-<id>-agent on Docker).
  • Android 11 on arm64: holtdroid-redroid publishes linux/amd64 and linux/arm64 for Android 12–16, while Android 11 is linux/amd64 only (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_64 hosts, redroid runs x86_64/x86 natively and translates arm64-v8a via libndk_translation; 32-bit ARM (armeabi-v7a without arm64-v8a) is not translated on Android 12–16.
  • On arm64 hosts (including Apple Silicon), redroid uses _64only images and runs arm64-v8a natively; x86_64-only and armeabi-v7a-only APKs cannot be installed.

Ask for a build that includes arm64-v8a (or x86_64 on x86_64 hosts).

  • 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 logcat from your connected computer shows libndk_translation in 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.

The agent starts the app under Frida to turn on WebView debugging; nothing in the APK changes.

  • The session fails with adb root: … or start frida-server: …: after boot the agent runs adb root, pushes frida-server and starts it. The redroid images are userdebug builds, so adb root works; a different image in redroid.images must 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-go and FRIDA_VERSION in images/session.Dockerfile together: the agent’s devkit and the device’s frida-server must be the same version.
  • On Apple Silicon macOS, run the native linux/arm64 session and redroid images inside Lima (deploy/docker/lima-holtdroid.yaml) rather than under Rosetta (x86_64 Frida fails under Rosetta because of eventfd).
  • 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/targets through the portal: https://<portal>/s/<session>/v1/devtools/targets.

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.

  • bypassCIDRs must not contain the address range of the VPN servers.
  • The sidecar logs lookup ….cluster.local: … mdns: query timeout: sing-box sends *.local names to mDNS. Set vpn.resolver to 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 its mtu to 1280 on overlay networks.
  • Metrics are off until telemetry.metrics.listen is set (chart: telemetry.metrics.enabled). curl <pod>:9090/metrics from inside the cluster; session pods only accept scrapes from telemetry.metrics.from.
  • The PodMonitor needs 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).