Skip to content

[Bug] Orca relay for mobile #10425

Closed
Closed

Description

@orca-discord-issues

Rat Rat via Discord

Hi sorry for repeat I put this in gen without thinking first. when I go to pair my phone through orca relay, it says the relay can't be reached and it's falling back to local. Am I doing something wrong or is this known? Super sick product as well I love it!

Activity

  1. added
    bug
    on Jul 24, 2026
  2. orca-discord-issues commented on Jul 24, 2026

    @orca-discord-issues
    Author

    Jinjing Jinjing via Discord

    Hi there! glad Orca can be helpful!

    Looking into the mobile relay issue

  3. RomanVanLoo commented on Jul 27, 2026

    @RomanVanLoo

    Same for me.

    Image

    It was still working a couple of days ago.

  4. orca-discord-issues commented on Jul 27, 2026

    @orca-discord-issues
    Author

    Jinjing Jinjing via Discord

    Turns out it's our server got overloaded. Too many users.

    We're rolling out a self-hosting version this week. Also trying to scale out our server

  5. PauloSeze commented on Jul 28, 2026

    @PauloSeze
    Image

    Relay couldn't be reached

  6. RomanVanLoo commented on Jul 28, 2026

    @RomanVanLoo

    Jinjing Jinjing via Discord

    Turns out it's our server got overloaded. Too many users.

    We're rolling out a self-hosting version this week. Also trying to scale out our server

    @AmethystLiang if your server gets overloaded because there's too many users, scaling them will probably cost money. I was a paying Superset user but switched to Orca. Therefore I would find it completely normal if you hide certain server heavy features like the mobile relay behind a paywall!

  7. ZenYoda3 commented on Jul 30, 2026

    @ZenYoda3

    Same class of failure on a Ready desktop + TestFlight iOS phone (Indonesia): same Wi-Fi pairs and connects, cellular-only does not.

    Full repro and pairing log (phone stuck dialing the home LAN ws://192.168.x.x:6768 endpoint) posted on #11257.

    Not VPN, not sleep. Relay badge Ready, re-pair did not fix off-LAN. Happy to pull more diagnostics if useful.

  8. Gokulmathan-git commented on Jul 30, 2026

    @Gokulmathan-git

    Orca relay , when it will be available ? because i was seen Available tag in desktop version but in mobile i can't see any login form so help to find out

  9. Ramsei commented on Jul 31, 2026

    @Ramsei

    Same symptom here. I dug into it a fair bit — posting the findings since they rule out most of the usual network causes and narrow this down to a non-retryable 4xx from the relay auth chain.

    Environment

    • Orca 1.4.162 (latest at time of writing)
    • macOS 26.5.2 (25F84), arm64
    • Desktop is behind a full-tunnel VPN (all traffic egresses via a datacenter IP, hosting ASN, EU)

    Symptom

    Settings → Mobile → Pair a phone, connection mode Orca Relay:

    1. At rest the badge reads Available (i.e. broker status standby)
    2. Click Generate QR code / Retry Relay
    3. Badge flips Available → Unavailable (status offline) and the banner appears:
      "Couldn't create a Relay pairing code. Retry, or use LAN to pair over Tailscale or the same Wi-Fi."
    4. The broker never recovers on its own — no visible retry

    Copy diagnostics payload:

    {
      "kind": "mobile_pairing_relay_failure",
      "preferredConnectionMode": "automatic",
      "failure": {
        "code": "relay_control_not_active",
        "stage": "create_pairing_relay",
        "message": "Relay pairing invite request failed"
      },
      "selectedAddress": "192.168.x.x",
      "at": "2026-07-31T16:14:48.682Z"
    }
    

    Ruled out

    Check | Result -- | -- POST https://login.onorca.dev/v1/desktop/auth/relay-token | 401 {"error":"invalid_token"} — reachable, correct app-level response POST https://relay.onorca.dev/v1/assign | 401 {"error":"invalid_token"} — reachable DNS for relay.onorca.dev | resolves fine (ghs.googlehosted.com) Long-lived WebSocket through the same tunnel | held 45 s with bidirectional traffic, zero drops, closed cleanly with 1000 Clock skew vs. server Date | 1.1 s Orca version | already on latest (1.4.162) Account | signed in, cloud-linked profile, live connections to onorca.dev

    So this is not DNS, not TLS, not WebSocket interference, and not clock skew.

    Network trace at the moment of failure

    Polled the Orca process's sockets at 250 ms while clicking Retry Relay:

    21:22:05  click "Retry Relay"
    21:22:15  → 192.178.25.19:443  ESTABLISHED   (1e100.net / Google — relay.onorca.dev)
    21:22:20  connection gone
    (nothing afterwards — no further attempts)
    

    The client does reach the relay, holds the connection ~5 s, drops, and then stays silent.

    Code-level observation

    Two things in the shipped bundle that make this hard to diagnose from the outside:

    1. The retry predicate only schedules a retry for a subset of statuses:
    function shouldRetryRelayConnectionError(error) {
      if (!(error instanceof RelayHttpError)) return true;
      return error.statusCode >= 500 || error.statusCode === 408
          || error.statusCode === 425 || error.statusCode === 429;
    }
    

    Since no retry happens here, the failure is a non-retryable 4xx — 400/401/403/404 — from either exchangeRelayAuthorization (/v1/desktop/auth/relay-token) or requestRelayAssignment (/v1/assign). This is not the overload path fixed in 1.4.160 (fix(relay): back off overloaded assignments).

    1. The error is swallowed with no logging at all:
    } catch (error) {
      if (this.isEpochCurrent(epoch)) {
        this.options.onStatus("offline");
        if (shouldRetryRelayConnectionError(error)) {
          this.scheduleRetry(epoch, retryIdentityKey, retryAfterMs);
    

    Nothing lands in logs/daemon.log or logs/main.trace.ndjson, and nothing goes to stdout/stderr, so users can't tell you which stage failed or with what status.

    Hypothesis

    RelayHttpError carries relay_${operation}_failed_${statusCode}, but that never surfaces. My guess is a 403 on the relay-token exchange or the assignment. Two candidates:

    • Egress IP filtering. My traffic exits via a datacenter/hosting IP. If the relay tier rejects non-residential egress, a silent 403 would look exactly like this.
    • Stale capability cache. The badge renders Available from the locally cached capabilities.flags["relay.use"]. If the server no longer agrees, the client would still show standby while every token exchange gets rejected.

    Request

    Could RelayHttpError.operation and .statusCode be included in the Copy diagnostics payload (and ideally logged)? Right now relay_control_not_active is a downstream symptom — the actual status code is the one piece of information that would make these reports actionable, and it's currently discarded.

    Happy to run anything else against this machine if it helps.

  10. matheus1lva commented on Aug 12, 2026

    @matheus1lva

    Jinjing Jinjing via Discord

    Turns out it's our server got overloaded. Too many users.

    We're rolling out a self-hosting version this week. Also trying to scale out our server

    Where can I find the guide to run a self hosted?

  11. nwparker commented on Aug 12, 2026

    @nwparker
    Contributor

    Jinjing Jinjing via Discord
    Turns out it's our server got overloaded. Too many users.
    We're rolling out a self-hosting version this week. Also trying to scale out our server

    Where can I find the guide to run a self hosted?

    we're delayed on it, but it's coming
    ETA: Early next week

  12. moishinetzer commented on Aug 24, 2026

    @moishinetzer

    any updates? Looks like the server is down now?

  13. emngny commented on Aug 26, 2026

    @emngny

    Hey guys, when will you fix this?

  14. orca-discord-issues commented on Aug 29, 2026

    @orca-discord-issues
    Author

    shaharmor shaharmor via Discord

    Self hosted version would be perfect! If it can work via Cloudflare workers that would be even better

  15. orca-discord-issues commented on Aug 29, 2026

    @orca-discord-issues
    Author

    goku goku via Discord

    Orca relay, when it will be available ? because when i seen Available tag in desktop version (mac), in mobile app (Android) there is no login form , so help to find out

  16. emngny commented on Aug 29, 2026

    @emngny

    I don't know if I'm doing something wrong. I'm generating a relay QR code, and it's giving me an IP address starting with 192. The Orca mobile app only connects if I'm on the same Wi-Fi network.

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