Skip to content

[Bug]: Mobile Relay stays unavailable after a transient desktop broker failure #10273

Closed

Description

@wohsj110

Operating system

macOS 15.6.1 (Apple Silicon)

Orca version

v1.4.152

Details

Short summary

Orca Mobile Relay remains unavailable and generated pairing codes are downgraded to LAN-only, even though the cloud auth endpoint, Relay director, and assigned Relay cell are reachable. Restarting the proxy and switching all *.onorca.dev traffic from a proxy route to DIRECT does not recover the Relay broker.

The UI shows:

Relay could not be reached — this code only works on your local network. Regenerate to try again.

Reproduction

  1. Sign in to an Orca cloud-linked profile.
  2. Open Settings -> Mobile.
  3. Select Orca Relay and generate or regenerate a pairing code.
  4. Observe that Relay is marked unavailable and the QR code contains only the LAN WebSocket endpoint.
  5. Regenerate again; the state remains unavailable.

Network diagnostics

The desktop uses ClashX Pro in TUN/Fake-IP mode.

Initially there was no Orca-specific rule, so Relay traffic matched the final proxy group. Clash logs showed successful TCP connections for the complete startup sequence:

  • login.onorca.dev:443
  • relay.onorca.dev:443
  • c2.relay.onorca.dev:443

As an A/B test, this rule was inserted as the first rule and ClashX was restarted:

- DOMAIN-SUFFIX,onorca.dev,DIRECT

Clash then confirmed the expected match:

rule=DomainSuffix(onorca.dev) proxy=DIRECT

The Relay UI remained unavailable, so bypassing the proxy did not resolve the failure.

Additional checks:

  • https://relay.onorca.dev/health returns HTTP 200.
  • https://c2.relay.onorca.dev/health returns HTTP 200.
  • The cell WebSocket control endpoint is reachable through TUN, an explicit proxy, and a bound direct interface; without credentials it returns the expected HTTP 401.
  • The local Orca listener is healthy on both loopback and the LAN address.

This suggests the failure occurs after basic network/TLS reachability, during Relay broker setup or the control upgrade/host-proof phase.

Source correlation

The installed v1.4.152 code appears to have both failure modes addressed by recently merged changes:

The description in #10260 closely matches this behavior: Relay can fall back to a LAN-only QR and recover only after fully quitting Orca for a short period. Both changes were merged after the currently installed stable release.

A full Orca process restart is the next workaround to test, but it was intentionally deferred while active agent and terminal sessions were running.

Expected behavior

  • A transient Relay setup failure should settle and retry without requiring a full Orca restart.
  • The Mobile settings page should expose the failed phase or a bounded diagnostic reason, such as token exchange, assignment, control upgrade, or host proof, instead of only reporting Relay unavailable.
  • Proxy bypass rules such as DOMAIN-SUFFIX,onorca.dev,DIRECT may be useful troubleshooting guidance, but they should not be presented as the fix when all Relay endpoints are already reachable.

Activity

  1. wohsj110 commented on Jul 24, 2026

    @wohsj110
    Author

    Architectural reference and expected product behavior

    Paseo provides a useful reference for the user-facing contract of a remote relay: both the desktop daemon and mobile client make outbound WebSocket connections to an untrusted rendezvous relay; QR pairing establishes the endpoint identity/public key; application traffic remains end-to-end encrypted. This avoids inbound ports, NAT traversal, and a mesh VPN requirement.

    Reference: https://paseo.sh/docs/security#relay-connections-recommended

    This is broadly the architecture requested in #7208. The important difference exposed by this bug is resilience: a transient Orca broker/bootstrap failure currently makes Relay unavailable and downgrades the generated QR to LAN-only, even though the network endpoints are reachable.

    LAN/Tailscale is not an equivalent fallback on mobile. On iOS and many Android configurations, Tailscale competes for the system VPN slot with an existing proxy or work VPN. Requiring users to switch VPNs removes much of the value of a mobile companion.

    Suggested behavioral contract:

    • The desktop maintains an outbound Relay connection independently of opening Settings or generating a QR.
    • Token exchange, director assignment, cell connection, control upgrade, and host proof each have bounded deadlines and retry continuously with backoff and jitter.
    • A transient setup failure should show reconnecting or degraded, rather than permanently turning the pairing offer into LAN-only until the app restarts.
    • QR pairing remains the trust anchor and the Relay only forwards opaque E2EE frames.
    • Both desktop and phone should work behind NAT using outbound HTTPS/WSS only; no public port, Tailscale, or mobile VPN reconfiguration should be required.
    • Wi-Fi/cellular/proxy transitions should recover without restarting Orca or regenerating the pairing code.
    • The UI should expose the failed phase and last error while retrying.
    • Direct LAN and Tailscale should remain optional alternatives, not prerequisites or the only recovery path.

    The goal is not to copy Paseo implementation code. It is to adopt the same simple connectivity contract while preserving Orca device revocation, scopes, and existing E2EE model.

  2. added
    bug
    on Jul 27, 2026
  3. nwparker commented on Aug 23, 2026

    @nwparker
    Contributor

    Closing because both failure modes were fixed in PRs #10147/#10260; report predates them.
    Disagree? Please respond! I will re-visit this ticket in 5 days. If you respond, I will re-open it 🙏.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions