Skip to content

[Bug]: Headless Linux orca serve: no pairing code in startup output; orca://pair fails to connect #9759

Closed

Description

@AmethystLiang

Operating system

Linux (Ubuntu 24 / Debian reported)

Orca version

Unknown (headless AppImage from releases / latest)

Details

Summary

Community reports of headless remote Orca server pairing failing in two related ways:

  1. After installing and starting orca serve (systemd or foreground AppImage), no pairing code / pairing URL appears in startup output or journal logs — even when following headless-linux-server.md / remote-servers docs, which say the command prints the runtime endpoint and pairing URL.
  2. When a pairing offer is obtained, orca://pair?code=... does not connect.

This blocks pairing mobile/web clients to a remote Linux server.

Environment notes from reporters

  • Ubuntu 24 (docs currently emphasize Ubuntu 22.04 prerequisites — unclear if 24 is unsupported or just undocumented)
  • Debian (second reporter: docs had pitfalls; got past install with custom scripting; still found pairing harder than alternatives)
  • Commands used (foreground, not only systemd):
# Attempt 1 — dbus errors, no pairing line
xvfb-run -a /opt/orca/orca-linux.AppImage --no-sandbox serve --port 6768 --pairing-address <addr>

# Attempt 2 — session bus starts, still no "Orca server ready" / Pairing URL
dbus-run-session xvfb-run -a /opt/orca/orca-linux.AppImage --no-sandbox serve --port 6768 --pairing-address <addr>

Observed terminal output (no pairing code)

Attempt without session bus

xvfb-run -a /opt/orca/orca-linux.AppImage --no-sandbox serve --port 6768 --pairing-address <addr> repeatedly logs D-Bus parse failures and never prints Orca server ready / Pairing URL:

D-Bus errors from xvfb-run AppImage serve

Attempt with dbus-run-session

Session bus activates (org.a11y.Bus) but still no pairing URL / pairing code in the captured output:

dbus-run-session serve with no pairing URL

Expected behavior

  • Foreground or systemd-managed orca serve should reliably emit something operators can copy:
    • Orca server ready: ...
    • Pairing URL: orca://pair?code=...
    • and/or web client URL when applicable
  • If pairing is unavailable (createPairingOffer returns available: false — e.g. missing websocket endpoint / E2EE key / device registry), log an explicit error reason, not silent omission.
  • Docs should cover Ubuntu 24 (and Debian) if supported, including any dbus/Xvfb requirements that differ from Ubuntu 22.04.
  • A valid pairing URL should connect from mobile/desktop clients when the --pairing-address is reachable (LAN, Tailscale, or reverse-proxied endpoint).

Possible leads (not confirmed)

  • Process never reaches printServeReady (stuck earlier on headless Electron / D-Bus / display setup).
  • Pairing offer created but stdout lost under systemd / AppImage / xvfb-run wrapping.
  • createPairingOffer returns available: false silently when getWebSocketEndpoint(), device registry, or E2EE public key is missing (src/main/runtime/runtime-rpc.ts + printServeReady in src/main/index.ts).
  • Wrong or unreachable --pairing-address baked into the offer → orca://pair?code= fails to connect even when printed.
  • Ubuntu 24 / missing packages not called out in docs.

Related

Ask for reporters / repro

  1. Full foreground command + complete stdout/stderr until hang or ready
  2. journalctl -u orca-serve.service -n 200 --no-pager if using systemd
  3. Exact OS image (ubuntu 24.04 / Debian version) and AppImage asset name
  4. Whether --pairing-address is LAN IP, Tailscale, or public hostname
  5. If pairing URL appears with --serve-json / equivalent JSON ready output

Activity

  1. added
    bug
    os:linux
    on Jul 21, 2026
  2. AmethystLiang commented on Jul 21, 2026

    @AmethystLiang
    ContributorAuthor

    Related client/UI path (custom network address + web Local PTYs / console crash): #9760

  3. AmethystLiang commented on Jul 21, 2026

    @AmethystLiang
    ContributorAuthor

    Terminal screenshots (device output only)

    xvfb-run without session bus — D-Bus errors, no pairing code

    D-Bus errors from xvfb-run AppImage serve

    dbus-run-session + xvfb-run — a11y bus up, still no pairing code

    dbus-run-session serve with no pairing URL
  4. added
    orca-remote-server
    on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugorca-remote-serveros:linuxuntriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions