> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leverine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> Start with the diagnosis: every BunnyBridge readiness item and its fix, plus the 403, nothing-answers, chatbot-connection, and interrupted-update cases.

Almost every BunnyBridge problem is already named by the app's own diagnosis. Start there; the tables below cover the rest.

## Start with the diagnosis

Almost every BunnyBridge problem is already named on the Status screen — or in `GET /health`, which serves the same diagnosis to agents.

The summary line tells you whether anything *blocking* is open, and the three expandable sections (Permissions, Software, State) hold the details. Every item that needs you has a **Fix** button that opens the exact settings screen. Work from there first; the tables below cover what each item means and the cases the diagnosis can't see from the phone.

## Readiness items and their fixes

| Item | Blocking? | What it means / the fix |
| - | - | - |
| Battery optimization | **Yes** | The bridge is not exempt from battery optimization, so Android may stop it to save power. This is the exemption that keeps the bridge alive. Fix opens the battery settings — set BunnyBridge to unrestricted / don't optimize. |
| Notifications permission | On Android 13+: can block. On Android 12 and below: never | The foreground-service notification needs the notification permission where Android offers it as a pop-up (API 33+). On older Android there is no pop-up to grant, so the item is informational: the state is shown truthfully, Fix opens the settings switch so you can check it, and readiness is never held false by it. |
| Tailscale not installed | **Yes** | Tunnel 1's transport is the Tailscale app. Install it from the Play Store and sign in. (A live tailnet address counts as Tailscale being up even if the app check can't see the app — the diagnosis names which signal it used.) |
| Tailscale signed out / VPN down | **Yes** | No tailnet address, so the bridge has nothing to bind to and nothing is listening. Open Tailscale, sign in, turn the VPN on. Only you can do this one — an agent cannot sign you in. |
| Bridge stopped unexpectedly | **Yes** | The app wanted to be running but the service was killed — usually the manufacturer's battery manager. Grant the battery exemption (above); on aggressive brands, also allow autostart for BunnyBridge in the brand's own settings. Turning on "Start automatically on boot" in Settings helps after restarts. |
| No tokens yet | No — the app fixes it | The app generates a first token automatically and holds its connect block for you until you confirm you've shared it. |
| No hosts configured | No | Informational until the SSH jump-host phase ships; phone-local commands are unaffected. |
| Tunnel 2: no Tunnel 2 token | Only for Tunnel 2 | Create one on the Tokens screen's Chatbot Access card (available once Tunnel 2 is switched on). |
| Tunnel 2: public address not set up / not an address | Only for Tunnel 2 | No valid public address is recorded, so direct chatbot connections have nowhere to land. Record your Mode 2 relay address (when available) or your front-door machine's address. A pasted value that isn't an https address is refused with a warning and never saved or used — if you pasted a web page link by mistake, this is the item that catches it. |
| Update available | No | A newer version is on the update channel. Apply it from the Status screen's App updates section when convenient. |
| Termux detected | No — information only | Termux is present on the phone. BunnyBridge doesn't need it and doesn't use it; the item exists so the fact is on the record, nothing more. |

Every permission item is scoped to the Android versions where the permission exists and is detected for real — the app asks the system. An item that doesn't apply on your version is shown as information and never counts as "needs attention." Tunnel 2 follows the same rule: in Mode 1 the diagnosis stays silent about the tunnel entirely — the surface is off by your choice, so nothing about it counts as missing.

## "My agent says the token was rejected" (403)

* **Wrong tunnel.** The most common cause. A Tunnel 1 token presented on `/door2/` paths — or a Tunnel 2 token on Tunnel 1 paths — is refused exactly like a wrong token. Check the block the caller is using matches the surface it's calling.
* **Revoked.** Revocation is instant, including any in-grace old value after a rotation. Check the Tokens screen.
* **Rotated past grace.** After a rotation, the old value works for 10 minutes, then stops. The caller needs the new connect block.
* **Session-only token, app restarted.** On a free copy, tokens last for the session; a restart means creating fresh ones. (Purchased copies keep tokens persistently.)
* **Truncated paste.** A token copied with a missing character fails like any wrong token. Re-issue rather than debugging the paste: create a new token, share its block, revoke the suspect one.

Note what a 403 is *not*: it is never a stopped bridge. A stopped bridge says nothing at all — see the next section.

## "Nothing answers at all" (empty reply / connection refused)

* **Tunnel 1:** the bridge is stopped, the phone's Tailscale is down or signed out, or the *calling* machine left the tailnet. Open the app — the Status table shows each tunnel's address and state, and the diagnosis names the missing piece. Start the bridge with the Start button if it's stopped.
* **Tunnel 2:** Tunnel 2 may be in Mode 1 (but that answers 403 "door 2 is off", not silence) — silence means the *path* is down: the Mode 2 connection dropped, or your front-door machine is off / its funnel or tunnel stopped. Check the front door first, then the phone.
* **Phone asleep or rebooted:** with the battery exemption granted and start-on-boot on, the bridge returns by itself after a reboot. Without the exemption, Android may keep it asleep — that's the exemption's whole job.

## "My chatbot can't connect"

1. **Which mode is selected?** Status → Chatbot Access. Mode 1 means the whole Tunnel 2 surface answers 403 "door 2 is off"; the front-door mode is the one that answers.
2. **Is it using a Tunnel 2 token?** Tunnel 1 tokens never work on this surface. In GPT Actions, the API key must be sent as the `X-Token` header; in MCP setups, as the configured credential.
3. **Is the public address right?** The schema the chatbot imported carries the address recorded in the app. If you changed front doors, re-record the address and re-import the schema — an old import keeps pointing at the old address.
4. **Is the front door forwarding only `/door2/`?** A chatbot calling `/run` (without the prefix) at the public address should get a 404 from the front door — that's correct behaviour. Its calls must go to the `/door2/` paths.
5. **429s?** The chatbot is calling too fast (30/minute per token) or running more than 2 commands at once. Slow it down; if it loops, stop it and use relay mode meanwhile.
6. **Still stuck?** Use [Mode 1 relay](https://docs.leverine.com/bunnybridge/tunnel-2.md#mode-1-the-manual-relay-available-today) — it works with every chatbot and isolates whether the problem is the connection or the task.

## "An update download was interrupted"

Since 0.4.8, this fixes itself. The updater keeps its state on disk, so closing the app — or the phone dying mid-download — loses nothing:

* A **partial** download is recognised by its size and fingerprint, deleted, and downloaded again cleanly the next time you tap **Check for updates**.
* A download that **finished and verified** before the interruption is offered for install straight away — no second download.
* Choosing "not now" at any prompt clears the downloaded copy and the recorded offer, so nothing stale is left behind.

There is no loop to escape: no update state points you back at the same button forever. If the App updates section ever disagrees with this, the [Log](#when-you-need-the-log) records each updater step — check there before anything else. (On versions before 0.4.8, an interrupted download could be re-offered without completing; updating past it — by installing the newer APK once from your usual source — ends that behaviour for good.)

## The Funnel misconception

**"I'll just turn on Tailscale Funnel in the app on my phone."** There is no such switch. Funnel belongs to the Tailscale *command-line* program, and Android's Tailscale app doesn't include it — Tailscale's Funnel documentation covers platforms that can run the CLI. On Android there is nothing to enable, in Tailscale's app or in BunnyBridge.

What does work, in order of effort: **Mode 1 relay** (nothing to set up), **Mode 2 hosted relay** (one switch, when it ships), or a **Funnel or tunnel on a computer** — an always-on machine on your tailnet runs `tailscale funnel` or a Cloudflare Tunnel and forwards `/door2/` to the phone. If the funnel command on that machine refuses, it usually wants the two one-time admin-console approvals: HTTPS certificates under DNS, and Funnel added under Access controls. The full pattern is in the [Tunnel 2 guide](https://docs.leverine.com/bunnybridge/tunnel-2.md).

## When you need the log

For anything the diagnosis doesn't explain, the app's **Log** screen is the evidence: app starts, diagnosis runs with the facts that decided them, permission answers, token operations (names only — never values), updater steps, and errors with stack traces. The workflow that helps most: in the Log screen, tap **Start test session**, do the failing thing once, then **Share** the log (or use Copy session). An agent on Tunnel 1 can fetch the same slice with `GET /log?session=current`. The log rotates at 2,000 entries, so capture it before heavy use pushes the interesting part out.

***

*Source: Leverine/Leverine-BunnyBridge\@902c77c — `docs/site/BunnyBridge/troubleshooting.html`.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.