Most/Docs

Most failures

Every functionality most-server runs and every way each can fail, from the server's own failure catalogue.

How a refusal reads#

most-server answers a request it refuses with the cause's HTTP status and a body naming the step that failed and why (`detail`), and, under `error`, the cause (`<functionality>.<cause>`), its fix (`remedy`), its code and whether sending it again can help; a refusal of the request itself (a 4xx) also says what it observed of the request. A failure of the host (a 5xx) keeps what it observed in the service's log line of the same request. A refused start prints what failed, the fix and the cause on stderr and exits with the cause's status: 2 for a usage error, 69 when retrying unchanged can help, 1 otherwise.

This page is generated from the failure catalogue the running most-server prints (`most-server errors list`); a cause whose test cannot run on a developer's machine is listed in the Most repository's tests/untested-causes/ with why.

Refusal body
{"detail": "<the step that failed>: <why>",
 "error": {"code": "config", "service": "backend", "impact": "messaging",
           "retryable": false, "cause": "<functionality>.<cause>",
           "remedy": "<the fix>", "observed": "<the state observed, for a 4xx>"}}

most.server.startup#

Read the arguments and settings, the address to listen on, the API bearer file, the secret settings and the workload key, build the composition, listen and serve until SIGINT or SIGTERM.

Started through: `most-server`, `most-server --version`.

Uses: `most.core.settings`, `most.core.secrets`, `most.server.composition`.

  • `most.server.startup.argument-unknown` — HTTP 400, exit 2. reading the arguments of most-server: most-server takes no argument, '--version', or 'errors list|show', and it was given another. Observed: the arguments were: {given}. Fix: run 'most-server' with its settings in the environment, 'most-server --version', or 'most-server errors list'. Provoked by `tests/server/startup.rs::an_unknown_argument_is_refused_before_anything_starts`.
  • `most.server.startup.bind-unset` — HTTP 503, exit 1. reading MOST_BIND_ADDR: MOST_BIND_ADDR is not set: no address is assumed, so the server has nowhere to listen. Observed: MOST_BIND_ADDR is {state}. Fix: set MOST_BIND_ADDR to the address and port most-server listens on, such as 127.0.0.1:8080, or 127.0.0.1:0 to let the system choose the port, and start it again. Provoked by `tests/server/startup.rs::an_unset_bind_address_is_refused`.
  • `most.server.startup.bind-not-text` — HTTP 503, exit 1. reading MOST_BIND_ADDR: MOST_BIND_ADDR is set but is not UTF-8 text, so it names no address. Observed: MOST_BIND_ADDR holds bytes that are not UTF-8. Fix: set MOST_BIND_ADDR to the address and port most-server listens on, such as 127.0.0.1:8080, or 127.0.0.1:0 to let the system choose the port, and start it again. Provoked by `tests/server/startup.rs::a_bind_address_that_is_not_text_is_refused`.
  • `most.server.startup.bypass-address-invalid` — HTTP 503, exit 1. checking that AUTH_BYPASS=true listens only on loopback: a server that skips bearer checks may listen only on a loopback socket address, and MOST_BIND_ADDR is not a socket address. Observed: MOST_BIND_ADDR is {bind}: {error}. Fix: set MOST_BIND_ADDR to a loopback socket address such as 127.0.0.1:8080, or set AUTH_BYPASS=false. Provoked by `tests/server/startup.rs::a_bypass_on_an_address_that_is_not_a_socket_address_is_refused`.
  • `most.server.startup.bypass-not-loopback` — HTTP 503, exit 1. checking that AUTH_BYPASS=true listens only on loopback: a server that skips bearer checks answers anyone who reaches it, so it may listen only on a loopback address. Observed: MOST_BIND_ADDR is {address}, which is not a loopback address. Fix: set MOST_BIND_ADDR to a loopback address such as 127.0.0.1:8080, or set AUTH_BYPASS=false. Provoked by `tests/server/startup.rs::a_bypass_on_a_public_address_is_refused`.
  • `most.server.startup.composition-not-text` — HTTP 503, exit 1. reading MOST_COMPOSITION: MOST_COMPOSITION is set but is not UTF-8 text, so it names no composition. Observed: MOST_COMPOSITION holds bytes that are not UTF-8. Fix: set MOST_COMPOSITION to none, dev-sms, dev-mac, dev-all, prod, dev-remote or dev-direct-apple, or unset it for none. Provoked by `tests/server/startup.rs::a_composition_that_is_not_text_is_refused`.
  • `most.server.startup.composition-unknown` — HTTP 503, exit 1. reading MOST_COMPOSITION: MOST_COMPOSITION names no composition this server builds. Observed: MOST_COMPOSITION is {value}; the compositions are none, dev-sms, dev-mac, dev-all, prod, dev-remote and dev-direct-apple. Fix: set MOST_COMPOSITION to one of the compositions observed, or unset it for none. Provoked by `tests/server/startup.rs::an_unknown_composition_is_refused_naming_the_compositions`.
  • `most.server.startup.token-file-name-not-text` — HTTP 503, exit 1. reading the API bearer from the file MOST_API_TOKEN_FILE names: MOST_API_TOKEN_FILE is set but is not UTF-8 text, so it names no file. Observed: MOST_API_TOKEN_FILE holds bytes that are not UTF-8. Fix: set MOST_API_TOKEN_FILE to the path of the owner-only file holding the API bearer, or unset it to use the Skarbiec capabilities. Provoked by `tests/server/startup.rs::a_bearer_file_name_that_is_not_text_is_refused`.
  • `most.server.startup.token-file-unreadable` — HTTP 503, exit 1. reading the API bearer from the file MOST_API_TOKEN_FILE names: the file cannot be read, so no bearer can be checked. Observed: MOST_API_TOKEN_FILE={path}: {error}. Fix: create the file with the bearer in it, readable by the user most-server runs as (chmod 600), or point MOST_API_TOKEN_FILE at it. Provoked by `tests/server/startup.rs::a_bearer_file_that_does_not_exist_is_refused_as_configuration`.
  • `most.server.startup.token-file-shared` — HTTP 503, exit 1. reading the API bearer from the file MOST_API_TOKEN_FILE names: the file is readable or writable by users other than its owner, so the bearer is not kept secret. Observed: MOST_API_TOKEN_FILE={path} has permissions {mode}. Fix: run 'chmod go-rwx {path}' and start most-server again. Provoked by `tests/server/startup.rs::a_bearer_file_others_can_read_is_refused`.
  • `most.server.startup.token-file-empty` — HTTP 503, exit 1. reading the API bearer from the file MOST_API_TOKEN_FILE names: the file holds nothing but whitespace, and an empty bearer would let nothing in. Observed: MOST_API_TOKEN_FILE={path} is empty. Fix: write the bearer clients send in MOST_AGENT_API_TOKEN into {path}. Provoked by `tests/server/startup.rs::an_empty_bearer_file_is_refused`.
  • `most.server.startup.listen-refused` — HTTP 503, exit 1. listening on MOST_BIND_ADDR {bind}: another program already listens on port {port} of that address. Observed: MOST_BIND_ADDR is {bind}; the system answered {kind}{os}: {error}. Fix: stop the program holding the port ('lsof -nP -iTCP:{port} -sTCP:LISTEN' names it), or set MOST_BIND_ADDR to a free port of this host (127.0.0.1:0 lets the system choose one). Provoked by `tests/server/startup.rs::a_port_another_program_holds_is_refused_naming_the_address`.
  • `most.server.startup.listen-forbidden` — HTTP 503, exit 1. listening on MOST_BIND_ADDR {bind}: the system does not let the user most-server runs as listen on port {port} (a port under 1024 needs privileges on most systems). Observed: MOST_BIND_ADDR is {bind}; the system answered {kind}{os}: {error}. Fix: set MOST_BIND_ADDR to a port from 1024 up, such as 127.0.0.1:8080, and put a proxy in front for a lower one. Provoked by `tests/server/startup.rs::a_port_this_user_may_not_listen_on_is_refused`.
  • `most.server.startup.listen-address-foreign` — HTTP 503, exit 1. listening on MOST_BIND_ADDR {bind}: the address is not one of this host's network interfaces, so nothing can listen on it here. Observed: MOST_BIND_ADDR is {bind}; the system answered {kind}{os}: {error}. Fix: set MOST_BIND_ADDR to an address of this host ('ifconfig' or 'ip addr' lists them; 0.0.0.0 listens on all), and start most-server again. Provoked by `tests/server/startup.rs::an_address_of_another_host_is_refused`.
  • `most.server.startup.listen-address-unread` — HTTP 503, exit 1. listening on MOST_BIND_ADDR {bind}: the value is not host:port, or its host name does not resolve to an address. Observed: MOST_BIND_ADDR is {bind}; the system answered {kind}{os}: {error}. Fix: set MOST_BIND_ADDR to the address and port most-server listens on, such as 127.0.0.1:8080, or 127.0.0.1:0 to let the system choose the port, and start it again. Provoked by `tests/server/startup.rs::an_address_that_is_not_host_and_port_is_refused`.
  • `most.server.startup.listen-failed` — HTTP 503, exit 69, and sending it again can help. listening on MOST_BIND_ADDR {bind}: the system refused to open a listening socket there for a reason other than a held port, a privilege or a foreign address (out of file descriptors, a network that is down). Observed: MOST_BIND_ADDR is {bind}; the system answered {kind}{os}: {error}. Fix: repair what the system's answer names ('ulimit -n' for descriptors), then start most-server again. Provoked by `tests/server/startup.rs::a_listener_the_system_cannot_open_is_refused`.
  • `most.server.startup.address-unreadable` — HTTP 503, exit 69, and sending it again can help. reading the address most-server listens on: the system did not say which address the listening socket was given. Observed: the socket listens for MOST_BIND_ADDR {bind}; getsockname answered {kind}{os}: {error}. Fix: start most-server again; the system's own log names why the socket has no address. Provoked by `tests/server/startup.rs::a_listener_without_an_address_is_refused_as_retryable`.
  • `most.server.startup.serve-failed` — HTTP 503, exit 69, and sending it again can help. serving requests on {address}: the listening socket stopped accepting connections. Observed: most-server listened on {address} for MOST_BIND_ADDR {bind}; the system answered {kind}{os}: {error}. Fix: start most-server again; the system's answer names what it refused. Provoked by `tests/server/startup.rs::a_listener_that_stops_accepting_ends_the_server_as_retryable`.
  • `most.server.startup.interrupt-unheard` — HTTP 503, exit 1. listening for the signals that stop most-server: the SIGINT (Ctrl-C) handler could not be installed, so Ctrl-C no longer drains most-server; SIGTERM still does. Observed: installing the SIGINT handler, the runtime answered: {error}. Fix: stop most-server with SIGTERM ('kill <pid>'), which drains it; start it again to listen for Ctrl-C. Provoked by `tests/server/startup.rs::a_server_that_cannot_hear_ctrl_c_still_stops_on_sigterm`.
  • `most.server.startup.interrupt-ended` — HTTP 503, exit 1. listening for the signals that stop most-server: the SIGINT (Ctrl-C) listener ended without a signal, so Ctrl-C no longer drains most-server; SIGTERM still does. Observed: the SIGINT stream answered no further signal. Fix: stop most-server with SIGTERM ('kill <pid>'), which drains it, and start it again. Provoked by `tests/server/startup.rs::a_server_whose_ctrl_c_listener_ends_still_stops_on_sigterm`.
  • `most.server.startup.terminate-unheard` — HTTP 503, exit 1. listening for the signals that stop most-server: the SIGTERM handler could not be installed, so a supervisor's stop ends most-server without draining; Ctrl-C still drains it. Observed: installing the SIGTERM handler, the runtime answered: {error}. Fix: stop most-server with Ctrl-C (SIGINT), which drains it; start it again to listen for SIGTERM. Provoked by `tests/server/startup.rs::a_server_that_cannot_hear_sigterm_still_stops_on_ctrl_c`.
  • `most.server.startup.terminate-ended` — HTTP 503, exit 1. listening for the signals that stop most-server: the SIGTERM listener ended without a signal, so a supervisor's stop no longer drains most-server; Ctrl-C still does. Observed: the SIGTERM stream answered no further signal. Fix: stop most-server with Ctrl-C (SIGINT), which drains it, and start it again. Provoked by `tests/server/startup.rs::a_server_whose_sigterm_listener_ends_still_stops_on_ctrl_c`.

most.server.composition#

Open the storage MOST_COMPOSITION names, register its Twilio channels, Telegram and WhatsApp channels, phone calls, mac-relay pool, direct-Apple backend and remote-worker pools, and start every registered backend.

Run by the functionalities that use it.

Uses: `most.core.database`, `most.core.storage`, `most.core.backend`, `most.mac_relay.setup`, `most.mac_relay.speech`, `most.twilio.settings`, `most.telegram.send`, `most.telegram.receive`, `most.whatsapp.send`, `most.core.secrets`, `most.core.webhook_delivery`, `most.direct_apple.build`.

  • `most.server.composition.anisette-interval-unset` — HTTP 503, exit 1. registering the direct-Apple backend of the {composition} composition: ANISETTE_ROTATE_INTERVAL_SECONDS is not set: no interval between Anisette rotations is assumed. Observed: ANISETTE_ROTATE_INTERVAL_SECONDS is unset or empty. Fix: set ANISETTE_ROTATE_INTERVAL_SECONDS to the seconds between Anisette rotations, shorter than the time Apple accepts one validation_data, or set MOST_DIRECT_APPLE_ENABLED=false. Provoked by `tests/server/composition.rs::a_direct_apple_backend_without_a_rotation_interval_is_refused`.
  • `most.server.composition.anisette-interval-invalid` — HTTP 503, exit 1. registering the direct-Apple backend of the {composition} composition: ANISETTE_ROTATE_INTERVAL_SECONDS is not a whole number of seconds above zero. Observed: ANISETTE_ROTATE_INTERVAL_SECONDS is {value}: {error}. Fix: set ANISETTE_ROTATE_INTERVAL_SECONDS to a whole number of seconds above zero, and start most-server again. Provoked by `tests/server/composition.rs::a_rotation_interval_of_zero_is_refused`.
  • `most.server.composition.mac-relay-unhosted` — HTTP 503, exit 1. registering the mac-relay pool of the {composition} composition: the Mac relay drives Messages.app, which runs only on macOS, and this host is not macOS, so the pool is not registered and iMessage sends are refused as not implemented. Observed: most-server was built for {os}. Fix: run the {composition} composition on a Mac signed in to Messages.app, or set MOST_COMPOSITION to one without the Mac relay. Provoked by `tests/server/composition.rs::a_mac_composition_off_macos_registers_no_mac_relay`.

most.server.remote_workers#

Mount the remote-worker control plane: one pool per REMOTE_WORKER_POOL_KINDS kind, the certificate header the ingress fills, and the bearer each worker connects with.

Started through: `most-server (MOST_COMPOSITION=dev-remote, or prod with REMOTE_WORKER_CA_CERT)`, `GET REMOTE_WORKER_WS_PATH (a worker's connection)`.

Uses: `most.core.secrets`.

  • `most.server.remote_workers.ca-unset` — HTTP 503, exit 1. mounting the remote-worker control plane: REMOTE_WORKER_CA_CERT is not set, so no worker certificate can be checked; REMOTE_WORKER_WS_PATH is not served and no worker can connect. Observed: REMOTE_WORKER_CA_CERT is unset or empty. Fix: set REMOTE_WORKER_CA_CERT to the PEM of the CA that signs worker certificates, and start most-server again. Provoked by `tests/server/composition.rs::a_remote_composition_without_a_worker_ca_logs_why`.
  • `most.server.remote_workers.cert-header-unset` — HTTP 503, exit 1. mounting the remote-worker control plane: the header the ingress puts a worker's verified certificate in is not declared. Observed: REMOTE_WORKER_CERT_HEADER is unset or blank. Fix: set REMOTE_WORKER_CERT_HEADER to the header the ingress in front of most-server fills, and start most-server again. Provoked by `tests/server/composition.rs::a_remote_composition_without_a_certificate_header_logs_why`.
  • `most.server.remote_workers.kinds-empty` — HTTP 503, exit 1. mounting the remote-worker control plane: REMOTE_WORKER_POOL_KINDS names no pool, so every connecting worker would be refused as unwired. Observed: REMOTE_WORKER_POOL_KINDS is {value}. Fix: set REMOTE_WORKER_POOL_KINDS to the comma-separated kinds workers connect as, and start most-server again. Provoked by `tests/server/composition.rs::a_remote_composition_without_pool_kinds_logs_why`.
  • `most.server.remote_workers.worker-bearer-missing` — HTTP 401, exit 1. admitting a remote worker's connection: the connection carries no single 'Authorization: Bearer <token>' header to check. Observed: the Authorization header {state}. Fix: start the worker with the bearer MOST_REMOTE_WORKER_SECRET names in the store Stado hands out. Provoked by `tests/server/remote_workers.rs::a_worker_without_a_bearer_is_refused`.
  • `most.server.remote_workers.worker-bearer-invalid` — HTTP 401, exit 1. admitting a remote worker's connection: the bearer is not the remote-worker secret MOST_REMOTE_WORKER_SECRET names. Observed: the bearer the worker sent did not match. Fix: start the worker with the bearer MOST_REMOTE_WORKER_SECRET names in the store Stado hands out. Provoked by `tests/server/remote_workers.rs::a_worker_with_a_wrong_bearer_is_refused`.
  • `most.server.remote_workers.worker-secret-unset` — HTTP 503, exit 1. admitting a remote worker's connection: MOST_REMOTE_WORKER_SECRET is not set, so no worker's bearer can be checked. Observed: MOST_REMOTE_WORKER_SECRET is unset or empty. Fix: set MOST_REMOTE_WORKER_SECRET to the ITEM#FIELD holding the workers' bearer in the store Stado hands out, and start most-server again. Provoked by `tests/server/remote_workers.rs::a_worker_on_a_server_without_a_worker_secret_is_refused_as_configuration`.

most.server.authorization#

Compare the request's bearer with the one MOST_API_TOKEN_FILE holds or the secrets WISENT_BACKEND_MOST_API_SECRET and MOST_AGENT_API_SECRET name in the store Stado hands out; for POST /v3/chats, accept instead a Wisent user session the identity project Stado hands out places in the organization the request names.

Started through: `every /v3 route but /v3/attachments and /v3/providers (Authorization: Bearer)`, `POST /v3/chats (a Wisent user session and X-Wisent-Organization-ID)`.

Uses: `most.core.secrets`, `most.server.identity`.

  • `most.server.authorization.bearer-missing` — HTTP 401, exit 1. authorizing {request}: the request carries no 'Authorization' header, so there is no bearer to check. Observed: no Authorization header was sent. Fix: send the bearer the service accepts as 'Authorization: Bearer <token>': the token in the file MOST_API_TOKEN_FILE names, or the one MOST_AGENT_API_SECRET names in the store Stado hands out (most-cli reads it from MOST_AGENT_API_TOKEN). Provoked by `tests/server/authorization.rs::a_request_without_a_bearer_is_refused`.
  • `most.server.authorization.bearer-repeated` — HTTP 401, exit 1. authorizing {request}: a request is authorized by one bearer, and this one sends several 'Authorization' headers, so which one to check is not known. Observed: {count} Authorization headers were sent. Fix: send exactly one 'Authorization: Bearer <token>' header; a client or proxy that adds its own must be told not to. Provoked by `tests/server/authorization.rs::a_request_with_two_authorization_headers_is_refused`.
  • `most.server.authorization.bearer-malformed` — HTTP 401, exit 1. authorizing {request}: the 'Authorization' header is not 'Bearer <token>': the word Bearer, one space and a token without spaces or control characters, in visible ASCII. Observed: the Authorization header {state}. Fix: send the bearer the service accepts as 'Authorization: Bearer <token>': the token in the file MOST_API_TOKEN_FILE names, or the one MOST_AGENT_API_SECRET names in the store Stado hands out (most-cli reads it from MOST_AGENT_API_TOKEN). Provoked by `tests/server/authorization.rs::a_bearer_that_is_not_bearer_token_is_refused`.
  • `most.server.authorization.bearer-invalid` — HTTP 401, exit 1. authorizing {request}: the bearer is not the one this service accepts. Observed: the {length}-character bearer the request carried matched none of what it is compared with: {compared}. Fix: send the bearer the service accepts as 'Authorization: Bearer <token>': the token in the file MOST_API_TOKEN_FILE names, or the one MOST_AGENT_API_SECRET names in the store Stado hands out (most-cli reads it from MOST_AGENT_API_TOKEN). Provoked by `tests/cli/service.rs::a_wrong_bearer_is_refused_as_authentication`.
  • `most.server.authorization.bearer-unconfigured` — HTTP 503, exit 1. authorizing {request}: this server holds no bearer to compare with: neither MOST_API_TOKEN_FILE nor a Most API secret is set. Observed: MOST_API_TOKEN_FILE, WISENT_BACKEND_MOST_API_SECRET and MOST_AGENT_API_SECRET are unset. Fix: set MOST_API_TOKEN_FILE to an owner-only file holding the bearer, or MOST_AGENT_API_SECRET to the ITEM#FIELD holding it in the store Stado hands out, and start most-server again. Provoked by `tests/server/authorization.rs::a_server_without_a_bearer_refuses_as_configuration`.
  • `most.server.authorization.organization-header-invalid` — HTTP 400, exit 2. authorizing a Wisent user's new conversation: a Wisent user session starts a conversation for one organization, named by a single X-Wisent-Organization-ID header holding its UUID. Observed: X-Wisent-Organization-ID {state}. Fix: send X-Wisent-Organization-ID once, with the UUID of the organization the user acts for. Provoked by `tests/server/authorization.rs::a_user_session_without_an_organization_is_refused`.
  • `most.server.authorization.organization-forbidden` — HTTP 403, exit 1. authorizing a Wisent user's new conversation: the user is not a member of the organization the request names. Observed: the identity authority's rest/v1/rpc/authorize_organization answered {answer} for user {user} and organization {organization}. Fix: name an organization the user belongs to, or have its owner add the user. Provoked by `tests/server/authorization.rs::a_user_outside_the_organization_is_refused`.

most.server.identity#

Ask the identity project `stado capabilities resolve identity --consumer most` hands out, with the public key MOST_WISENT_AUTH_ANON_KEY holds, who a user session belongs to (auth/v1/user) and whether it holds a grant in the organization a request names (rest/v1/rpc/authorize_organization).

Run by the functionalities that use it.

Uses: `most.core.alternatives`.

  • `most.server.identity.key-unset` — HTTP 503, exit 1. signing in to the Wisent identity project: MOST_WISENT_AUTH_ANON_KEY, the public key the identity project takes from Most, is unset or blank, so no user session can be checked. Observed: MOST_WISENT_AUTH_ANON_KEY is unset or blank. Fix: set MOST_WISENT_AUTH_ANON_KEY to the identity project's public key and start most-server again. Provoked by `tests/server/authorization.rs::a_user_session_on_a_server_without_an_identity_key_is_refused_as_configuration`.
  • `most.server.identity.provider-unsupported` — HTTP 503, exit 1. asking Stado which identity project checks a user session: Stado handed out an identity alternative Most cannot ask: Most asks a Supabase identity project. Observed: provider {provider} at {route}. Fix: put supabase first in the identity order ('stado capabilities select --order supabase identity'), or update Most to a release that asks {provider}. Provoked by `tests/server/authorization.rs::an_identity_provider_most_does_not_ask_is_refused`.
  • `most.server.identity.route-not-url` — HTTP 503, exit 1. asking Stado which identity project checks a user session: the address Stado handed out for the identity project is not a URL, so no request can be built on it. Observed: Stado handed out {route} ({length} characters); the URL parser said {error}. Fix: set the identity project's https origin, with no user, password, query or fragment, in Stado's configuration ('stado config set capabilities.identity.url https://PROJECT.example'). Provoked by `tests/server/authorization.rs::an_identity_route_that_is_not_an_https_origin_is_refused`.
  • `most.server.identity.route-not-https` — HTTP 503, exit 1. asking Stado which identity project checks a user session: the address Stado handed out for the identity project is not an https address with a host, so a user's session would travel unencrypted or nowhere. Observed: Stado handed out {route}: scheme {scheme}, host {host}. Fix: set the identity project's https origin, with no user, password, query or fragment, in Stado's configuration ('stado config set capabilities.identity.url https://PROJECT.example'). Provoked by `tests/server/authorization.rs::an_identity_route_that_is_not_an_https_origin_is_refused`.
  • `most.server.identity.route-credentials` — HTTP 503, exit 1. asking Stado which identity project checks a user session: the address Stado handed out for the identity project carries a user or a password, which would go with every user session Most checks. Observed: Stado handed out {route}: user {user}, {password}. Fix: set the identity project's https origin, with no user, password, query or fragment, in Stado's configuration ('stado config set capabilities.identity.url https://PROJECT.example'). Provoked by `tests/server/authorization.rs::an_identity_route_that_is_not_an_https_origin_is_refused`.
  • `most.server.identity.route-query` — HTTP 503, exit 1. asking Stado which identity project checks a user session: the address Stado handed out for the identity project carries a query or a fragment, so the paths Most asks would be ambiguous. Observed: Stado handed out {route}: query {query}, fragment {fragment}. Fix: set the identity project's https origin, with no user, password, query or fragment, in Stado's configuration ('stado config set capabilities.identity.url https://PROJECT.example'). Provoked by `tests/server/authorization.rs::an_identity_route_that_is_not_an_https_origin_is_refused`.
  • `most.server.identity.client-unbuildable` — HTTP 503, exit 1. building the HTTP client the identity project is asked with: the TLS backend most-server is built with could not start, so no HTTPS request can be made. Observed: the client for {provider} at {route} was being built; {proxies}; reqwest said {error}. Fix: check the host's TLS roots and certificates most-server reads (the system trust store), then send the request again. Provoked by `tests/server/authorization.rs::an_identity_client_without_tls_is_refused`.
  • `most.server.identity.unreachable` — HTTP 503, exit 69, and sending it again can help. asking the Wisent identity project about a user session ({step}): the identity project did not answer: the connection, TLS or request failed before any status came back. Observed: {route}: {error}. Fix: send the request again; the next one asks Stado again and names this alternative as failed ('stado capabilities list identity' shows its proof). Provoked by `tests/server/authorization.rs::an_identity_project_that_does_not_answer_is_refused_as_retryable`.
  • `most.server.identity.failing` — HTTP 503, exit 69, and sending it again can help. asking the Wisent identity project about a user session ({step}): the identity project answered with a server error, so it could not say who the session belongs to. Observed: it answered {status}. Fix: send the request again once the identity project answers; its own status page or logs say why it failed. Provoked by `tests/server/authorization.rs::an_identity_project_failing_on_its_side_is_refused_as_retryable`.
  • `most.server.identity.request-refused` — HTTP 503, exit 1. asking the Wisent identity project about a user session ({step}): the identity project refused the request's form: the address Stado handed out serves no such endpoint, or the project follows another contract than Most's. Observed: it answered {status}. Fix: point Stado at the Wisent identity project that serves auth/v1/user and rest/v1/rpc/authorize_organization ('stado config set capabilities.identity.url ORIGIN'), or update Most to the project's contract. Provoked by `tests/server/authorization.rs::an_identity_project_refusing_the_request_is_refused`.
  • `most.server.identity.answer-broken` — HTTP 503, exit 69, and sending it again can help. asking the Wisent identity project about a user session ({step}): the identity project's answer broke off before its body was whole. Observed: {url} answered {status}{content_type} and the body broke off; reqwest said {error}. Fix: send the request again. Provoked by `tests/server/authorization.rs::an_identity_answer_that_breaks_off_is_refused_as_retryable`.
  • `most.server.identity.answer-unreadable` — HTTP 503, exit 1. asking the Wisent identity project about a user session ({step}): the identity project answered success with a body that is not the user or grant Most reads. Observed: {url} answered {status} with {length} bytes{content_type}; serde_json said {error} at line {line}, column {column}. Fix: point Stado at the Wisent identity project, whose authorize_organization answers user_id, organization_id and role ('stado config set capabilities.identity.url ORIGIN'), or update Most to its contract. Provoked by `tests/server/authorization.rs::an_identity_answer_of_another_shape_is_refused`.

most.server.request#

Read the path parameters, the query and the JSON body of a request, and refuse one the route does not take before it reads or writes anything.

Run by the functionalities that use it.

  • `most.server.request.path-invalid` — HTTP 400, exit 2. reading the path of {method} {path}: the path segment {segment} is {value}, which is not {expected}. Observed: the request was {method} {path}; the path reader said {said}. Fix: name the object by the id Most answered when it was created. Provoked by `tests/server/requests.rs::a_chat_id_that_is_not_a_uuid_is_refused`.
  • `most.server.request.path-not-utf8` — HTTP 400, exit 2. reading the path of {method} {path}: the path segment {segment}, once its percent escapes are decoded, is not UTF-8 text. Observed: the request was {method} {path}. Fix: percent-encode the UTF-8 bytes of the segment, or name the object by the id Most answered when it was created. Provoked by `tests/server/requests.rs::a_path_segment_that_is_not_utf8_is_refused`.
  • `most.server.request.path-unmatched` — HTTP 500, exit 1. reading the path of {method} {path}: the route reads its path into a type that does not fit the path it is mounted at ({mismatch}): a defect of this most-server build, not of the request. Observed: the request was {method} {path}; the path reader said {said}. Fix: report the route and the build 'most-server --version' names to Most's maintainers; the route answers this until a release mounts it with a reader that fits. Provoked by `tests/server/requests.rs::a_route_whose_path_reader_does_not_fit_is_refused`.
  • `most.server.request.query-invalid` — HTTP 400, exit 2. reading the query of {method} {path}: the query parameter {parameter} is {value}, which is not a value of the type the route reads it as. Observed: the request was {method} {path} with the query parameters {sent}; the query reader said {said}. Fix: send {parameter} with a value of the type the route documents (a switch is true or false, a count a whole number, an id a UUID). Provoked by `tests/server/requests.rs::a_switch_parameter_that_is_not_a_boolean_is_refused`.
  • `most.server.request.query-parameter-missing` — HTTP 400, exit 2. reading the query of {method} {path}: the route requires the query parameter {parameter}, and the query does not send it. Observed: the request was {method} {path} with the query parameters {sent}. Fix: send {parameter}=<value> in the query, as the route documents. Provoked by `tests/server/requests.rs::a_required_query_parameter_left_out_is_refused`.
  • `most.server.request.query-parameter-repeated` — HTTP 400, exit 2. reading the query of {method} {path}: the query sends {parameter} more than once, and the route reads one value of it. Observed: the request was {method} {path} with the query parameters {sent}. Fix: send {parameter} once. Provoked by `tests/server/requests.rs::a_query_parameter_sent_twice_is_refused`.
  • `most.server.request.body-content-type` — HTTP 422, exit 2. reading the body of {method} {path}: the request names its body {content_type}, and the route reads only a JSON body (application/json, or a type ending in +json). Observed: the request was {method} {path} with Content-Type {content_type}. Fix: send the body as JSON with Content-Type: application/json. Provoked by `tests/server/request_bodies.rs::a_body_not_named_json_is_refused`.
  • `most.server.request.body-content-type-missing` — HTTP 422, exit 2. reading the body of {method} {path}: the request names no type for its body (no Content-Type header), and the route reads only a JSON body. Observed: the request was {method} {path} without a Content-Type header. Fix: send the body as JSON with Content-Type: application/json. Provoked by `tests/server/request_bodies.rs::a_body_without_a_content_type_is_refused`.
  • `most.server.request.body-content-type-not-text` — HTTP 422, exit 2. reading the body of {method} {path}: the request's Content-Type header is not visible ASCII, so it names no type, and the route reads only a JSON body. Observed: the request was {method} {path} with a Content-Type of {bytes} bytes that are not visible ASCII. Fix: send the body as JSON with Content-Type: application/json. Provoked by `tests/server/request_bodies.rs::a_content_type_that_is_not_text_is_refused`.
  • `most.server.request.form-content-type` — HTTP 415, exit 2. reading the body of {method} {path}: the request names its body {content_type}, and the route reads only the form a provider posts (application/x-www-form-urlencoded). Observed: the request was {method} {path} with Content-Type {content_type}. Fix: post the provider's callback as application/x-www-form-urlencoded, as Twilio does; the route is the provider's own, not the service API's. Provoked by `tests/server/calls.rs::a_provider_request_that_is_not_a_form_is_refused`.
  • `most.server.request.form-content-type-missing` — HTTP 415, exit 2. reading the body of {method} {path}: the request names no type for its body (no Content-Type header), and the route reads only the form a provider posts. Observed: the request was {method} {path} without a Content-Type header. Fix: post the provider's callback as application/x-www-form-urlencoded, as Twilio does; the route is the provider's own, not the service API's. Provoked by `tests/server/calls.rs::a_provider_request_without_a_content_type_is_refused`.
  • `most.server.request.form-content-type-not-text` — HTTP 415, exit 2. reading the body of {method} {path}: the request's Content-Type header is not visible ASCII, so it names no type, and the route reads only the form a provider posts. Observed: the request was {method} {path} with a Content-Type of {bytes} bytes that are not visible ASCII. Fix: post the provider's callback as application/x-www-form-urlencoded, as Twilio does; the route is the provider's own, not the service API's. Provoked by `tests/server/calls.rs::a_provider_request_whose_content_type_is_not_text_is_refused`.
  • `most.server.request.body-too-large` — HTTP 422, exit 2. reading the body of {method} {path}: the body is longer than the limit axum puts on a request body (its DefaultBodyLimit, 2 MiB, which no Most route raises). Observed: the request was {method} {path} with Content-Length {length}; the body reader said {said}. Fix: send a body under 2 MiB; an audio file or a picture is named by its path or URL (audio_path, profile_picture_url), never sent inline. Provoked by `tests/server/request_bodies.rs::a_body_over_the_limit_is_refused`.
  • `most.server.request.body-broken` — HTTP 422, exit 69, and sending it again can help. reading the body of {method} {path}: the body stopped arriving before it was whole: the connection broke or the client stopped sending. Observed: the request was {method} {path} with Content-Length {length}; the body reader said {said}. Fix: send the request again over a connection that stays open until the whole body is sent. Provoked by `tests/server/request_bodies.rs::a_body_that_breaks_off_is_refused`.
  • `most.server.request.body-not-json` — HTTP 422, exit 2. reading the body of {method} {path}: the body is not JSON: at line {line}, column {column} it holds a character JSON does not allow there. Observed: the request was {method} {path}; the JSON reader said {said}. Fix: send the body as one JSON object, as the route documents. Provoked by `tests/server/request_bodies.rs::a_body_that_is_not_json_is_refused`.
  • `most.server.request.body-incomplete` — HTTP 422, exit 2. reading the body of {method} {path}: the body ends at line {line}, column {column} before the JSON value it starts is complete (an empty body included). Observed: the request was {method} {path}; the JSON reader said {said}. Fix: send the whole JSON object the route documents, every bracket and quote closed. Provoked by `tests/server/request_bodies.rs::an_empty_body_is_refused`.
  • `most.server.request.body-unreadable` — HTTP 422, exit 2. reading the body of {method} {path}: the body is JSON, and at {field} it does not hold what the route reads there (serde's data category: a field the route requires is absent, or a value is of another type). Observed: the request was {method} {path}; the JSON reader said {said}. Fix: send {field} as the route documents it, with the fields it requires. Provoked by `tests/server/request_bodies.rs::a_body_of_another_shape_is_refused`.
  • `most.server.request.limit-invalid` — HTTP 400, exit 2. reading the limit parameter: limit counts the rows to answer and is written in digits only; got {value}. Observed: limit is {value}; the number parser said {said}. Fix: send limit as a whole number above zero, such as 50, or leave it out for the whole list. Provoked by `tests/server/requests.rs::a_limit_that_is_not_a_number_is_refused`.
  • `most.server.request.limit-zero` — HTTP 400, exit 2. reading the limit parameter: limit counts the rows to answer and starts at 1, so 0 would answer nothing; got {value}. Observed: limit is {value}. Fix: send limit as a whole number above zero, or leave it out for the whole list. Provoked by `tests/server/requests.rs::a_limit_of_zero_is_refused`.
  • `most.server.request.limit-too-large` — HTTP 400, exit 2. reading the limit parameter: limit {value} is above {largest}, the largest LIMIT the database takes (a signed 64-bit count). Observed: limit is {value}. Fix: send a limit of at most {largest}, or leave it out for the whole list. Provoked by `tests/server/requests.rs::a_limit_above_the_database_count_is_refused`.
  • `most.server.request.since-invalid` — HTTP 400, exit 2. reading the since parameter: since must be an RFC 3339 timestamp, date, time and offset; got {value}. Observed: since is {value}; the time parser said {said}. Fix: send since as an RFC 3339 timestamp such as 2026-01-31T09:00:00Z, or leave it out. Provoked by `tests/server/requests.rs::a_since_that_is_not_a_timestamp_is_refused`.
  • `most.server.request.since-impossible` — HTTP 400, exit 2. reading the since parameter: since {value} is written as an RFC 3339 timestamp, and names a day, hour or offset that does not exist. Observed: since is {value}; the time parser said {said}. Fix: send since as a time that exists, such as 2026-01-31T09:00:00Z, or leave it out. Provoked by `tests/server/requests.rs::a_since_that_names_no_real_time_is_refused`.
  • `most.server.request.route-unknown` — HTTP 404, exit 1. routing {method} {path}: no route of this most-server is mounted at {path}. Observed: the request was {method} {path}. Fix: send the request to a route docs/interfaces.md lists, spelled as it lists it; a diagnostic under /internal/ is mounted only on a loopback request to a server whose composition carries it. Provoked by `tests/server/requests.rs::a_path_no_route_is_mounted_at_is_refused`.
  • `most.server.request.method-refused` — HTTP 405, exit 2. routing {method} {path}: the route at {path} does not answer {method}. Observed: the request was {method} {path}. Fix: send the method docs/interfaces.md lists for {path}. Provoked by `tests/server/requests.rs::a_method_the_route_does_not_answer_is_refused`.

most.server.wiring#

Find what the composition wired for a route: the storage chats, webhooks, the outbox and adopted accounts are kept in.

Run by the functionalities that use it.

  • `most.server.wiring.storage-unwired` — HTTP 501, exit 1. finding the storage {kind} are kept in: the {composition} composition opens no storage, so there are no {kind}. Observed: MOST_COMPOSITION is {composition}. Fix: start most-server with a composition that opens storage: dev-sms, dev-mac, dev-all, dev-remote, dev-direct-apple or prod. Provoked by `tests/server/requests.rs::a_chat_route_without_storage_is_refused_as_configuration`.

most.server.chat#

Read the chat a route names from storage, and find the one registered backend (or the pool of the worker it is pinned to) that carries it.

Run by the functionalities that use it.

Uses: `most.server.wiring`, `most.core.storage`, `most.core.backend`.

  • `most.server.chat.transport-unregistered` — HTTP 503, exit 1. finding the backend that carries chat {chat}: no backend this composition registered carries the chat's transport. Observed: chat {chat} is carried by {backend}; the registered backends are {registered}. Fix: start most-server with the composition that registers {backend}, with its settings declared. Provoked by `tests/server/requests.rs::a_chat_whose_transport_is_not_registered_is_refused_as_configuration`.
  • `most.server.chat.transport-ambiguous` — HTTP 503, exit 1. finding the backend that carries chat {chat}: more than one registered backend claims the chat's transport, so the chat has no one owner. Observed: chat {chat} is carried by {backend}; the registered backends are {registered}. Fix: register one backend per transport: remove the kind that duplicates {backend} from REMOTE_WORKER_POOL_KINDS. Provoked by `tests/server/requests.rs::a_transport_two_backends_claim_is_refused_as_configuration`.

most.server.chats#

Create a chat on the backend the recipient and the preferred service pick, and send messages, edits, unsends, typing, voice and reactions on a chat through the backend that carries it.

Started through: `POST /v3/chats`, `POST /v3/chats/{chat_id}/messages`, `POST /v3/chats/{chat_id}/messages/{message_id}/edit`, `DELETE /v3/chats/{chat_id}/messages/{message_id}`, `POST /v3/chats/{chat_id}/typing`, `POST /v3/chats/{chat_id}/voice`, `POST /v3/chats/{chat_id}/voice-from-text`, `POST /v3/chats/{chat_id}/reactions`.

Uses: `most.server.request`, `most.core.message_body`, `most.server.chat`, `most.core.backend`, `most.mac_relay.messaging`, `most.mac_relay.speech`.

  • `most.server.chats.answer-unencodable` — HTTP 500, exit 1. encoding what the {backend} backend answered as JSON: the answer holds a value JSON cannot carry, so the caller would be told of a message with no fields. Observed: the {backend} backend answered a {answer}; serde_json said {error}. Fix: read the message back from storage; the observed error names the value, and the message itself was sent. Provoked by `tests/server/requests.rs::an_answer_json_cannot_carry_is_refused`.
  • `most.server.chats.speech-unwired` — HTTP 501, exit 1. rendering the text of a voice message as speech: speech is rendered by the mac-relay pool's synthesizer, and the {composition} composition registered none. Observed: no mac-relay pool is registered on this server. Fix: send it to the most-server on the Mac whose composition is dev-mac, dev-all or prod, or send a recorded file to POST /v3/chats/<chat>/voice. Provoked by `tests/server/requests.rs::a_voice_from_text_without_a_synthesizer_is_refused_as_configuration`.

most.server.location#

Read the latest positions and the location shares of a chat's participants, or the history of their positions, as the mac-relay bridge stored them.

Started through: `GET /v3/chats/{chat_id}/location`, `GET /v3/chats/{chat_id}/location/history`.

Uses: `most.server.request`, `most.server.chat`, `most.core.storage`.

  • It declares no cause of its own: it fails as the functionalities it uses do.

most.server.attachments#

Verify the link's signature, read the attachment's row, check that its file lies under ~/Library/Messages/Attachments, and answer the file's bytes with its stored media type and name.

Started through: `GET /v3/attachments/{attachment_id}?sig=...`.

Uses: `most.server.request`, `most.server.wiring`, `most.core.storage`, `most.core.secrets`.

  • `most.server.attachments.signer-unset` — HTTP 503, exit 1. verifying the link of attachment {attachment}: this server signs no links: MOST_ATTACHMENT_SIGNING_SECRET is not set, so no link it could verify exists. Observed: MOST_ATTACHMENT_SIGNING_SECRET is unset. Fix: set MOST_ATTACHMENT_SIGNING_SECRET to the ITEM#FIELD holding the attachment signing key in the store Stado hands out, and start most-server again. Provoked by `tests/server/attachments.rs::a_link_on_a_server_that_signs_none_is_refused_as_configuration`.
  • `most.server.attachments.signature-invalid` — HTTP 403, exit 1. verifying the link of attachment {attachment}: the signature is not the one this server made for that attachment, or the link's older lifetime has passed. Observed: the link's signature did not verify. Fix: use the link Most put in the webhook event that announced the attachment. Provoked by `tests/server/attachments.rs::a_link_whose_signature_does_not_verify_is_refused`.
  • `most.server.attachments.attachment-absent` — HTTP 404, exit 1. serving attachment {attachment}: no attachment with that id is stored. Observed: storage holds no attachment {attachment}. Fix: use the link of an attachment a webhook event announced. Provoked by `tests/server/attachments.rs::a_link_to_an_attachment_that_is_not_stored_is_refused_as_absent`.
  • `most.server.attachments.path-empty` — HTTP 404, exit 1. serving attachment {attachment}: the attachment's row records no file, so there are no bytes to serve. Observed: attachment {attachment} has an empty local_path. Fix: nothing serves this attachment; Messages.app had not written its file when the row was stored. Provoked by `tests/server/attachments.rs::an_attachment_without_a_file_is_refused_as_absent`.
  • `most.server.attachments.home-unknown` — HTTP 503, exit 1. serving attachment {attachment}: attachments are served from under ~/Library/Messages/Attachments, and no home directory is known. Observed: neither HOME nor the user database names a home for the user most-server runs as. Fix: set HOME for most-server to the home of the user signed in to Messages.app. Provoked by `tests/server/attachments.rs::an_attachment_on_a_server_without_a_home_is_refused_as_configuration`.
  • `most.server.attachments.path-unresolvable` — HTTP 503, exit 69, and sending it again can help. serving attachment {attachment}: the file exists but its path cannot be resolved, so whether it lies under the attachments folder is unknown. Observed: {path}: {error}. Fix: open the link again; when it keeps failing, let the user most-server runs as read every folder on the observed path. Provoked by `tests/server/attachments.rs::an_attachment_whose_path_cannot_be_resolved_is_refused_as_retryable`.
  • `most.server.attachments.outside-root` — HTTP 403, exit 1. serving attachment {attachment}: the attachment's file does not lie under ~/Library/Messages/Attachments, and no file elsewhere is served. Observed: attachment {attachment} records a file outside the attachments folder. Fix: nothing serves this attachment; its row names a file Most does not serve. Provoked by `tests/server/attachments.rs::an_attachment_outside_the_attachments_folder_is_refused`.
  • `most.server.attachments.file-gone` — HTTP 410, exit 1. serving attachment {attachment}: the attachment's file is no longer on disk: Messages.app removed it. Observed: attachment {attachment} records a file that is not there. Fix: nothing serves this attachment any more; ask its sender to send it again. Provoked by `tests/server/attachments.rs::an_attachment_whose_file_is_gone_is_refused_as_gone`.
  • `most.server.attachments.file-unreadable` — HTTP 503, exit 69, and sending it again can help. serving attachment {attachment}: the attachment's file exists and could not be inspected or read. Observed: {path}: {error}. Fix: open the link again; when it keeps failing, give the user most-server runs as read access to the observed file (Full Disk Access on macOS). Provoked by `tests/server/attachments.rs::an_attachment_whose_file_cannot_be_read_is_refused_as_retryable`.
  • `most.server.attachments.media-type-invalid` — HTTP 403, exit 1. serving attachment {attachment}: the attachment's row records a media type that cannot travel as a Content-Type header. Observed: attachment {attachment} records mime_type {media_type}: {error}. Fix: nothing serves this attachment as stored; the bridge that stored the row recorded what chat.db holds. Provoked by `tests/server/attachments.rs::an_attachment_whose_media_type_is_not_a_header_is_refused`.
  • `most.server.attachments.name-not-header` — HTTP 403, exit 1. serving attachment {attachment}: the file's name holds a character a header cannot carry, so the bytes are served without Content-Disposition and the client names the file itself. Observed: attachment {attachment} is the file {name}: {error}. Fix: nothing to repair: the file is served; the name is the one Messages.app gave it under ~/Library/Messages/Attachments. Provoked by `tests/server/attachments.rs::an_attachment_whose_name_is_not_a_header_is_served_without_one`.
  • `most.server.attachments.name-not-text` — HTTP 403, exit 1. serving attachment {attachment}: the file's name is not UTF-8 text, so the bytes are served without Content-Disposition and the client names the file itself. Observed: attachment {attachment} is the file at {path}, whose name is not UTF-8. Fix: nothing to repair: the file is served; the name is the one Messages.app gave it under ~/Library/Messages/Attachments. Provoked by `tests/server/attachments.rs::an_attachment_whose_name_is_not_text_is_served_without_one`.

most.server.webhook_subscriptions#

Store a subscription with its signing secret (hashed with Argon2id, and kept for signing), list subscriptions without their secrets, and remove one.

Started through: `POST /v3/webhook-subscriptions`, `GET /v3/webhook-subscriptions`, `DELETE /v3/webhook-subscriptions/{subscription_id}`.

Uses: `most.server.request`, `most.core.webhook_body`, `most.server.wiring`, `most.core.storage`.

  • `most.server.webhook_subscriptions.secret-params-refused` — HTTP 503, exit 1. hashing the signing secret of a new subscription: the argon2 crate refuses the memory, pass and lane counts this release hashes with, so no secret can be hashed and nothing was stored. Observed: Argon2id m={memory} KiB, t={passes}, p={lanes}, a signing secret of {length} bytes; the argon2 crate said {error}. Fix: run a most-server release built with the argon2 crate its Cargo.lock names ('most-server --version' names the one running). Provoked by `tests/server/webhooks.rs::argon2_parameters_the_crate_refuses_are_named`.
  • `most.server.webhook_subscriptions.secret-unhashed` — HTTP 503, exit 69, and sending it again can help. hashing the signing secret of a new subscription: Argon2id refused to hash the secret with the salt drawn for it, so nothing was stored. Observed: Argon2id m={memory} KiB, t={passes}, p={lanes}, a signing secret of {length} bytes; the argon2 crate said {error}. Fix: send the request again, which draws a new salt; when it repeats, send a signing secret of fewer bytes. Provoked by `tests/server/webhooks.rs::a_secret_argon2_refuses_is_not_stored`.
  • `most.server.webhook_subscriptions.event-unknown` — HTTP 503, exit 1. listing webhook subscriptions: a stored subscription names an event this release does not know. Observed: subscription {subscription} names the event {event}. Fix: run the Most release that wrote the subscription, or delete subscription {subscription} and create it again with events this release lists. Provoked by `tests/server/webhooks.rs::a_stored_event_this_release_does_not_know_is_named`.
  • `most.server.webhook_subscriptions.subscription-absent` — HTTP 404, exit 1. removing webhook subscription {subscription}: no subscription with that id is stored. Observed: storage holds no subscription {subscription}. Fix: name a subscription 'GET /v3/webhook-subscriptions' lists. Provoked by `tests/server/webhooks.rs::removing_a_subscription_that_does_not_exist_is_refused_as_absent`.

most.server.webhook_outbox#

List the events subscribers did not accept, oldest first, and send each again: an accepted event leaves the outbox, any other stays with the newer answer.

Started through: `GET /v3/webhook-outbox`, `POST /v3/webhook-outbox/redeliver`, `most-cli webhook-outbox [redeliver]`.

Uses: `most.server.request`, `most.server.wiring`, `most.core.storage`, `most.core.webhook_delivery`.

  • It declares no cause of its own: it fails as the functionalities it uses do.

most.server.accounts#

List the adopted messaging accounts the storage holds (none when the composition opens no storage), and whether this host can import the Messages.app account.

Started through: `GET /v3/accounts`, `most-cli accounts`.

Uses: `most.core.storage`, `most.account_import.messages`.

  • It declares no cause of its own: it fails as the functionalities it uses do.

most.server.onboarding#

Show this device's progress through the first-use journey, or discard it and show the journey from its first step.

Started through: `GET /v3/onboarding/first-use`, `POST /v3/onboarding/first-use/reset`.

Uses: `most.core.onboarding`.

  • It declares no cause of its own: it fails as the functionalities it uses do.

most.server.call_desk#

Find the call desk the composition built (the voice transport, the public origin the provider calls back, the call store), and read a stored call.

Run by the functionalities that use it.

Uses: `most.core.storage`, `most.twilio.settings`.

  • `most.server.call_desk.composition-without-calls` — HTTP 501, exit 1. calls are unavailable on this server: the {composition} composition carries no voice transport. Observed: MOST_COMPOSITION is {composition}. Fix: start most-server with MOST_COMPOSITION=dev-sms, dev-all or prod and a voice transport declared. Provoked by `tests/cli/service.rs::calls_on_a_service_without_a_voice_transport_are_refused_as_configuration`.
  • `most.server.call_desk.voice-undeclared` — HTTP 501, exit 1. calls are unavailable on this server: no voice transport is declared. Observed: MOST_TWILIO_ACCOUNT_SID and MOST_STADO_INTEGRATION_TOKEN are unset. Fix: set MOST_TWILIO_ACCOUNT_SID, MOST_TWILIO_AUTH_TOKEN and MOST_TWILIO_FROM for your own Twilio account, or MOST_STADO_INTEGRATION_TOKEN for Wisent Integrations' action boundary at the address 'stado capabilities resolve telephony --consumer most' names, and start most-server again. Provoked by `tests/server/calls.rs::calls_without_a_voice_transport_are_refused_as_configuration`.
  • `most.server.call_desk.origin-unset` — HTTP 501, exit 1. calls are unavailable on this server: PUBLIC_BASE_URL is not set, and the provider posts call progress and the other side's speech to this service's public origin. Observed: PUBLIC_BASE_URL is unset or empty. Fix: set PUBLIC_BASE_URL to this service's public HTTPS origin, such as https://most.example.com, and start most-server again. Provoked by `tests/server/calls.rs::calls_without_a_public_origin_are_refused_as_configuration`.
  • `most.server.call_desk.origin-invalid` — HTTP 501, exit 1. calls are unavailable on this server: PUBLIC_BASE_URL must be an absolute HTTPS URL with a host and no user, password, query or fragment: the provider calls back only over HTTPS and signs the URL it requested. Observed: PUBLIC_BASE_URL is {origin}. Fix: set PUBLIC_BASE_URL to this service's public HTTPS origin, such as https://most.example.com, and start most-server again. Provoked by `tests/server/calls.rs::calls_with_a_public_origin_that_is_not_https_are_refused_as_configuration`.
  • `most.server.call_desk.call-absent` — HTTP 404, exit 1. finding call {call}: no call with that id is stored. Observed: storage holds no call {call}. Fix: name a call 'GET /v3/calls' lists. Provoked by `tests/server/calls.rs::a_call_that_does_not_exist_is_refused_as_absent`.

most.server.calls#

Place a call, list and show calls, answer or reject a ringing one, speak on one in progress and hang up, through the voice transport the composition declares.

Started through: `POST /v3/calls`, `GET /v3/calls`, `GET /v3/calls/readiness`, `GET /v3/calls/{call_id}`, `POST /v3/calls/{call_id}/answer`, `POST /v3/calls/{call_id}/reject`, `POST /v3/calls/{call_id}/say`, `POST /v3/calls/{call_id}/hangup`, `most-cli call|calls`.

Uses: `most.server.request`, `most.core.call_body`, `most.server.call_desk`, `most.core.storage`, `most.server.call_events`, `most.twilio.voice`.

  • `most.server.calls.status-filter-invalid` — HTTP 400, exit 2. reading the status parameter of GET /v3/calls: status names no call status; {statuses}. Observed: status is {value}. Fix: send status as one of the statuses observed, or leave it out. Provoked by `tests/cli/service.rs::a_call_status_that_does_not_exist_is_refused_as_a_bad_request`.
  • `most.server.calls.not-ringing` — HTTP 409, exit 1. {verb} call {call}: only a ringing inbound call can be answered or rejected. Observed: call {call} is {direction} and {status}. Fix: answer or reject a call while 'GET /v3/calls?status=ringing' lists it. Provoked by `tests/server/calls.rs::answering_a_call_that_is_not_ringing_is_refused`.
  • `most.server.calls.stopped-waiting` — HTTP 409, exit 1. {verb} call {call}: the call is no longer waiting on this service for an answer: the provider stopped waiting or the service restarted, so it is recorded as missed. Observed: call {call} has no provider request held open. Fix: nothing answers this call any more; call the number back with POST /v3/calls. Provoked by `tests/server/calls.rs::a_ringing_call_the_provider_stopped_waiting_on_is_refused`.
  • `most.server.calls.not-in-progress` — HTTP 409, exit 1. speaking on call {call}: only a call in progress can be spoken on. Observed: call {call} is {status}. Fix: speak once the call is answered (status in_progress). Provoked by `tests/calls/place-and-answer.mjs::refusal_say_on_ended_call`.
  • `most.server.calls.already-over` — HTTP 409, exit 1. hanging up call {call}: call {call} is already over. Observed: call {call} is {status}. Fix: nothing to hang up; 'GET /v3/calls/{call}' shows how it ended. Provoked by `tests/calls/place-and-answer.mjs::refusal_hangup_ended_call`.
  • `most.server.calls.not-placed-yet` — HTTP 409, exit 1. hanging up call {call}: the provider has not named the call yet, so there is nothing to end. Observed: call {call} is {status} with no provider call id. Fix: hang up again once the call is ringing. Provoked by `tests/server/calls.rs::hanging_up_a_call_the_provider_has_not_named_is_refused`.

most.server.call_ingress#

Take the voice provider's requests: an inbound call ringing, the provider stopping waiting, call progress, a call connecting, speech heard and silence, each proven by the provider's signature.

Started through: `POST /v3/providers/twilio/voice/{incoming,fallback,status,<call>/connected,<call>/speech,<call>/listen}`.

Uses: `most.server.call_desk`, `most.core.storage`, `most.server.call_events`, `most.twilio.reach`.

  • `most.server.call_ingress.signature-missing` — HTTP 403, exit 1. verifying the voice provider's signature on {path}: the request does not carry a valid provider signature: its X-Twilio-Signature header is missing or not visible ASCII. Observed: X-Twilio-Signature {state}. Fix: only the voice provider posts here; point the number's Voice URL at this service and let the provider sign its requests. Provoked by `tests/server/calls.rs::a_provider_request_without_a_signature_is_refused`.
  • `most.server.call_ingress.signature-mismatch` — HTTP 403, exit 1. verifying the voice provider's signature on {path}: the request does not carry a valid provider signature for the URL it requested and the form it posted. Observed: the signature does not match {url}. Fix: set PUBLIC_BASE_URL to the origin the provider requests exactly, so the URL it signed is the one checked. Provoked by `tests/server/calls.rs::a_provider_request_with_a_wrong_signature_is_refused`.
  • `most.server.call_ingress.call-unnamed` — HTTP 403, exit 1. taking an inbound call from the voice provider: the provider's request carries no CallSid, so the call cannot be recorded; it is hung up. Observed: the voice provider asked {path}. Fix: point the number's Voice URL, Fallback URL and status callback at the URLs GET /v3/calls/readiness names, and read the provider's request log for the call. Provoked by `tests/server/calls.rs::a_ring_without_a_call_sid_is_hung_up_and_logged`.
  • `most.server.call_ingress.parties-unnamed` — HTTP 403, exit 1. taking inbound call {provider_call} from the voice provider: the provider's request does not name the caller (From) or the number called (To), so the call cannot be recorded; it is hung up. Observed: the voice provider asked {path}. Fix: point the number's Voice URL, Fallback URL and status callback at the URLs GET /v3/calls/readiness names, and read the provider's request log for the call. Provoked by `tests/server/calls.rs::a_ring_without_its_parties_is_hung_up_and_logged`.
  • `most.server.call_ingress.call-unrecorded` — HTTP 403, exit 1. following call {call} the voice provider names: this service never recorded the call, so nothing here can speak on it or record its progress; it is hung up. Observed: the voice provider asked {path}. Fix: place calls through POST /v3/calls on this service, and point only this service's number at it. Provoked by `tests/server/calls.rs::progress_on_a_call_never_recorded_is_logged`.
  • `most.server.call_ingress.status-unknown` — HTTP 403, exit 1. recording the progress of call {call}: the provider reported a call status Most does not know, so the call keeps the status it had. Observed: CallStatus={status}. Fix: run a Most release that maps this CallStatus; the observed value is the provider's. Provoked by `tests/server/calls.rs::a_status_most_does_not_know_is_logged`.
  • `most.server.call_ingress.number-invalid` — HTTP 403, exit 1. recording {name} of a call: the provider sent a value that is not a number, so it is not recorded. Observed: {name}={value}: {error}. Fix: nothing to do on this side; the value is the provider's, and the call is recorded without it. Provoked by `tests/server/calls.rs::a_duration_that_is_not_a_number_is_logged`.

most.server.call_events#

Deliver call.ringing, call.answered, call.speech and call.ended to each subscription that asked for them and for the call's other party; what a subscriber does not accept is kept in the webhook outbox, and an event that cannot be kept is the delivery layer's cause with the call appended.

Run by the functionalities that use it.

Uses: `most.core.storage`, `most.core.webhook_delivery`.

  • `most.server.call_events.subscription-unsigned` — HTTP 403, exit 1. announcing {event} of call {call}: the subscription keeps no plaintext signing secret, so the event cannot be signed for it. Observed: subscription {subscription}. Fix: create the subscription again so it keeps its signing secret. Provoked by `tests/server/calls.rs::an_event_for_a_subscription_without_a_secret_is_logged`.
  • `most.server.call_events.event-kept` — HTTP 503, exit 69, and sending it again can help. announcing {event} of call {call}: the subscriber did not accept the event, so it is kept in the webhook outbox. Observed: subscription {subscription} at {target} did not take {event} of call {call}: {error}; it waits in the webhook outbox. Fix: repair the subscriber, then 'most-cli webhook-outbox redeliver' sends it again. Provoked by `tests/server/calls.rs::an_event_the_subscriber_does_not_accept_is_kept`.

most.server.diagnostics#

Answer a caller on this host with what the mac-relay worker reports about the iMessage account, the Me card and nickname sharing, or with the SMS send path rung by rung.

Started through: `GET|POST /internal/diagnostics/imessage/*`, `GET /internal/diagnostics/sms/readiness`, `most-cli diagnostics`.

Uses: `most.server.request`, `most.core.backend`, `most.mac_relay.helper`.

  • `most.server.diagnostics.not-loopback` — HTTP 404, exit 1. answering {path}: the diagnostics answer only a caller on this host, and the surface is not admitted to exist for any other. Observed: the caller's address is {peer}. Fix: ask from the host most-server runs on, at its loopback address. Provoked by `tests/server/diagnostics.rs::a_diagnostic_asked_from_another_address_is_refused_as_absent`.
  • `most.server.diagnostics.provider-absent` — HTTP 503, exit 1. answering {path}: the iMessage diagnostics are answered by the mac-relay worker, and the {composition} composition registered none. Observed: no mac-relay worker is registered on this server. Fix: ask the most-server on the Mac whose composition is dev-mac, dev-all or prod. Provoked by `tests/server/diagnostics.rs::an_imessage_diagnostic_without_a_mac_relay_is_refused_as_configuration`.
  • `most.server.diagnostics.channel-unknown` — HTTP 400, exit 2. reading the channel of GET /internal/diagnostics/sms/readiness: channel must be sms or rcs. Observed: channel is {channel}. Fix: send channel=sms or channel=rcs, or leave it out for sms. Provoked by `tests/server/diagnostics.rs::a_readiness_channel_that_is_neither_sms_nor_rcs_is_refused`.

most.server.errors#

List every functionality most-server runs with every way it can fail, or show one functionality's causes.

Started through: `most-server errors list [--text|--markdown]`, `most-server errors show <functionality> [--text|--markdown]`.

  • `most.server.errors.verb-unknown` — HTTP 400, exit 2. reading the arguments of most-server errors: errors takes 'list' or 'show <functionality>', each with '--text' or '--markdown' at most. Observed: the words after errors were: {given}. Fix: run 'most-server errors list' for every functionality, or 'most-server errors show <functionality>' for one. Provoked by `tests/server/errors.rs::errors_with_an_unknown_verb_is_refused`.
  • `most.server.errors.functionality-unknown` — HTTP 400, exit 2. reading the arguments of most-server errors show: no functionality is named {id}. Observed: the functionalities are {declared}. Fix: run 'most-server errors show' with one of them. Provoked by `tests/server/errors.rs::errors_show_of_an_unknown_functionality_is_refused`.

most.mac_relay.chatdb#

Open Messages.app's chat.db read-only (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db) and read its messages, attachments and delivery states.

Run by the functionalities that use it.

  • `most.mac_relay.chatdb.home-unknown` — HTTP 503, exit 1. finding Messages.app's chat.db: MOST_CHAT_DB_PATH is not set, and neither HOME nor the user database names a home directory to find ~/Library/Messages/chat.db under. Observed: HOME is unset or empty and the user database records no home for this user. Fix: set MOST_CHAT_DB_PATH to the chat.db Messages.app writes, or run most-server as the user signed in to Messages.app. Provoked by `tests/chatdb/open.rs::a_host_without_a_home_is_refused_naming_the_setting`.
  • `most.mac_relay.chatdb.absent` — HTTP 503, exit 1. opening Messages.app's chat.db (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db in the home of the user most-server runs as): no file exists at the path Most is configured with. Observed: {path} does not exist. Fix: point MOST_CHAT_DB_PATH at the chat.db Messages.app writes, or sign in to Messages.app on this Mac so it creates ~/Library/Messages/chat.db. Provoked by `tests/chatdb/open.rs::a_chat_db_that_does_not_exist_is_refused_naming_the_setting`.
  • `most.mac_relay.chatdb.access-denied` — HTTP 503, exit 1. opening Messages.app's chat.db (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db in the home of the user most-server runs as): macOS did not let most-server read the file: the program lacks Full Disk Access, or the file's permissions refuse its user. Observed: {path}: {error}. Fix: grant Full Disk Access to most-server (System Settings, Privacy & Security, Full Disk Access) and let the user it runs as read the file. Provoked by `tests/chatdb/open.rs::a_chat_db_the_server_may_not_read_is_refused_naming_full_disk_access`.
  • `most.mac_relay.chatdb.not-a-database` — HTTP 503, exit 1. opening Messages.app's chat.db (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db in the home of the user most-server runs as): the file at the configured path is not a SQLite database. Observed: {path}: {error}. Fix: point MOST_CHAT_DB_PATH at the chat.db Messages.app writes, ~/Library/Messages/chat.db in the home of the user signed in to Messages.app. Provoked by `tests/chatdb/open.rs::a_file_that_is_not_a_database_is_refused`.
  • `most.mac_relay.chatdb.not-messages` — HTTP 503, exit 1. opening Messages.app's chat.db (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db in the home of the user most-server runs as): the database lacks the chat and message tables Messages.app writes, so it is not a Messages database. Observed: {path} holds the tables: {tables}. Fix: point MOST_CHAT_DB_PATH at the chat.db Messages.app writes, ~/Library/Messages/chat.db in the home of the user signed in to Messages.app. Provoked by `tests/chatdb/open.rs::a_database_without_the_messages_tables_is_refused_naming_its_tables`.
  • `most.mac_relay.chatdb.open-failed` — HTTP 503, exit 69, and sending it again can help. opening Messages.app's chat.db (MOST_CHAT_DB_PATH, else ~/Library/Messages/chat.db in the home of the user most-server runs as): SQLite could not open the file for reading. Observed: {path}: {error}. Fix: open it again; when it keeps failing, read the observed SQLite error and check the file with 'sqlite3 <path> 'PRAGMA integrity_check''. Provoked by `tests/chatdb/open.rs::a_disk_that_fails_while_opening_is_refused_as_retryable`.
  • `most.mac_relay.chatdb.query-refused` — HTTP 503, exit 1. {step} in Messages.app's chat.db: SQLite refused the query Most reads chat.db with: this chat.db lacks a table or a column the query names. Observed: {path}: {error}. Fix: run a Most release that reads the chat.db of this macOS version ('most-cli health' names the revision running); the observed column says what this chat.db lacks. Provoked by `tests/chatdb/unreadable_row.rs::a_chat_db_without_a_column_the_reader_selects_is_refused`.
  • `most.mac_relay.chatdb.row-unreadable` — HTTP 403, exit 1. {step} in Messages.app's chat.db: a value in a row is not of the type Messages.app writes in that column. Observed: {path}: {error}. Fix: read the row and column the observed error names in chat.db; Most reads it once Messages.app rewrites that row. Provoked by `tests/chatdb/unreadable_row.rs::a_message_found_by_guid_whose_date_is_text_fails_the_read_naming_the_column`.
  • `most.mac_relay.chatdb.row-skipped` — HTTP 403, exit 1. {step}: reading the message whose ROWID is {rowid} in Messages.app's chat.db: a value in that row is not of the type Messages.app writes in its column, so the row is skipped and the messages after it are still read. Observed: {path}: ROWID {rowid}: {error}. Fix: read the row with 'sqlite3 -readonly {path} 'SELECT * FROM message WHERE ROWID = {rowid}'' and compare the column the observed error names with what Messages.app writes there; Most never reads the row again, so a message it held is not delivered. Provoked by `tests/chatdb/unreadable_row.rs::a_message_whose_guid_is_not_text_is_unreadable_and_the_next_message_still_reads`.
  • `most.mac_relay.chatdb.date-before-epoch` — HTTP 403, exit 1. {step}: reading the message whose ROWID is {rowid} in Messages.app's chat.db: its {column} column counts to before Apple's epoch ({epoch}), an instant Messages.app never records, so the row is corrupt; it is skipped and the messages after it are still read. Observed: {path}: ROWID {rowid}, column {column} holds {raw}. Fix: read the row with 'sqlite3 -readonly {path} 'SELECT ROWID, guid, {column} FROM message WHERE ROWID = {rowid}''; Most never reads the row again, so a message it held is not delivered. Provoked by `tests/chatdb/unreadable_row.rs::a_date_of_the_smallest_integer_is_unreadable_naming_column_and_value`.
  • `most.mac_relay.chatdb.read-failed` — HTTP 503, exit 69, and sending it again can help. {step} in Messages.app's chat.db: SQLite failed while it read the file. Observed: {path}: {error}. Fix: read it again; when it keeps failing, check the disk and the file with 'sqlite3 <path> 'PRAGMA integrity_check''. Provoked by `tests/chatdb/unreadable_row.rs::a_disk_that_fails_while_reading_is_refused_as_retryable`.
  • `most.mac_relay.chatdb.worker-lost` — HTTP 503, exit 69, and sending it again can help. {step} in Messages.app's chat.db: the blocking task that ran the read ended before it answered: it panicked, or the runtime is shutting down. Observed: the blocking task {ended} while {step}: {error}. Fix: read it again; a panic is in most-server's log with the row it was reading. Provoked by `tests/chatdb/unreadable_row.rs::a_read_whose_task_panics_is_refused_as_retryable`.

most.account_import.messages#

Read every message of the chat.db Most is configured with and adopt its accounts, chats and messages into Most's storage in one all-or-none batch; nothing is sent and no credential is read.

Started through: `POST /v3/accounts/{source}/import`, `most-cli accounts import <source>`.

Uses: `most.mac_relay.chatdb`, `most.mac_relay.worker`, `most.account_import.rows`.

  • `most.account_import.messages.adapter-unknown` — HTTP 404, exit 1. importing the {source} account: no account import adapter is named {source}; the adapters are {adapters}. Observed: the request named {source}. Fix: import one of {adapters}: 'most-cli accounts import messages-app'. Provoked by `tests/cli/service.rs::an_import_adapter_that_does_not_exist_is_refused_as_absent`.
  • `most.account_import.messages.host-unsupported` — HTTP 503, exit 1. importing the Messages.app account: the Messages.app account import runs on a macOS Most host whose composition is dev-mac, dev-all or prod. Observed: this host runs {os} with the composition {composition}. Fix: run the import against the most-server on the Mac whose Messages.app holds the account, started with MOST_COMPOSITION=dev-mac, dev-all or prod. Provoked by `tests/cli/service.rs::an_import_on_a_host_without_messages_is_refused_as_configuration`.
  • `most.account_import.messages.storage-unwired` — HTTP 503, exit 1. importing the Messages.app account: no storage is wired up for the composition, so the import has nowhere to keep what it reads. Observed: the composition {composition} left the service without storage. Fix: start most-server with a composition that wires storage (dev-mac, dev-all, or prod with its database); its log names why storage was not wired. Provoked by `tests/cli/service.rs::an_import_on_a_host_without_storage_is_refused_naming_the_composition`.
  • `most.account_import.messages.no-messages` — HTTP 503, exit 1. importing the Messages.app account: Messages.app's chat.db holds no message, so it names no account to import: accounts are read from the messages they sent and received. Observed: {path} (named by {named_by}) holds no row in its message table. Fix: send or receive one message in Messages.app on this Mac, then import again. Provoked by `tests/accounts/import.rs::a_chat_db_without_messages_names_no_account`.
  • `most.account_import.messages.storage-refused` — HTTP 503, exit 69, and sending it again can help. importing the Messages.app account: Most's storage did not commit the import batch, so nothing of it was kept. Observed: a batch of {chats} chats and {messages} messages for worker {worker}; the storage answered {storage}: {error}; its fix: {fix}. Fix: import again; when it keeps failing, read most-server's log for what the database answered. Provoked by `tests/accounts/import.rs::a_database_that_refuses_the_batch_keeps_nothing`.

most.account_import.rows#

Decide, row by row and conversation by conversation, what of Messages.app's chat.db Most's message storage can keep; a row left out is counted in the import's answer under its cause, never stored in part.

Started through: `POST /v3/accounts/{source}/import`, `most-cli accounts import <source>`.

Uses: `most.mac_relay.summary`.

  • `most.account_import.rows.message-unidentified` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row's message GUID is empty, so the message has no source identity: a later import could not tell it from another and would store it twice. Observed: message.guid is {guid_state}. Fix: nothing of the account is lost; Most adopts the row once Messages.app writes its GUID: read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::a_message_without_a_guid_is_left_out_naming_its_row`.
  • `most.account_import.rows.conversation-unjoined` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row names no conversation GUID, so Most cannot tell which chat the message belongs to. Observed: {chat_state}. Fix: read which chat the row is joined to with 'sqlite3 -readonly <chat.db> 'SELECT chat_id FROM chat_message_join WHERE message_id = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db); Most adopts it once Messages.app joins it to a chat with a GUID. Provoked by `tests/accounts/rejections.rs::a_message_in_no_chat_is_left_out_naming_its_row`.
  • `most.account_import.rows.reaction-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row is an associated message (a tapback, emoji reaction, sticker, balloon action or edit announcement), which Most's message storage does not keep. Observed: associated_message_type {kind}, associated_message_guid {target}. Fix: nothing to repair for the import: the message it points to is imported on its own, and live receive sends such rows as their own events; read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::a_tapback_is_left_out_naming_its_type_and_target`.
  • `most.account_import.rows.edit-history-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row records an edit (its date_edited, or an editedContent its message_summary_info lists), and Most's message storage keeps one body per message, so adopting it would lose the versions. Observed: date_edited {edited}; message_summary_info {summary}. Fix: nothing to repair for the import: live receive sends edits as message.edited; read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::an_edited_message_is_left_out_naming_when_it_was_edited`.
  • `most.account_import.rows.unsent-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row was unsent in Messages.app (its date_retracted, or the unsent parts its message_summary_info lists), and Most's message storage keeps no unsent message. Observed: date_retracted {retracted}; message_summary_info {summary}. Fix: nothing to repair for the import: live receive sends unsends as message.unsent; read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::an_unsent_message_is_left_out_naming_when_it_was_unsent`.
  • `most.account_import.rows.link-preview-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row carries a link preview, which Most's message storage does not keep beside the text, so adopting the text alone would drop it. Observed: {previews} link preview(s) read from attributedBody and payload_data. Fix: nothing to repair for the import: live receive sends the preview with message.received; read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::a_message_with_a_link_preview_is_left_out_counting_its_previews`.
  • `most.account_import.rows.location-share-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row marks where sharing a location began or ended, a location fact and not a message. Observed: item_type 4: a share {boundary}, {direction}. Fix: nothing to repair for the import: live receive records shares, and 'most-cli location-history <chat_id>' reads them. Provoked by `tests/accounts/rejections.rs::a_location_share_boundary_is_left_out_naming_what_it_marks`.
  • `most.account_import.rows.location-card-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row sends a current location card, which Most's message storage does not keep as a part. Observed: {attachments} attachment(s), {cards} of them location cards: {kinds}. Fix: nothing to repair for the import: live receive records sent positions, and 'most-cli location <chat_id>' reads them. Provoked by `tests/accounts/attachments.rs::a_location_card_is_left_out_naming_its_attachments`.
  • `most.account_import.rows.contact-card-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row sends a contact card, which Most's message storage does not keep; the cards are counted under contacts.rejected. Observed: {attachments} attachment(s), {cards} of them contact cards: {kinds}. Fix: nothing to repair for the import: live receive sends the card with message.received. Provoked by `tests/accounts/attachments.rs::a_contact_card_is_left_out_and_counted_as_a_rejected_contact`.
  • `most.account_import.rows.attachment-unstored` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row carries an attachment, and Most's message storage keeps text only, so adopting it would drop the file. Observed: {attachments} attachment(s): {kinds}. Fix: nothing to repair for the import: live receive sends attachments with message.received. Provoked by `tests/accounts/attachments.rs::a_message_with_an_attachment_is_left_out_naming_its_types`.
  • `most.account_import.rows.body-empty` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row holds no text, neither in its text column nor decoded from its attributedBody, so there is no message body to store. Observed: text is {text}; attributedBody {body}. Fix: read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db); when attributedBody holds text, run a Most release that decodes this macOS's attributedBody ('most-server --version' names the running one). Provoked by `tests/accounts/rejections.rs::a_message_without_text_is_left_out_naming_both_columns`.
  • `most.account_import.rows.date-absent` — HTTP 200, exit 1. adopting chat.db message row {rowid} (message {guid}): the row states no date, and a message is dated only by what Messages.app wrote, never by the importer's clock. Observed: message.date is NULL or 0. Fix: nothing to repair for the import: Most adopts the row once Messages.app dates it; read it with 'sqlite3 -readonly <chat.db> 'SELECT * FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/rejections.rs::an_undated_message_is_left_out_and_never_dated_by_the_clock`.
  • `most.account_import.rows.conversation-account-unnamed` — HTTP 200, exit 1. adopting the chat.db conversation {chat} with its {messages} message(s): the conversation's chat row names no account of this Mac (its account column is empty, or holds only an E: or P: prefix), so Most cannot tell which account the messages were sent from. Observed: the chat's account column holds {accounts}. Fix: sign the account in to Messages.app and send one message in the chat, which records its account, then import again. Provoked by `tests/accounts/conversations.rs::a_chat_that_names_no_account_is_left_out_with_its_messages`.
  • `most.account_import.rows.conversation-accounts-conflict` — HTTP 200, exit 1. adopting the chat.db conversation {chat} with its {messages} message(s): the chat rows sharing this conversation GUID name different accounts, so Most cannot tell which one the conversation belongs to. Observed: the rows name the accounts {accounts}. Fix: read the chat rows sharing the GUID with 'sqlite3 -readonly <chat.db> "SELECT * FROM chat WHERE guid = '{chat}'"' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db); Most adopts the conversation once one account remains. Provoked by `tests/accounts/conversations.rs::a_chat_whose_rows_name_two_accounts_is_left_out_naming_both`.
  • `most.account_import.rows.conversation-unaddressed` — HTTP 200, exit 1. adopting the chat.db conversation {chat} with its {messages} message(s): the conversation has no participant beside the account itself, so a stored chat would address nobody. Observed: chat_handle_join lists no handle for it, and no message names a sender other than the account {account}. Fix: read the chat's handles with 'sqlite3 -readonly <chat.db> "SELECT h.id FROM chat c JOIN chat_handle_join j ON j.chat_id = c.ROWID JOIN handle h ON h.ROWID = j.handle_id WHERE c.guid = '{chat}'"' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/accounts/conversations.rs::a_chat_without_participants_is_left_out_with_its_messages`.

most.mac_relay.summary#

Decode the edit and unsend history a chat.db row records in its message_summary_info: which parts were edited, each part's versions with their text, and which parts were unsent.

Run by the functionalities that use it.

  • `most.mac_relay.summary.summary-not-plist` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the row's message_summary_info is not a property list, so the {what} it records cannot be read. Observed: message_summary_info of {bytes}: the plist reader answered: {error}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::a_summary_that_is_not_a_plist_is_refused`.
  • `most.mac_relay.summary.summary-not-dict` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the row's message_summary_info is a property list whose top level is not a dictionary, so it names no {what}. Observed: message_summary_info of {bytes}: its top level is {kind}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::a_summary_that_is_not_a_dictionary_is_refused`.
  • `most.mac_relay.summary.edit-not-parts` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the summary's editedContent is neither a dictionary of parts nor a list of parts, so which part was edited is unknown. Observed: message_summary_info of {bytes}: editedContent is {kind}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::edited_content_that_is_not_parts_is_refused`.
  • `most.mac_relay.summary.edit-empty` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the summary's editedContent lists no part, so the edit records no new text. Observed: message_summary_info of {bytes}: editedContent holds nothing. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::edited_content_without_a_part_is_refused`.
  • `most.mac_relay.summary.edit-part-key` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): a key of the summary's editedContent is not a part index, so the edited part is unknown. Observed: message_summary_info of {bytes}: the key "{key}" is no index: {error}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edited_part_keyed_by_no_index_is_refused`.
  • `most.mac_relay.summary.edit-part-unversioned` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an edited part lists no version, so its new text is unknown. Observed: message_summary_info of {bytes}: part {part} lists no version. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edited_part_without_a_version_is_refused`.
  • `most.mac_relay.summary.edit-snapshot-textless` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an edited version is an attributed-string snapshot that decodes to no text. Observed: message_summary_info of {bytes}: part {part} version {version} is a snapshot of {snapshot} bytes; the decoder said: {error}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edited_version_whose_snapshot_holds_no_text_is_refused`.
  • `most.mac_relay.summary.edit-wrapper-textless` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an edited version is a dictionary without the text field the version's text is kept in. Observed: message_summary_info of {bytes}: part {part} version {version} is a dictionary of the keys {keys}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edited_version_wrapped_without_text_is_refused`.
  • `most.mac_relay.summary.edit-version-not-text` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an edited version is neither text, an attributed-string snapshot nor a wrapper of one, so it holds no text. Observed: message_summary_info of {bytes}: part {part} version {version} is {kind}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edited_version_that_is_not_text_is_refused`.
  • `most.mac_relay.summary.edit-textless` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the summary records no editedContent and the row carries no text, so the edit has no text to send. Observed: message_summary_info of {bytes}: no editedContent, and the row's text is NULL. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::an_edit_with_no_text_anywhere_is_refused`.
  • `most.mac_relay.summary.unsent-not-list` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): the summary's retractedParts is not a list, so which parts were unsent is unknown. Observed: message_summary_info of {bytes}: retractedParts is {kind}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::retracted_parts_that_are_not_a_list_are_refused`.
  • `most.mac_relay.summary.unsent-not-index` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an entry of the summary's retractedParts is not an integer part index, and skipping it would report fewer parts unsent than were. Observed: message_summary_info of {bytes}: entry {position} is {kind}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::a_retracted_entry_that_is_not_an_index_is_refused`.
  • `most.mac_relay.summary.unsent-too-large` — HTTP 403, exit 1. reading the {what} chat.db row {rowid} records (message {guid}): an entry of the summary's retractedParts is an integer beyond a signed 64-bit part index. Observed: message_summary_info of {bytes}: entry {position} is {value}. Fix: run a Most release that reads this macOS's message_summary_info ('most-server --version' names the running one); the message itself is unchanged in Messages.app. Read the summary with 'sqlite3 -readonly <chat.db> 'SELECT hex(message_summary_info) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db). Provoked by `tests/mac-relay/summaries.rs::a_retracted_entry_beyond_an_index_is_refused`.

most.mac_relay.setup#

Read the macOS version (sysctl -n kern.osproductversion), Messages.app's scripting dictionary (sdef), MOST_DYLIB_ENABLED and WISENT_DYLIB_LISTEN, and build the relay the Mac worker registers with.

Started through: `most-server (MOST_COMPOSITION=dev-mac, dev-all or prod on macOS)`.

Uses: `most.mac_relay.chatdb`, `most.mac_relay.worker`.

  • `most.mac_relay.setup.helper-switch-unreadable` — HTTP 503, exit 1. reading MOST_DYLIB_ENABLED: MOST_DYLIB_ENABLED reads true or false (unset is false), and it holds another value. Observed: MOST_DYLIB_ENABLED is {value}. Fix: set MOST_DYLIB_ENABLED=true to send through the helper inside Messages.app, or false (or unset it) to send through AppleScript, and start most-server again. Provoked by `tests/mac-relay/setup.rs::a_helper_switch_that_is_not_a_boolean_is_refused_naming_its_value`.
  • `most.mac_relay.setup.helper-mode-unreadable` — HTTP 503, exit 1. reading WISENT_DYLIB_LISTEN: WISENT_DYLIB_LISTEN reads listen or dial (unset is dial), and it holds another value. Observed: WISENT_DYLIB_LISTEN is {value}. Fix: set WISENT_DYLIB_LISTEN=listen when the helper dials most-server (Messages.app on macOS 26 and later), dial when the helper listens, and start most-server again. Provoked by `tests/mac-relay/setup.rs::a_helper_mode_that_is_neither_listen_nor_dial_is_refused_naming_its_value`.
  • `most.mac_relay.setup.helper-port-unset` — HTTP 503, exit 1. reading MOST_DYLIB_PORT: MOST_DYLIB_ENABLED=true sends through the helper inside Messages.app, and no port it meets this server on is declared: none is assumed, because an assumed port is one another program may hold. Observed: MOST_DYLIB_PORT is {state}. Fix: set MOST_DYLIB_PORT to the loopback port this server and the Messages.app helper meet on, and the same value as WISENT_DIAL_PORT (or WISENT_HELPER_PORT when the helper listens) in the helper's environment, then start most-server again. Provoked by `tests/mac-relay/setup.rs::a_helper_without_a_port_is_refused_naming_the_variable`.
  • `most.mac_relay.setup.helper-port-invalid` — HTTP 503, exit 1. reading MOST_DYLIB_PORT: MOST_DYLIB_PORT is not a TCP port above zero. Observed: MOST_DYLIB_PORT is {value}: {error}. Fix: set MOST_DYLIB_PORT to the loopback port this server and the Messages.app helper meet on, and the same value as WISENT_DIAL_PORT (or WISENT_HELPER_PORT when the helper listens) in the helper's environment, then start most-server again. Provoked by `tests/mac-relay/setup.rs::a_helper_port_that_is_not_a_port_is_refused_naming_its_value`.
  • `most.mac_relay.setup.dictionary-unset` — HTTP 403, exit 1. building the Mac relay: the relay writes its AppleScript in the terms of Messages.app's scripting dictionary, and it was built without one. Observed: MacRelayBackend::builder(..).build() was called without messages_dictionary(..). Fix: build the relay with builder(..).messages_dictionary(messages_dictionary().await?), as most-server's composition does. Provoked by `tests/mac-relay/setup.rs::a_relay_built_without_the_scripting_dictionary_is_refused`.
  • `most.mac_relay.setup.version-command-failed` — HTTP 503, exit 1. reading the macOS version this Mac registers with: 'sysctl -n kern.osproductversion' could not be started, so the worker cannot say which macOS it runs. Observed: starting '{command}' with {path} answered {kind}: {error}. Fix: run most-server on macOS, whose /usr/sbin/sysctl is on PATH ('command -v sysctl' names the one found), then start most-server again. Provoked by `tests/mac-relay/no_programs.rs::a_host_whose_sysctl_cannot_run_is_refused_as_configuration`.
  • `most.mac_relay.setup.version-command-refused` — HTTP 503, exit 1. reading the macOS version this Mac registers with: 'sysctl -n kern.osproductversion' ran and exited with a failure, so the worker cannot say which macOS it runs. Observed: '{command}' ended {status}; it wrote on stderr: {stderr}. Fix: run 'sysctl -n kern.osproductversion' as the user most-server runs as and repair what it says, then start most-server again. Provoked by `tests/mac-relay/no_programs.rs::a_host_whose_sysctl_refuses_the_version_is_refused`.
  • `most.mac_relay.setup.version-unparsable` — HTTP 503, exit 1. reading the macOS version this Mac registers with: 'sysctl -n kern.osproductversion' answered something that is not a dotted numeric macOS version. Observed: sysctl answered {answer}. Fix: run most-server on macOS, whose sysctl answers its product version (for example 26.1). Provoked by `tests/mac-relay/setup.rs::a_host_whose_sysctl_answers_no_version_is_refused`.
  • `most.mac_relay.setup.messages-not-found` — HTTP 503, exit 1. reading Messages.app's scripting dictionary: macOS names no application with Messages.app's bundle id com.apple.MobileSMS, or osascript could not ask it. Observed: {command}: {error}. Fix: run most-server on a Mac with Messages.app installed, as a user signed in to the desktop ('osascript -e 'POSIX path of (path to application id "com.apple.MobileSMS")'' must answer its path). Provoked by `tests/mac-relay/no_programs.rs::a_host_without_osascript_cannot_find_messages`.
  • `most.mac_relay.setup.dictionary-unreadable` — HTTP 503, exit 1. reading Messages.app's scripting dictionary: 'sdef' could not read Messages.app's scripting dictionary. Observed: {command}: {error}. Fix: run 'sdef /System/Applications/Messages.app' as the user most-server runs as and repair what it says (the Xcode command line tools provide sdef), then start most-server again. Provoked by `tests/mac-relay/no_programs.rs::a_host_without_sdef_cannot_read_the_dictionary`.
  • `most.mac_relay.setup.dictionary-incomplete` — HTTP 503, exit 1. reading Messages.app's scripting dictionary: the dictionary declares no {element} with the Apple event code {code}, a term the relay's AppleScript is written in (the account class icsv, the participant class pres, the service type enumeration styp). Observed: {app} declares {declared} {element} elements, none with the code {code}. Fix: run a Most release that scripts this macOS's Messages.app ('sdef {app} | grep {code}' shows what this dictionary declares for the code). Provoked by `tests/mac-relay/setup.rs::a_dictionary_without_the_account_class_is_refused_naming_its_code`.
  • `most.mac_relay.setup.dictionary-term-unnamed` — HTTP 503, exit 1. reading Messages.app's scripting dictionary: the dictionary's class with the Apple event code {code} has no name, so the AppleScript has no word to write for it. Observed: {app}: the class with code {code} carries no name attribute. Fix: run a Most release that scripts this macOS's Messages.app ('sdef {app} | grep {code}' shows what this dictionary declares for the code). Provoked by `tests/mac-relay/setup.rs::a_dictionary_class_without_a_name_is_refused_naming_its_code`.
  • `most.mac_relay.setup.dictionary-enumeration-unclosed` — HTTP 503, exit 1. reading Messages.app's scripting dictionary: the dictionary's enumeration with the Apple event code {code} is never closed, so the services Messages sends on cannot be read. Observed: {app}: no </enumeration> in the {after} bytes after the enumeration {code} opens. Fix: run 'sdef {app}' as the user most-server runs as and check that it prints the whole dictionary, then start most-server again. Provoked by `tests/mac-relay/setup.rs::a_dictionary_whose_service_types_are_never_closed_is_refused`.
  • `most.mac_relay.setup.dictionary-service-unknown` — HTTP 403, exit 1. reading Messages.app's scripting dictionary: Messages.app offers a service type this Most does not send on, so it is left out of the services the relay addresses; the relay is built all the same. Observed: the service type {name}; reading it, Most answered: {error}. Fix: nothing to repair for the services Most sends on; a Most release that knows {name} sends on it. Provoked by `tests/mac-relay/setup.rs::a_dictionary_offering_an_unknown_service_leaves_it_out`.

most.mac_relay.worker#

Read MOST_MAC_WORKER_ID, the worker id this Mac registers in the mac-relay pool and files imported chats under.

Run by the functionalities that use it.

  • `most.mac_relay.worker.unnamed` — HTTP 503, exit 1. reading MOST_MAC_WORKER_ID: MOST_MAC_WORKER_ID does not name the worker this Mac registers in the pool: no id is assumed, because two hosts that fell back to one name would claim each other's chats. Observed: MOST_MAC_WORKER_ID is {state}. Fix: set MOST_MAC_WORKER_ID to a worker id unique to this Mac, for example mac-relay-studio, and start most-server again. Provoked by `tests/accounts/configured-chat-db.mjs::unnamed`.

most.mac_relay.helper#

Call the helper Most loads into Messages.app on the loopback port MOST_DYLIB_PORT names: dial it, or listen for it to dial in (WISENT_DYLIB_LISTEN=listen), write one request and wait for its answer or for the connection to close.

Run by the functionalities that use it.

Uses: `most.mac_relay.helper_request`, `most.mac_relay.helper_messages`, `most.mac_relay.helper_identity`, `most.mac_relay.helper_runtime`.

  • `most.mac_relay.helper.switched-off` — HTTP 503, exit 1. {action}: it needs the helper Most loads into Messages.app, and native mode is off (MOST_DYLIB_ENABLED is not true); Messages.app's AppleScript offers no way to do it. Observed: the relay was built without a helper client. Fix: set MOST_DYLIB_ENABLED=true and MOST_DYLIB_PORT on this Mac, load the helper into Messages.app with WISENT_DIAL_PORT set to the same port, and start most-server again. Provoked by `tests/mac-relay/helper.rs::an_action_that_needs_the_helper_with_native_mode_off_is_refused_as_configuration`.
  • `most.mac_relay.helper.not-wired` — HTTP 503, exit 1. calling the Messages.app helper for {action}: native mode is on (MOST_DYLIB_ENABLED=true) but the relay was built without a helper client, so no call reaches Messages.app. Observed: the relay holds the refusing transport a build without a helper client wires. Fix: start the relay through most-server, whose composition builds the helper client from MOST_DYLIB_PORT when MOST_DYLIB_ENABLED=true, or set MOST_DYLIB_ENABLED=false. Provoked by `tests/mac-relay/helper.rs::a_relay_with_native_mode_and_no_helper_client_is_refused_as_configuration`.
  • `most.mac_relay.helper.unreachable` — HTTP 503, exit 69, and sending it again can help. calling the Messages.app helper for {action}: nothing accepted the connection on the helper's loopback port: the helper is not loaded into Messages.app, Messages.app is not running, or it listens on another port. Observed: connecting to {address}: {error}. Fix: load the helper into Messages.app with WISENT_DIAL_PORT set to MOST_DYLIB_PORT (backends/mac_relay/dylib/deploy-to-mac.sh builds it with 'make check' and relaunches Messages.app with it), then call again. Provoked by `tests/mac-relay/helper.rs::a_helper_nothing_listens_for_is_refused_as_retryable`.
  • `most.mac_relay.helper.not-dialled-in` — HTTP 503, exit 69, and sending it again can help. calling the Messages.app helper for {action}: most-server listens for the helper (WISENT_DYLIB_LISTEN=listen) and no helper has dialled in: it is not loaded into Messages.app, or it dials another port. Observed: no helper connection on {address}; the listener was announced as the Darwin notification {notification}, which the helper dials in on. Fix: load the helper into Messages.app with WISENT_DIAL_PORT set to MOST_DYLIB_PORT (backends/mac_relay/dylib/deploy-to-mac.sh relaunches Messages.app with it); it dials in when the listener is announced, then call again. Provoked by `tests/mac-relay/helper.rs::a_listener_no_helper_dialled_in_to_is_refused_as_retryable`.
  • `most.mac_relay.helper.port-taken` — HTTP 503, exit 1. listening for the Messages.app helper: the loopback port MOST_DYLIB_PORT names could not be bound: another program, or another most-server, holds it. Observed: binding {address}: {error}. Fix: stop the program that holds the port ('lsof -nP -iTCP:{port} -sTCP:LISTEN' names it), or give this Mac another MOST_DYLIB_PORT and the helper the same WISENT_DIAL_PORT. Provoked by `tests/mac-relay/helper.rs::a_listener_whose_port_is_taken_is_refused_as_configuration`.
  • `most.mac_relay.helper.announcer-unstarted` — HTTP 503, exit 69, and sending it again can help. announcing the helper listener to Messages.app: the system could not start notifyutil, which posts the Darwin notification the helper dials in on: it is not on the PATH of the user most-server runs as, or not executable. Observed: running 'notifyutil -p {name}' with PATH {path}, the system answered: {error}. Fix: put /usr/bin, where macOS keeps notifyutil, on the PATH most-server starts with ('command -v notifyutil' names the one found), then call again. Provoked by `tests/mac-relay/no_programs.rs::a_listener_announcement_notifyutil_cannot_start_for_is_refused_as_retryable`.
  • `most.mac_relay.helper.unannounced` — HTTP 503, exit 69, and sending it again can help. announcing the helper listener to Messages.app: notifyutil ran and exited with a failure, so the Darwin notification the helper dials in on was not posted. Observed: 'notifyutil -p {name}' exited with {status}; its stderr: {stderr}. Fix: run 'notifyutil -p {name}' as the user most-server runs as to see why it fails, then call again. Provoked by `tests/mac-relay/no_programs.rs::a_listener_announcement_notifyutil_refuses_is_refused_as_retryable`.
  • `most.mac_relay.helper.connection-lost` — HTTP 503, exit 69, and sending it again can help. calling the Messages.app helper for {action}: the connection to the helper ended before it answered: Messages.app quit or reloaded the helper, or the socket broke; the helper may already have done what was asked. Observed: {call}: {error}. Fix: check in Messages.app whether the action happened before calling again; the helper dials in again when Messages.app relaunches it. Provoked by `tests/mac-relay/helper.rs::a_helper_that_closes_before_answering_is_refused_as_retryable`.
  • `most.mac_relay.helper.refusal-undeclared` — HTTP 503, exit 1. calling the Messages.app helper for {action}: the helper refused it naming {cause}, which none of the most.mac_relay.helper_* catalogues of this relay declares: the loaded helper is of another revision than most-server. Observed: the helper answered: {error}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper.rs::a_helper_refusal_of_another_revision_is_refused`.
  • `most.mac_relay.helper.answer-malformed` — HTTP 503, exit 1. calling the Messages.app helper for {action}: the helper answered without the boolean 'ok' every answer of its protocol carries: the loaded helper is of another revision than most-server. Observed: the helper answered: {answer}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper.rs::a_helper_answer_without_ok_is_refused`.
  • `most.mac_relay.helper.answer-incomplete` — HTTP 503, exit 1. calling the Messages.app helper for {action}: the helper answered ok without the {field} the relay needs from that answer. Observed: the helper answered: {answer}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper.rs::a_chat_the_helper_creates_without_a_guid_is_refused`.
  • `most.mac_relay.helper.accept-failed` — HTTP 503, exit 69, and sending it again can help. listening for the Messages.app helper on {address}: the system refused to hand over a dial-in, so that connection is dropped; the listener keeps accepting the next one. Observed: accepting on {address}, the system answered: {error}. Fix: check the open-file limit of the user most-server runs as ('ulimit -n') and that the helper keeps dialling in. Provoked by `tests/mac-relay/helper.rs::a_dial_in_the_system_refuses_is_dropped`.
  • `most.mac_relay.helper.line-not-utf8` — HTTP 403, exit 1. reading the Messages.app helper's connection {connection}: the helper sent a line that is not UTF-8 text, so it is dropped; a call it answered waits until the connection ends. Observed: a line of {bytes} bytes stops being UTF-8 at byte {offset}. Fix: rebuild and reload the helper (backends/mac_relay/dylib/deploy-to-mac.sh), so it writes one JSON object per UTF-8 line. Provoked by `tests/mac-relay/helper.rs::a_helper_line_that_is_not_utf8_is_dropped`.
  • `most.mac_relay.helper.line-not-json` — HTTP 403, exit 1. reading the Messages.app helper's connection {connection}: the helper sent a line that is not JSON, so it is dropped; a call it answered waits until the connection ends. Observed: a line of {bytes} bytes; the JSON parser stopped at column {column}: {error}. Fix: rebuild and reload the helper (backends/mac_relay/dylib/deploy-to-mac.sh), so it writes one JSON object per UTF-8 line. Provoked by `tests/mac-relay/helper.rs::a_helper_line_that_is_not_json_is_dropped`.
  • `most.mac_relay.helper.read-failed` — HTTP 503, exit 69, and sending it again can help. reading the Messages.app helper's connection {connection}: reading the connection failed, so it is closed and every call waiting on it is answered connection-lost. Observed: after {lines} lines, the socket answered: {error}. Fix: let the helper dial in again (it does when Messages.app runs); if it keeps failing, relaunch Messages.app with the helper loaded. Provoked by `tests/mac-relay/helper.rs::a_helper_connection_that_breaks_fails_its_calls`.
  • `most.mac_relay.helper.replaced` — HTTP 503, exit 69, and sending it again can help. reading the Messages.app helper's connection {connection}: the helper dialled in again while its earlier connection was still open (Messages.app restarted or reloaded it), so the earlier connection is closed and its calls are answered connection-lost. Observed: a new dial-in from {peer}; {waiting} calls were waiting on the earlier connection. Fix: send the calls that failed again: they go over the new connection. Provoked by `tests/mac-relay/helper.rs::a_second_dial_in_replaces_the_first`.

most.mac_relay.helper_request#

The helper reads one NDJSON request line: UTF-8 JSON, an object, a known action, the fields that action takes; it then runs the action and serializes its answer.

Run by the functionalities that use it.

  • `most.mac_relay.helper_request.request-not-utf8` — HTTP 503, exit 1. the Messages.app helper refused {action}: the {bytes}-byte request line it read is not UTF-8, so it could not read which action was asked. Observed: {bytes} bytes. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_that_is_not_utf8_is_refused`.
  • `most.mac_relay.helper_request.request-not-json` — HTTP 503, exit 1. the Messages.app helper refused {action}: the {bytes}-byte request line it read is not JSON. Observed: a request line of {bytes} bytes for {action}; the helper's JSON reader said {error}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_that_is_not_json_is_refused`.
  • `most.mac_relay.helper_request.request-not-object` — HTTP 503, exit 1. the Messages.app helper refused {action}: the request line is JSON and not the object every request is. Observed: a {found}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_that_is_not_an_object_is_refused`.
  • `most.mac_relay.helper_request.action-missing` — HTTP 503, exit 1. the Messages.app helper refused {action}: the request names no action: its 'action' holds {found}, not a string. Observed: action holds {found}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_without_an_action_is_refused`.
  • `most.mac_relay.helper_request.action-unknown` — HTTP 503, exit 1. the Messages.app helper refused {action}: the loaded helper answers no action {requested}. Observed: it answers {known}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::an_action_the_helper_does_not_answer_is_refused`.
  • `most.mac_relay.helper_request.action-cancelled` — HTTP 503, exit 69, and sending it again can help. the Messages.app helper refused {action}: the connection the request came on ended while the action ran, so the helper stopped it; Messages.app may already have done part of it. Observed: the helper cancelled {action}. Fix: check in Messages.app whether the action happened, then call again. Provoked by `tests/mac-relay/helper_action.rs::an_action_whose_connection_ends_is_cancelled`.
  • `most.mac_relay.helper_request.action-threw` — HTTP 403, exit 1. the Messages.app helper refused {action}: the action ended with a {type} the helper declares no cause for. Observed: {action} threw a {type} in the helper: {error}. Fix: read the helper's log in Console.app (subsystem com.wisent.imhelper) for {action}; a helper of this revision names every refusal it knows. Provoked by `tests/mac-relay/helper_action.rs::an_action_that_throws_an_undeclared_error_is_refused`.
  • `most.mac_relay.helper_request.helper-unavailable` — HTTP 503, exit 69, and sending it again can help. the Messages.app helper refused {action}: the helper inside Messages.app was released while its connection still delivered the request. Observed: no helper instance. Fix: relaunch Messages.app with the helper (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_after_the_helper_is_released_is_refused`.
  • `most.mac_relay.helper_request.answer-unserializable` — HTTP 403, exit 1. the Messages.app helper refused {action}: the helper could not write its answer as JSON, so what the action did is unknown. Observed: {error}; the answer held {keys}. Fix: check in Messages.app whether the action happened; read the helper's log in Console.app for the value JSON could not hold. Provoked by `tests/mac-relay/helper_action.rs::an_answer_the_helper_cannot_serialize_is_refused`.
  • `most.mac_relay.helper_request.field-missing` — HTTP 503, exit 1. the Messages.app helper refused {action}: the request carries no usable {field}, which that action needs. Observed: {field} holds {found}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_without_a_field_its_action_needs_is_refused`.
  • `most.mac_relay.helper_request.field-not-text` — HTTP 503, exit 1. the Messages.app helper refused {action}: the request's {field} is there and not the string that action takes. Observed: {field} holds {found}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_whose_field_is_not_text_is_refused`.
  • `most.mac_relay.helper_request.field-wrong-type` — HTTP 503, exit 1. the Messages.app helper refused {action}: the request's {field} is there and not {taken}, which that action takes. Observed: {field} holds {found}. Fix: load the helper built from this Most revision into Messages.app (backends/mac_relay/dylib/deploy-to-mac.sh), then call again. Provoked by `tests/mac-relay/helper_action.rs::a_request_whose_field_has_another_type_is_refused`.
  • `most.mac_relay.helper_request.max-classes-invalid` — HTTP 400, exit 2. the Messages.app helper refused {action}: max_classes is not a nonnegative whole number. Observed: max_classes is {found}. Fix: give 'most-cli diagnostics imessage nickname-runtime' a --max-classes of 0 or more, or none for every class. Provoked by `tests/mac-relay/helper_action.rs::a_nickname_runtime_report_with_a_negative_class_count_is_refused`.

most.mac_relay.helper_messages#

The helper finds the chat by GUID or creates it from addresses, finds a sent message by GUID, registers an attachment or voice memo with IMFileTransferCenter, and hands an IMMessage or tapback to the chat.

Run by the functionalities that use it.

  • `most.mac_relay.helper_messages.chat-not-found` — HTTP 404, exit 1. the Messages.app helper refused {action}: Messages.app holds no chat {chat}: it was deleted on this Mac, or it is a chat of another Mac's account. Observed: IMChatRegistry has no chat {chat}. Fix: open the conversation in Messages.app on this Mac, or start a new chat with the recipient through Most. Provoked by `tests/mac-relay/helper_action.rs::a_send_to_a_chat_messages_does_not_hold_is_refused`.
  • `most.mac_relay.helper_messages.chat-uncreated` — HTTP 403, exit 1. the Messages.app helper refused {action}: Messages.app made no {service} chat for {addresses}: an address it cannot reach on {service}, or no signed-in {service} account. Observed: IMChatRegistry returned no chat or one without a GUID for {addresses} on {service}. Fix: check in Messages.app that {service} is signed in and that a message to {addresses} can be started by hand, then send again. Provoked by `tests/mac-relay/helper_action.rs::a_chat_messages_cannot_create_is_refused`.
  • `most.mac_relay.helper_messages.chat-without-participants` — HTTP 403, exit 1. the Messages.app helper refused {action}: chat {chat} has no participants to share the Name & Photo card with. Observed: chat {chat}: participants is empty. Fix: send one message in chat {chat} so Messages.app loads its participants, then share again. Provoked by `tests/mac-relay/helper_action.rs::sharing_into_a_chat_without_participants_is_refused`.
  • `most.mac_relay.helper_messages.message-not-found` — HTTP 404, exit 1. the Messages.app helper refused {action}: Messages.app finds no message {message} in chat {chat}, neither in its history nor among the chat's recent items. Observed: no message {message} in chat {chat}. Fix: use the message id the send of that message answered (its 'identifier', the GUID chat.db keeps in message.guid); a message deleted on this Mac cannot be changed. Provoked by `tests/mac-relay/helper_action.rs::an_edit_of_a_message_messages_does_not_hold_is_refused`.
  • `most.mac_relay.helper_messages.file-not-found` — HTTP 503, exit 1. the Messages.app helper refused {action}: the {kind} file {path} the relay staged is not there when the helper reads it. Observed: no file at {path}; its directory {directory}. Fix: check that most-server and Messages.app run as the same user and that nothing removes the attachment directory during a send, then send again. Provoked by `tests/mac-relay/helper_action.rs::a_send_whose_file_is_gone_is_refused`.
  • `most.mac_relay.helper_messages.reaction-type-unknown` — HTTP 400, exit 2. the Messages.app helper refused {action}: the helper sends no reaction {requested}. Observed: it sends {known}. Fix: send one of the reactions observed. Provoked by `tests/mac-relay/helper_action.rs::a_reaction_the_helper_does_not_send_is_refused`.
  • `most.mac_relay.helper_messages.transfer-unregistered` — HTTP 503, exit 69, and sending it again can help. the Messages.app helper refused {action}: IMFileTransferCenter did not register {path} as an outgoing transfer, so Messages.app has no transfer to attach the file with. Observed: {step}; the file is {file}. Fix: check that {path} is a file Messages.app may read (Full Disk Access for Messages.app when it is outside ~/Library/Messages), then send again. Provoked by `tests/mac-relay/helper_action.rs::a_file_messages_does_not_register_is_refused`.

most.mac_relay.helper_identity#

The helper writes this Mac's Name & Photo card through IMNicknameController and reads it back, shares it into a chat, writes the Contacts and AddressBook me card and reads it back, and sets the active iMessage account's display name.

Run by the functionalities that use it.

  • `most.mac_relay.helper_identity.handle-unresolved` — HTTP 503, exit 1. the Messages.app helper refused {action}: the share strategy {strategy} addresses the {which}, and Messages.app resolves none. Observed: no {which}. Fix: check in Messages.app → Settings → iMessage that this Mac sends from an address, or share with another strategy ('most-cli diagnostics imessage nickname-sharing' lists them). Provoked by `tests/mac-relay/helper_action.rs::a_share_whose_handles_do_not_resolve_is_refused`.
  • `most.mac_relay.helper_identity.account-inactive` — HTTP 503, exit 1. the Messages.app helper refused {action}: this Mac has no active iMessage account, so there is no display name to set to {alias}. Observed: IMAccountController answers no activeIMessageAccount. Fix: sign in to iMessage in Messages.app → Settings → iMessage on this Mac, then set the alias again. Provoked by `tests/mac-relay/helper_action.rs::an_alias_without_an_active_account_is_refused`.
  • `most.mac_relay.helper_identity.share-strategy-unknown` — HTTP 400, exit 2. the Messages.app helper refused {action}: the helper knows no Name & Photo share strategy {requested}. Observed: it knows {known}. Fix: force a share with one of the strategies observed. Provoked by `tests/mac-relay/helper_action.rs::a_share_strategy_the_helper_does_not_know_is_refused`.
  • `most.mac_relay.helper_identity.personal-nickname-unavailable` — HTTP 503, exit 1. the Messages.app helper refused {action}: IMNicknameController holds no personal Name & Photo card on this Mac. Observed: {state}. Fix: set the card in Messages.app → Settings → Share Name and Photo, or through Most's sender identity, then read it again. Provoked by `tests/mac-relay/helper_action.rs::a_card_report_without_a_card_is_refused`.
  • `most.mac_relay.helper_identity.nickname-state-unreadable` — HTTP 403, exit 1. the Messages.app helper refused {action}: the card was written and meCardSharingState cannot be read back, so whether sharing is on is unknown. Observed: {state}. Fix: check Messages.app → Settings → Share Name and Photo on this Mac, then configure the card again. Provoked by `tests/mac-relay/helper_action.rs::a_card_whose_sharing_state_cannot_be_read_is_refused`.
  • `most.mac_relay.helper_identity.nickname-unconfirmed` — HTTP 403, exit 1. the Messages.app helper refused {action}: the card was written and IMNicknameController reads back no personal card, so this macOS did not keep it. Observed: {state}. Fix: run 'most-cli diagnostics imessage personal-nickname-payload' to see what this macOS keeps, then configure the card again. Provoked by `tests/mac-relay/helper_action.rs::a_card_this_macos_does_not_keep_is_refused`.
  • `most.mac_relay.helper_identity.nickname-mismatch` — HTTP 403, exit 1. the Messages.app helper refused {action}: the card was written as {requested} and reads back as another name. Observed: {observed}. Fix: run 'most-cli diagnostics imessage personal-nickname-payload', then configure the card again. Provoked by `tests/mac-relay/helper_action.rs::a_card_that_reads_back_another_name_is_refused`.
  • `most.mac_relay.helper_identity.nickname-avatar-absent` — HTTP 403, exit 1. the Messages.app helper refused {action}: the card was written with the picture {path} and reads back without one. Observed: {observed}. Fix: check that {path} is a PNG or JPEG Messages.app reads, then configure the card again. Provoked by `tests/mac-relay/helper_action.rs::a_card_that_reads_back_without_its_picture_is_refused`.
  • `most.mac_relay.helper_identity.avatar-unreadable` — HTTP 503, exit 1. the Messages.app helper refused {action}: the picture {path} could not be used while {step}. Observed: {action} was {step} with the picture {path}; the helper said {error}. Fix: check that {path} exists, is a PNG or JPEG, and is readable by the user Messages.app runs as, and that its folder is writable, then configure the card again. Provoked by `tests/mac-relay/helper_action.rs::a_card_whose_picture_cannot_be_read_is_refused`.
  • `most.mac_relay.helper_identity.contacts-refused` — HTTP 503, exit 1. the Messages.app helper refused {action}: Contacts refused {step}: Messages.app has no Contacts access, or the store refused the change. Observed: {action} was {step}; Contacts said {error}. Fix: grant Messages.app Contacts access in System Settings → Privacy & Security → Contacts, then call again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_contacts_refuses_is_refused`.
  • `most.mac_relay.helper_identity.contact-immutable` — HTTP 503, exit 1. the Messages.app helper refused {action}: Contacts gave no writable copy of contact {contact}. Observed: contact {contact}: mutableCopy is not a CNMutableContact. Fix: check in Contacts.app that contact {contact} is in a writable account (not a read-only directory), then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_contact_that_is_read_only_is_refused`.
  • `most.mac_relay.helper_identity.contact-unreadable` — HTTP 403, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact} and then could not read it back, so whether the card holds what was asked is unknown. Observed: {action} read contact {contact} back; Contacts said {error}. Fix: open contact {contact} in Contacts.app to see what it holds, then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_that_cannot_be_read_back_is_refused`.
  • `most.mac_relay.helper_identity.contact-mismatch` — HTTP 403, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact} as {requested} and reads it back otherwise: a sync account rewrote it. Observed: {observed}. Fix: open contact {contact} in Contacts.app, check which account holds it, then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_that_reads_back_otherwise_is_refused`.
  • `most.mac_relay.helper_identity.address-book-unloadable` — HTTP 503, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact}, and the AddressBook framework at {path}, which holds the me card Messages.app shares, could not be loaded into Messages.app. Observed: dlopen: {error}. Fix: check that {path} exists on this macOS ('ls {path}'); until it loads, set contact {contact} as My Card in Contacts.app (Card → Make This My Card). Provoked by `tests/mac-relay/helper_action.rs::a_me_card_whose_address_book_cannot_be_loaded_is_refused`.
  • `most.mac_relay.helper_identity.address-book-field-refused` — HTTP 403, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact}, and the AddressBook me card Messages.app shares refused its {field}, so it was not saved. Observed: {error}. Fix: set contact {contact} as My Card in Contacts.app (Card → Make This My Card), then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_field_the_address_book_refuses_is_refused`.
  • `most.mac_relay.helper_identity.address-book-unsaved` — HTTP 403, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact}, and the AddressBook refused {step}, so the me card Messages.app shares is not set. Observed: the AddressBook said {error}. Fix: set contact {contact} as My Card in Contacts.app (Card → Make This My Card), then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_the_address_book_does_not_save_is_refused`.
  • `most.mac_relay.helper_identity.address-book-me-other` — HTTP 403, exit 1. the Messages.app helper refused {action}: Contacts saved contact {contact} and the AddressBook saved the card, but reads another me card back: a sync account or another program set it. Observed: configured card {configured}; the AddressBook's me card is {observed}. Fix: set contact {contact} as My Card in Contacts.app (Card → Make This My Card), then configure the me card again. Provoked by `tests/mac-relay/helper_action.rs::a_me_card_the_address_book_reads_back_otherwise_is_refused`.

most.mac_relay.helper_runtime#

The helper resolves IMCore, IMNickname and AOSKit classes by name, checks each selector before it calls it, allocates and initialises the objects it sends, and asks AOSKit for anisette headers.

Run by the functionalities that use it.

  • `most.mac_relay.helper_runtime.class-missing` — HTTP 503, exit 1. the Messages.app helper refused {action}: this macOS's Messages.app has no {class} (the helper needs {needs}). Observed: NSClassFromString found no {class}. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::an_action_whose_class_this_macos_lacks_is_refused`.
  • `most.mac_relay.helper_runtime.selector-missing` — HTTP 503, exit 1. the Messages.app helper refused {action}: this macOS's {class} does not answer {selector}. Observed: {class} does not respond to {selector}. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::an_action_whose_selector_this_macos_lacks_is_refused`.
  • `most.mac_relay.helper_runtime.object-uncreated` — HTTP 403, exit 1. the Messages.app helper refused {action}: {class} gave no object at {step}: this macOS's initializer takes other arguments, or refused these. Observed: {class}: {step} returned nothing. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::an_object_this_macos_does_not_create_is_refused`.
  • `most.mac_relay.helper_runtime.aoskit-unloadable` — HTTP 503, exit 1. the Messages.app helper refused {action}: AOSKit at {path} could not be loaded into Messages.app. Observed: dlopen: {error}. Fix: check that {path} exists on this macOS ('ls {path}'); anisette from AOSKit needs it. Provoked by `tests/mac-relay/helper_action.rs::aoskit_that_cannot_be_loaded_is_refused`.
  • `most.mac_relay.helper_runtime.aoskit-headers-absent` — HTTP 403, exit 1. the Messages.app helper refused {action}: {class} returned no anisette headers through any selector it answers. Observed: {log}. Fix: check that this Mac is signed in to an Apple ID in System Settings, then call again. Provoked by `tests/mac-relay/helper_action.rs::aoskit_that_returns_no_headers_is_refused`.

most.mac_relay.helper_share_steps#

Run the steps of one Name & Photo share strategy in Messages.app through the helper, answering each step's outcome; a step it cannot take is skipped under its cause and the next step runs.

Started through: `POST /internal/diagnostics/imessage/force-share-nickname`.

  • `most.mac_relay.helper_share_steps.missing-getter` — HTTP 200, exit 1. running the share step {selector}: this macOS's IMNicknameController does not answer {selector}, so the handles it lists for sharing were not cleared. Observed: IMNicknameController answers no {selector}. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::a_share_step_whose_getter_this_macos_lacks_is_skipped`.
  • `most.mac_relay.helper_share_steps.unsupported-collection` — HTTP 200, exit 1. running the share step {selector}: {selector} answered a collection the helper does not filter, so the handles were left in it. Observed: {selector} answered a {class}. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::a_share_step_whose_collection_the_helper_does_not_filter_is_skipped`.
  • `most.mac_relay.helper_share_steps.selector-missing` — HTTP 200, exit 1. running the share step {selector}: this macOS's Messages.app does not answer {selector}, so the share it sends was not sent. Observed: no {selector}. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::a_share_step_whose_selector_this_macos_lacks_is_skipped`.
  • `most.mac_relay.helper_share_steps.provider-unavailable` — HTTP 200, exit 1. running the share step {selector}: this macOS's Messages.app gives no IMNicknameProvider, so the share through it was not sent. Observed: no IMNicknameProvider instance. Fix: run 'most-cli diagnostics imessage nickname-runtime' on this Mac to see what its frameworks expose, and load a helper built for this macOS (backends/mac_relay/dylib/deploy-to-mac.sh). Provoked by `tests/mac-relay/helper_action.rs::a_share_step_without_a_provider_is_skipped`.
  • `most.mac_relay.helper_share_steps.handles-empty` — HTTP 200, exit 1. running the share step {selector}: the chat resolves no recipient handle, so {selector} had no one to share with. Observed: {handles} handle(s). Fix: check that the chat has a recipient in Messages.app, or share with another strategy ('most-cli diagnostics imessage nickname-sharing' lists them). Provoked by `tests/mac-relay/helper_action.rs::a_share_step_with_no_handle_is_skipped`.
  • `most.mac_relay.helper_share_steps.login-inactive` — HTTP 200, exit 1. running the share step {selector}: Messages.app has no active iMessage login to share from, so {selector} was not sent. Observed: no active iMessage account login. Fix: sign in to iMessage in Messages.app → Settings → iMessage, then force the share again. Provoked by `tests/mac-relay/helper_action.rs::a_share_step_without_an_active_login_is_skipped`.

most.mac_relay.sender_identity#

Configure Messages.app's personal nickname from the send's sender_appearance (and MOST_SENDER_PROFILE_IMAGE_PATH), share it with the chat through the helper unless MOST_SENDER_IDENTITY_SHARE_CACHE_PATH records this fingerprint as shared, and record it there.

Started through: `POST /v3/chats (sender_appearance)`.

Uses: `most.mac_relay.helper`.

  • `most.mac_relay.sender_identity.display-name-missing` — HTTP 403, exit 1. applying the required sender identity: native sender appearance requires a nonempty display_name: Messages.app's personal nickname is a name, and none is invented. Observed: sender_appearance carries no display_name, or only spaces. Fix: send sender_appearance with a display_name, or send without sender_appearance. Provoked by `tests/mac-relay/identity.rs::an_appearance_without_a_display_name_is_refused_before_sending`.
  • `most.mac_relay.sender_identity.picture-without-image` — HTTP 503, exit 1. applying the required sender identity: sender profile picture requires MOST_SENDER_PROFILE_IMAGE_PATH: the helper applies a picture from a local file, not from the remote profile_picture_url. Observed: sender_appearance names profile_picture_url {url} and MOST_SENDER_PROFILE_IMAGE_PATH is unset. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a local copy of the picture and start most-server again, or send without profile_picture_url. Provoked by `tests/mac-relay/identity.rs::a_remote_picture_without_a_local_image_is_refused_naming_the_setting`.
  • `most.mac_relay.sender_identity.image-setting-not-text` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_PROFILE_IMAGE_PATH is not Unicode, so it names no path the helper can be handed. Observed: MOST_SENDER_PROFILE_IMAGE_PATH is {value}. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_image_setting_that_is_not_unicode_is_refused`.
  • `most.mac_relay.sender_identity.image-setting-empty` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_PROFILE_IMAGE_PATH is set and names nothing, so the declared picture is unknown. Observed: MOST_SENDER_PROFILE_IMAGE_PATH is empty or only spaces. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_empty_image_setting_is_refused`.
  • `most.mac_relay.sender_identity.image-setting-homeless` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_PROFILE_IMAGE_PATH starts with ~/ and HOME is unset or empty, so the path it names is unknown. Observed: MOST_SENDER_PROFILE_IMAGE_PATH is {configured}. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_image_setting_under_a_missing_home_is_refused`.
  • `most.mac_relay.sender_identity.image-setting-invalid` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_PROFILE_IMAGE_PATH names a file this user cannot read, so the declared picture cannot be applied. Observed: {path}: {kind}: {error}. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_image_setting_that_names_no_file_is_refused_naming_the_setting`.
  • `most.mac_relay.sender_identity.image-setting-not-file` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_PROFILE_IMAGE_PATH names something that is not a regular file, so there is no picture to apply. Observed: {path} is {what}. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_image_setting_that_names_a_directory_is_refused`.
  • `most.mac_relay.sender_identity.image-setting-path-not-utf8` — HTTP 503, exit 1. applying the required sender identity: the picture's path (HOME joined with MOST_SENDER_PROFILE_IMAGE_PATH) is not UTF-8, so the helper cannot be handed it. Observed: the path is {path}. Fix: set MOST_SENDER_PROFILE_IMAGE_PATH to a readable image file ('~/' needs HOME), or unset it to apply the name alone. Provoked by `tests/mac-relay/identity_settings.rs::an_image_path_that_is_not_utf8_is_refused`.
  • `most.mac_relay.sender_identity.email-setting-invalid` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_IDENTITY_EMAIL is not Unicode, so the identity's fingerprint cannot include it. Observed: MOST_SENDER_IDENTITY_EMAIL is {value}. Fix: set MOST_SENDER_IDENTITY_EMAIL to the email of the identity in Unicode, or unset it. Provoked by `tests/mac-relay/identity.rs::an_email_setting_that_is_not_unicode_is_refused_naming_the_setting`.
  • `most.mac_relay.sender_identity.cache-setting-empty` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_IDENTITY_SHARE_CACHE_PATH is set and names nothing, so where the shared fingerprints are kept is unknown. Observed: MOST_SENDER_IDENTITY_SHARE_CACHE_PATH is empty or only spaces. Fix: set MOST_SENDER_IDENTITY_SHARE_CACHE_PATH to an absolute path, or run most-server with HOME set. Provoked by `tests/mac-relay/identity_settings.rs::a_share_cache_setting_that_is_empty_is_refused_naming_the_setting`.
  • `most.mac_relay.sender_identity.cache-setting-not-text` — HTTP 503, exit 1. applying the required sender identity: MOST_SENDER_IDENTITY_SHARE_CACHE_PATH is not Unicode, so it names no path. Observed: MOST_SENDER_IDENTITY_SHARE_CACHE_PATH is {value}. Fix: set MOST_SENDER_IDENTITY_SHARE_CACHE_PATH to an absolute path, or run most-server with HOME set. Provoked by `tests/mac-relay/identity_settings.rs::a_share_cache_setting_that_is_not_unicode_is_refused`.
  • `most.mac_relay.sender_identity.cache-setting-homeless` — HTTP 503, exit 1. applying the required sender identity: the share cache's path needs a HOME that is unset or empty. Observed: {named}; HOME is unset or empty. Fix: set MOST_SENDER_IDENTITY_SHARE_CACHE_PATH to an absolute path, or run most-server with HOME set. Provoked by `tests/mac-relay/identity_settings.rs::a_share_cache_without_a_home_is_refused`.
  • `most.mac_relay.sender_identity.cache-unreadable` — HTTP 503, exit 1. applying the required sender identity: the share cache file exists and could not be read, so whether this chat already has the identity is unknown. Observed: {path}: {error}. Fix: unset {setting}, or set it to a path the user most-server runs as can read and write. Provoked by `tests/mac-relay/identity.rs::a_share_cache_that_cannot_be_read_is_refused_naming_its_path`.
  • `most.mac_relay.sender_identity.cache-malformed` — HTTP 503, exit 1. applying the required sender identity: the share cache file is not the JSON object of chat GUIDs to fingerprints Most writes. Observed: {path}: {error}. Fix: delete the share cache file; Most writes it again, sharing the identity once more with each chat. Provoked by `tests/mac-relay/identity.rs::a_share_cache_that_is_not_json_is_refused_naming_its_path`.
  • `most.mac_relay.sender_identity.cache-unwritable` — HTTP 503, exit 1. recording the shared sender identity: the share cache could not be written; the helper has already shared the identity, so only the record of it is missing and the next send shares it again. Observed: {path}: {error}. Fix: unset {setting}, or set it to a path the user most-server runs as can read and write. Provoked by `tests/mac-relay/identity.rs::a_share_cache_whose_directory_cannot_be_made_is_refused_naming_its_path`.
  • `most.mac_relay.sender_identity.avatar-not-applied` — HTTP 403, exit 1. applying the required sender identity: the helper configured the name and did not confirm the declared picture (avatar_configured is not true), so the identity is not the one declared. Observed: the helper answered configure_personal_nickname for {image}: {answer}. Fix: check that the image is one Messages.app reads (PNG or JPEG) and load the helper built from this Most revision, then send again. Provoked by `tests/mac-relay/identity.rs::a_helper_that_does_not_confirm_the_picture_is_refused`.
  • `most.mac_relay.sender_identity.not-applied` — HTTP 403, exit 1. applying the required sender identity: the helper neither shared nor refreshed the identity for this chat, so the send would go out under another one. Observed: chat {chat}: the helper answered should_offer_nickname_sharing without share. Fix: read 'most-cli diagnostics imessage nickname-sharing' for the chat, then send again. Provoked by `tests/mac-relay/identity.rs::a_helper_that_applies_no_identity_is_refused`.

most.mac_relay.attachment#

Download an http(s) attachment into ~/Library/Containers/com.apple.MobileSMS/Data/tmp, named with the extension its URL or Content-Type gives, so Messages.app can send it.

Run by the functionalities that use it.

Uses: `most.mac_relay.chatdb`.

  • `most.mac_relay.attachment.sandbox-missing` — HTTP 503, exit 1. downloading an attachment for Messages.app: Messages.app's sandbox directory is not there, so Messages.app cannot read a file written for it: Messages.app has never run as this user. Observed: {path} is not a directory. Fix: open Messages.app once as the user most-server runs as, then send again. Provoked by `tests/mac-relay/attachment.rs::a_home_without_the_messages_sandbox_is_refused_naming_it`.
  • `most.mac_relay.attachment.client-unavailable` — HTTP 503, exit 1. downloading an attachment for Messages.app: the HTTP client could not be built, so no URL can be fetched. Observed: {proxies}; reqwest said {error}. Fix: check the TLS roots of this Mac ('security verify-cert'), then send again. Provoked by `tests/mac-relay/attachment.rs::an_http_client_that_cannot_start_names_its_error`.
  • `most.mac_relay.attachment.url-unreachable` — HTTP 503, exit 69, and sending it again can help. downloading an attachment for Messages.app: the attachment's URL did not answer: its host is not resolved, refuses the connection or broke it off. Observed: {url}: {error}. Fix: check that this Mac reaches the URL ('curl -I <url>'), then send again. Provoked by `tests/mac-relay/attachment.rs::an_attachment_url_nothing_answers_is_refused_as_retryable`.
  • `most.mac_relay.attachment.url-refused` — HTTP 403, exit 1. downloading an attachment for Messages.app: the attachment's URL answered with a failure status instead of the file. Observed: {url} answered {status}. Fix: send a URL that answers the file itself (200), reachable without credentials. Provoked by `tests/mac-relay/attachment.rs::an_attachment_url_that_answers_not_found_is_refused`.
  • `most.mac_relay.attachment.type-not-ascii` — HTTP 403, exit 1. downloading an attachment for Messages.app: the URL names no file extension and its Content-Type's type is not ASCII, so the file cannot be named for Messages.app to render. Observed: {url}: Content-Type type {content_type}. Fix: send a URL whose path ends in the file's extension, or one served with a standard Content-Type. Provoked by `tests/mac-relay/attachment.rs::a_content_type_that_is_not_ascii_is_refused`.
  • `most.mac_relay.attachment.type-unnamed` — HTTP 403, exit 1. downloading an attachment for Messages.app: the URL names no file extension and the answer carries no Content-Type, so the file is sent as .bin, which Messages.app shows as a file instead of rendering it. Observed: {url}: no extension, no Content-Type. Fix: send a URL whose path ends in the file's extension, or one its server answers with a Content-Type. Provoked by `tests/mac-relay/attachment.rs::an_attachment_with_no_extension_and_no_type_is_sent_as_bin_and_said`.
  • `most.mac_relay.attachment.type-unrendered` — HTTP 403, exit 1. downloading an attachment for Messages.app: the URL names no file extension and its Content-Type is not one Messages.app renders inline, so the file is sent as .bin and shown as a file. Observed: {url}: Content-Type type {content_type}. Fix: send the file as an image (JPEG, PNG, GIF, WebP, HEIC, HEIF, TIFF, SVG), audio (MP3, M4A, WAV, CAF, Ogg, Opus), video (MP4, MOV, WebM) or PDF, or a URL whose path ends in its extension. Provoked by `tests/mac-relay/attachment.rs::an_attachment_of_a_type_messages_does_not_render_is_sent_as_bin_and_said`.
  • `most.mac_relay.attachment.body-broken` — HTTP 503, exit 69, and sending it again can help. downloading an attachment for Messages.app: the attachment's body broke off before it was whole. Observed: {url}: {error}. Fix: send again; when it keeps breaking, fetch the URL from this Mac ('curl -o /dev/null <url>'). Provoked by `tests/mac-relay/attachment.rs::an_attachment_body_that_breaks_off_is_refused_as_retryable`.
  • `most.mac_relay.attachment.unwritable` — HTTP 503, exit 1. downloading an attachment for Messages.app: the downloaded file could not be written into Messages.app's sandbox directory. Observed: {path}: {error}. Fix: free disk space and let the user most-server runs as write ~/Library/Containers/com.apple.MobileSMS/Data/tmp, then send again. Provoked by `tests/mac-relay/attachment.rs::a_sandbox_directory_that_cannot_be_written_is_refused`.

most.mac_relay.messaging#

Send through Messages.app on this Mac (the helper inside it when MOST_DYLIB_ENABLED=true, AppleScript otherwise), and record what was sent in Most's storage.

Started through: `POST /v3/chats`, `POST /v3/chats/{chat_id}/messages`, `POST /v3/chats/{chat_id}/reactions`, `POST /v3/chats/{chat_id}/messages/{message_id}/edit`, `DELETE /v3/chats/{chat_id}/messages/{message_id}`, `POST /v3/chats/{chat_id}/voice`, `POST /v3/chats/{chat_id}/typing`, `GET|POST /internal/diagnostics/imessage/*`.

Uses: `most.mac_relay.helper`, `most.mac_relay.sender_identity`, `most.mac_relay.attachment`.

  • `most.mac_relay.messaging.recipients-empty` — HTTP 403, exit 1. creating a chat through Messages.app: the request names no recipient in 'to'. Observed: to is an empty list. Fix: name the one recipient in 'to', a phone number in E.164 form or an Apple ID email. Provoked by `tests/mac-relay/messaging.rs::a_chat_with_no_recipient_is_refused`.
  • `most.mac_relay.messaging.group-unsupported` — HTTP 503, exit 1. creating a chat through Messages.app: mac-relay cannot create a group chat: received {count} recipients; no message was sent; Messages.app is addressed one recipient at a time. Observed: to names {count} recipients. Fix: create one chat per recipient, or route group chats to a transport that creates them. Provoked by `tests/mac-relay/messaging.rs::a_group_chat_is_refused_before_anything_is_sent`.
  • `most.mac_relay.messaging.nothing-to-send` — HTTP 403, exit 1. sending through Messages.app: the message has no text and no attachment Messages.app can send: an attachment needs a file:// URL, an absolute path or an http(s) URL. Observed: {parts} part(s), none of them non-empty text or an attachment with a usable URL. Fix: send a text part with a value, or an attachment part whose url is a file:// URL, an absolute path or an http(s) URL. Provoked by `tests/mac-relay/messaging.rs::a_message_with_nothing_to_send_is_refused`.
  • `most.mac_relay.messaging.effect-unknown` — HTTP 403, exit 1. sending through Messages.app: the message names an effect Messages.app does not have; no message was sent. Observed: effect {kind}/{name}. Fix: name one of the effects of its type the Messages data page lists under Message effects, or send without an effect. Provoked by `tests/mac-relay/messaging.rs::an_unknown_effect_is_refused_before_sending`.
  • `most.mac_relay.messaging.glyph-missing` — HTTP 403, exit 1. reacting through Messages.app: an emoji reaction needs the glyph it shows, and the request carries none. Observed: reaction is emoji and glyph is absent. Fix: send the emoji in 'glyph', or react with one of the classic tapbacks. Provoked by `tests/mac-relay/messaging.rs::an_emoji_reaction_without_a_glyph_is_refused`.
  • `most.mac_relay.messaging.chat-unknown` — HTTP 404, exit 1. asking Messages.app to {action}: Most's storage holds no chat with that id. Observed: chat {chat} is not stored. Fix: use the chat id 'POST /v3/chats' answered when the chat was created, or create the chat first. Provoked by `tests/mac-relay/messaging.rs::a_chat_that_is_not_stored_is_refused_as_absent`.
  • `most.mac_relay.messaging.chat-unaddressable` — HTTP 403, exit 1. asking Messages.app to {action}: the stored chat records neither Messages.app's chat GUID nor a recipient handle, so nothing names it to Messages.app. Observed: chat {chat} has no backend_ref and no to_handles. Fix: create the chat again with its recipient ('POST /v3/chats'), and send in the new one. Provoked by `tests/mac-relay/messaging.rs::a_chat_without_guid_or_recipient_is_refused`.
  • `most.mac_relay.messaging.chat-without-guid` — HTTP 403, exit 1. asking Messages.app to {action}: the helper addresses a chat by Messages.app's chat GUID, and none is recorded for this chat: chat.db had not shown the chat when it was created. Observed: chat {chat} has no backend_ref. Fix: send one message in the chat ('POST /v3/chats/{chat}/messages'), which records the GUID once chat.db shows it, then try again. Provoked by `tests/mac-relay/messaging.rs::a_reaction_in_a_chat_without_a_guid_is_refused`.
  • `most.mac_relay.messaging.message-unknown` — HTTP 404, exit 1. asking Messages.app to {action}: Most's storage holds no message with that id. Observed: message {message} is not stored. Fix: use the id of a message of this chat, as its send or webhook event named it. Provoked by `tests/mac-relay/messaging.rs::an_edit_of_a_message_that_is_not_stored_is_refused_as_absent`.
  • `most.mac_relay.messaging.message-without-guid` — HTTP 403, exit 1. asking Messages.app to {action}: Messages.app knows a message by its own GUID and none is recorded for this one: it was sent through AppleScript, which names none, or the helper's answer to its send named none (most.mac_relay.messaging.sent-unidentified, logged at the send). Observed: message {message} has no backend_ref. Fix: act on a message sent through the helper (MOST_DYLIB_ENABLED=true) whose send named its GUID, or on a received one; the log line sent-unidentified names each message sent without one. Provoked by `tests/mac-relay/messaging.rs::an_edit_of_a_message_without_a_guid_is_refused`.
  • `most.mac_relay.messaging.osascript-unavailable` — HTTP 503, exit 1. sending through Messages.app: osascript is not on most-server's PATH, so no AppleScript reached Messages.app; nothing was sent. Observed: starting osascript for a {lines}-line script, {path}: {error}. Fix: run most-server on macOS with /usr/bin on its PATH ('command -v osascript' names it). Provoked by `tests/mac-relay/no_programs.rs::a_host_without_osascript_is_refused_as_configuration`.
  • `most.mac_relay.messaging.osascript-unstartable` — HTTP 503, exit 1. sending through Messages.app: the osascript on most-server's PATH could not be started, so no AppleScript reached Messages.app; nothing was sent. Observed: starting osascript for a {lines}-line script, {path}: {kind}: {error}. Fix: run 'ls -l "$(command -v osascript)"' as the user most-server runs as and repair what it shows (an osascript that is not the system's /usr/bin/osascript, or not executable). Provoked by `tests/mac-relay/no_programs.rs::a_host_whose_osascript_cannot_start_is_refused`.
  • `most.mac_relay.messaging.osascript-output-not-text` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: osascript ended and what it wrote on {pipe} is not UTF-8 text, so whether Messages.app took the message is unknown. Observed: a {lines}-line script; osascript ended {ended}; {pipe} holds {bytes} bytes, not UTF-8 from byte {offset}. Fix: check in Messages.app whether the message went out before sending again. Provoked by `tests/mac-relay/messaging.rs::a_send_whose_osascript_output_is_not_text_is_refused`.
  • `most.mac_relay.messaging.osascript-output-unread` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: osascript ended and its {pipe} could not be read, so whether Messages.app took the message is unknown. Observed: a {lines}-line script; osascript ended {ended}; reading {pipe}: {kind}: {error}. Fix: check in Messages.app whether the message went out before sending again. Provoked by `tests/mac-relay/messaging.rs::a_send_whose_osascript_output_cannot_be_read_is_refused`.
  • `most.mac_relay.messaging.osascript-unwaited` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: osascript was started and the system could not wait for it to end, so whether Messages.app took the message is unknown. Observed: a {lines}-line script; waiting for osascript: {kind}: {error}. Fix: check in Messages.app whether the message went out before sending again. Provoked by `tests/mac-relay/messaging.rs::a_send_whose_osascript_cannot_be_waited_for_is_refused`.
  • `most.mac_relay.messaging.automation-denied` — HTTP 503, exit 1. sending through Messages.app: macOS did not let most-server send Apple events to Messages.app (error -1743): it lacks the Automation permission; nothing was sent. Observed: osascript -e with a {lines}-line script ended {ended}; AppleScript error {number}: {stderr}. Fix: allow most-server to control Messages.app (System Settings, Privacy & Security, Automation), then send again. Provoked by `tests/mac-relay/messaging.rs::a_send_macos_does_not_authorize_is_refused_naming_automation`.
  • `most.mac_relay.messaging.target-unknown` — HTTP 403, exit 1. sending through Messages.app: Messages.app holds no buddy or chat the script names (AppleScript error -1728, the object cannot be got): the recipient is not an iMessage address on this account, or the chat is gone; nothing was sent. Observed: osascript -e with a {lines}-line script ended {ended}; AppleScript error {number}: {stderr}. Fix: check in Messages.app on this Mac that the recipient is reachable on iMessage and the chat still exists, then send again. Provoked by `tests/mac-relay/messaging.rs::a_send_to_a_buddy_messages_does_not_know_is_refused`.
  • `most.mac_relay.messaging.messages-timed-out` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: Messages.app did not answer the Apple event in time (AppleScript error -1712); delivery is not confirmed. Observed: osascript -e with a {lines}-line script ended {ended}; AppleScript error {number}: {stderr}. Fix: check in Messages.app whether the message went out before sending again. Provoked by `tests/mac-relay/messaging.rs::a_send_messages_app_does_not_answer_in_time_is_refused_as_retryable`.
  • `most.mac_relay.messaging.messages-not-running` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: Messages.app is not running and could not be launched for the Apple event (AppleScript error -600); nothing was sent. Observed: osascript -e with a {lines}-line script ended {ended}; AppleScript error {number}: {stderr}. Fix: open Messages.app in the desktop session most-server runs in ('open -a Messages'), then send again. Provoked by `tests/mac-relay/messaging.rs::a_send_while_messages_is_not_running_is_refused_as_retryable`.
  • `most.mac_relay.messaging.applescript-failed` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: Messages.app's AppleScript raised an error the relay has no cause of its own for (its number and message are observed); delivery is not confirmed. Observed: osascript -e with a {lines}-line script ended {ended}; AppleScript error {number}: {stderr}. Fix: look the AppleScript error number up in Apple's AppleScript Language Guide (Error Numbers and Error Messages), repair what it names in Messages.app on this Mac, and check whether the message went out before sending again. Provoked by `tests/mac-relay/messaging.rs::a_send_messages_app_refuses_names_its_applescript_error`.
  • `most.mac_relay.messaging.dispatch-lost` — HTTP 503, exit 69, and sending it again can help. sending through Messages.app: the task that ran osascript ended before it answered: it panicked, or the runtime is shutting down; delivery is not confirmed. Observed: the task running osascript {ended}: {error}. Fix: check in Messages.app whether the message went out before sending again; a panic is in most-server's log. Provoked by `tests/mac-relay/messaging.rs::a_dispatch_whose_task_panics_is_refused_as_retryable`.
  • `most.mac_relay.messaging.storage-unreadable` — HTTP 503, exit 69, and sending it again can help. asking Messages.app to {action}: Most's storage did not answer the read of the chat or message, so nothing was sent. Observed: the storage answered {storage}: {error}. Fix: check most-server's database ('most-cli health'), then try again. Provoked by `tests/mac-relay/messaging.rs::a_store_that_cannot_be_read_refuses_before_sending`.
  • `most.mac_relay.messaging.sent-unrecorded` — HTTP 503, exit 69, and sending it again can help. recording what Messages.app sent: Messages.app accepted the message and Most's storage did not record it, so it is not in the chat's history and no status for it follows. Observed: the storage answered {storage}: {error}. Fix: do not send it again: check the chat in Messages.app; repair most-server's database ('most-cli health'). Provoked by `tests/mac-relay/messaging.rs::a_send_the_store_does_not_record_says_it_was_sent`.
  • `most.mac_relay.messaging.sent-unidentified` — HTTP 403, exit 1. recording the Messages.app GUID of message {message}, sent with the helper's {action} in chat {chat}: the helper's answer named no message GUID (Messages.app held no last sent message for the chat, or its guid was not text), so the send stands and the message is stored without one: editing, unsending or reacting to it is refused as message-without-guid. Observed: identifier {identifier}; the answer holds {keys}. Fix: nothing to repair for this send; when every send says it, GET /internal/diagnostics/imessage/account on most-server shows whether Messages.app is signed in, and 'most-server --version' names the release whose helper runs. Provoked by `tests/mac-relay/messaging.rs::a_send_whose_helper_names_no_guid_is_said`.
  • `most.mac_relay.messaging.chat-unobserved` — HTTP 403, exit 1. recording the Messages.app GUID of the chat {chat} created by its first send: chat.db, read once the send returned, holds no row this Mac sent after ROWID {rowid} in a chat with a GUID, so the chat is stored without Messages.app's GUID; the send stands, and later sends in it address its first recipient's buddy. Observed: {read} row(s) after ROWID {rowid} in {path}, {sent} of them sent from this Mac, none in a chat with a GUID. Fix: send one more message in the chat once Messages.app shows it, which records the GUID; edits, unsends and reactions in it need it. When every created chat says it, read 'sqlite3 -readonly {path} 'SELECT m.ROWID, m.is_from_me, c.guid FROM message m LEFT JOIN chat_message_join j ON j.message_id = m.ROWID LEFT JOIN chat c ON c.ROWID = j.chat_id WHERE m.ROWID > {rowid}''. Provoked by `tests/mac-relay/chat_observation.rs::a_chat_db_without_the_sent_row_is_said_as_chat_unobserved`.

most.mac_relay.receive#

Watch chat.db, read every row it gains and every inbound event the helper pushes, store each message in its chat and emit message.received, reactions, edits, unsends, delivery states and locations to the webhook subscriptions of the counterparty.

Started through: `most-server receive pipeline (MOST_COMPOSITION=dev-mac, dev-all or prod on macOS)`.

Uses: `most.mac_relay.chatdb`, `most.core.secrets`, `most.mac_relay.summary`.

  • `most.mac_relay.receive.watch-unavailable` — HTTP 503, exit 1. watching Messages.app's chat.db for changes: chat.db cannot be watched (macOS kqueue on the file and its -wal), so no new row would ever be read and live receive does not start. Observed: watching {path} and its -wal: {error}. Fix: run most-server on macOS as a user that can open chat.db (Full Disk Access), then start it again. Provoked by `tests/mac-relay/receive.rs::a_chat_db_that_cannot_be_watched_stops_receive_from_starting`.
  • `most.mac_relay.receive.cursor-unprimed` — HTTP 403, exit 1. reading the rows chat.db gained: the poller was asked for new rows before start read where chat.db ends, so it cannot tell new rows from history. Observed: the poller holds no starting ROWID. Fix: start the poller (ChatDbPoller::start) before it reads; most-server's receive pipeline does. Provoked by `tests/mac-relay/receive.rs::a_poller_that_reads_before_starting_is_refused`.
  • `most.mac_relay.receive.queue-closed` — HTTP 503, exit 69, and sending it again can help. handing chat.db row {rowid} to the webhook bridge: the bridge that consumes the poller's rows has stopped, so the row is read and not delivered. Observed: the poller's queue is closed. Fix: start most-server again; the rows are read again from where chat.db ends then. Provoked by `tests/mac-relay/receive.rs::a_poller_whose_bridge_stopped_says_so`.
  • `most.mac_relay.receive.group-sender` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row names no single sender handle: the webhook bridge emits direct messages only. Observed: the row carries no handle. Fix: read group messages in Messages.app; Most's receive emits one-to-one chats. Provoked by `tests/mac-relay/receive.rs::an_inbound_row_without_a_sender_is_not_emitted`.
  • `most.mac_relay.receive.handle-missing` — HTTP 403, exit 1. receiving chat.db row {rowid}: the {what} names no handle, so no webhook subscription can be matched. Observed: the row carries no handle. Fix: nothing to do for this row; Messages.app wrote it without a counterparty. Provoked by `tests/mac-relay/receive.rs::a_reaction_without_a_handle_is_not_emitted`.
  • `most.mac_relay.receive.reaction-unrecognized` — HTTP 403, exit 1. receiving chat.db row {rowid}: associated_message_type {kind} is neither a tapback nor an emoji reaction, so no reaction is emitted. Observed: associated_message_type {kind}. Fix: run a Most release that reads this macOS's reaction types. Provoked by `tests/mac-relay/receive.rs::a_reaction_of_an_unknown_type_is_not_emitted`.
  • `most.mac_relay.receive.undated` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row carries {what} and no date, so when it happened is unknown. Observed: the row's date is empty. Fix: nothing to do for this row; Messages.app wrote it without a date. Provoked by `tests/mac-relay/receive.rs::a_location_without_a_date_is_not_recorded`.
  • `most.mac_relay.receive.account-unknown` — HTTP 403, exit 1. creating the chat of the first message with {counterparty}: the message records no chat.account, so this account's own handle is unknown and its chat is not created with an empty sender. Observed: chat.account is empty. Fix: import the account ('most-cli accounts import messages-app'), which records the chat with its sender. Provoked by `tests/mac-relay/receive.rs::a_first_message_without_an_account_creates_no_chat`.
  • `most.mac_relay.receive.card-unrecorded` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: chat.db records no file for the card's attachment, so there is nothing to read; the message goes out without the {kind}. Observed: the attachment records mime {mime}, uti {uti} and no filename. Fix: open the attachment in Messages.app so it downloads and Messages.app records its file. Provoked by `tests/mac-relay/receive.rs::a_contact_card_without_a_file_leaves_the_file_part`.
  • `most.mac_relay.receive.card-absent` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the card's file is not there yet, as when Messages.app has not downloaded the attachment; the message goes out with the file part and without the {kind}. Observed: no file at {file} ({mime}, {uti}): {error}. Fix: open the attachment in Messages.app so it downloads; the next message carrying a card is read again. Provoked by `tests/mac-relay/cards.rs::a_contact_card_not_yet_downloaded_leaves_the_file_part`.
  • `most.mac_relay.receive.card-unreadable` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the card's file is there and could not be read by the user most-server runs as; the message goes out with the file and without the {kind}. Observed: reading {file} ({mime}, {uti}) answered {kind_of_error}: {error}. Fix: let the user most-server runs as read ~/Library/Messages/Attachments (Full Disk Access for most-server), then receive again. Provoked by `tests/mac-relay/cards.rs::a_contact_card_the_user_may_not_read_leaves_the_file_part`.
  • `most.mac_relay.receive.card-not-text` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the card's file is not UTF-8 text, so it is not a vCard; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) holds {bytes} bytes, not UTF-8 from byte {offset}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_contact_card_that_is_not_text_leaves_the_file_part`.
  • `most.mac_relay.receive.card-begin-nested` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a BEGIN:VCARD opens inside a card that was never ended, so where one card stops is unknown; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: BEGIN:VCARD on line {line}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_card_opened_inside_a_card_leaves_the_file_part`.
  • `most.mac_relay.receive.card-end-stray` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: an END:VCARD ends no card, so the file is not the fenced cards a vCard is; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: END:VCARD on line {line} with no card open. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::an_end_that_ends_no_card_leaves_the_file_part`.
  • `most.mac_relay.receive.card-line-outside` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a property stands before any BEGIN:VCARD, so it belongs to no card; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: line {line} ({property}) outside any card. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_property_outside_any_card_leaves_the_file_part`.
  • `most.mac_relay.receive.card-line-unnamed` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a line inside a card has no ':' between a property name and its value, so it names no property; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: line {line} of {length} characters has no ':'. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_line_without_a_colon_leaves_the_file_part`.
  • `most.mac_relay.receive.card-unended` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the file ends inside a card that has no END:VCARD, as a file cut short does; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} is never ended. Fix: open the attachment in Messages.app so it downloads whole, then receive again; a file Messages.app holds whole is opened in Contacts.app. Provoked by `tests/mac-relay/cards.rs::a_card_never_ended_leaves_the_file_part`.
  • `most.mac_relay.receive.card-none` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the file is text with no BEGIN:VCARD, so it holds no card; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: {lines} lines and no BEGIN:VCARD. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::text_with_no_card_leaves_the_file_part`.
  • `most.mac_relay.receive.card-soft-break-dangling` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a quoted-printable value ends in a soft line break ('=') on the file's last line, so the rest of the value is missing; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: {property} on line {line} continues past the end. Fix: open the attachment in Messages.app so it downloads whole, then receive again. Provoked by `tests/mac-relay/cards.rs::a_soft_break_on_the_last_line_leaves_the_file_part`.
  • `most.mac_relay.receive.card-escape-incomplete` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a quoted-printable value has an '=' without two hexadecimal digits after it, so the byte it stands for is unknown; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: {property} on line {line}, '=' at byte {offset} of its value. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::an_incomplete_escape_leaves_the_file_part`.
  • `most.mac_relay.receive.card-value-not-utf8` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: a quoted-printable value decodes to bytes that are not UTF-8, so it is not text a card carries; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: {property} on line {line} decodes to bytes not UTF-8 from byte {offset}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_value_that_decodes_to_no_text_leaves_the_file_part`.
  • `most.mac_relay.receive.location-url-missing` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the location card carries no URL property, the Apple Maps link Messages.app writes the position in; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} has no URL. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_card_without_a_link_leaves_the_file_part`.
  • `most.mac_relay.receive.location-url-unqueried` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the location card's map link has no query ('?'), so it carries no ll= position; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} links {url}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_link_without_a_query_leaves_the_file_part`.
  • `most.mac_relay.receive.location-pair-missing` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the location card's map link carries no ll= latitude,longitude pair, the only position Messages.app writes; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} links {url}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_link_without_a_pair_leaves_the_file_part`.
  • `most.mac_relay.receive.location-pair-malformed` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the location card's ll= value is not two numbers parted by a comma (latitude,longitude); the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} has ll={pair}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_pair_without_a_comma_leaves_the_file_part`.
  • `most.mac_relay.receive.location-coordinate-not-number` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the {axis} of the location card's ll= pair is not a decimal number; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} has {axis} "{text}", which the number reader refused: {error}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_coordinate_that_is_no_number_leaves_the_file_part`.
  • `most.mac_relay.receive.location-coordinate-out-of-range` — HTTP 403, exit 1. reading the {kind} card of attachment {attachment}: the {axis} of the location card's ll= pair lies outside the ±{limit} degrees a WGS 84 {axis} spans, so it is no place on Earth; the message goes out with the file and without the {kind}. Observed: {file} ({mime}, {uti}) of {bytes} bytes: card {card} has {axis} {value}. Fix: open the card in Contacts.app (a location in Maps) to see what it holds; the file part carries it unchanged. Provoked by `tests/mac-relay/cards.rs::a_location_coordinate_off_the_globe_leaves_the_file_part`.
  • `most.mac_relay.receive.mime-program-missing` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': 'file' is not on most-server's PATH, so the attachment's content cannot be typed; the part goes out with mime_type null. Observed: {path_variable}: {error}. Fix: run most-server with /usr/bin on its PATH ('command -v file' names the system's file). Provoked by `tests/mac-relay/no_programs.rs::a_host_without_file_types_no_attachment`.
  • `most.mac_relay.receive.mime-program-unstartable` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': the 'file' on most-server's PATH could not be started, so the attachment's content cannot be typed; the part goes out with mime_type null. Observed: {path_variable}: {kind}: {error}. Fix: run 'ls -l "$(command -v file)"' as the user most-server runs as and repair what it shows. Provoked by `tests/mac-relay/no_programs.rs::a_host_whose_file_cannot_start_types_no_attachment`.
  • `most.mac_relay.receive.mime-program-refused` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': 'file' ended with a failure, so it named no type for the attachment's content; the part goes out with mime_type null. Observed: '{command}' exited {status}; stderr: {stderr}; the file {state}. Fix: run '{command}' as the user most-server runs as and repair what it says. Provoked by `tests/mac-relay/attachment.rs::a_content_type_file_refuses_is_named`.
  • `most.mac_relay.receive.mime-answer-not-text` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': 'file' answered bytes that are not UTF-8 text, so they name no MIME type; the part goes out with mime_type null. Observed: '{command}' answered {bytes} bytes, not UTF-8 from byte {offset}. Fix: run '{command}' and check that the system's file prints a type such as image/jpeg. Provoked by `tests/mac-relay/attachment.rs::a_content_type_answer_that_is_not_text_is_named`.
  • `most.mac_relay.receive.mime-answer-not-type` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': 'file' answered words that are not a MIME type (type/subtype), as it does for a file it cannot open; the part goes out with mime_type null. Observed: '{command}' answered "{answer}"; the file {state}. Fix: open the attachment in Messages.app so it downloads, or let most-server's user read ~/Library/Messages/Attachments (Full Disk Access), then receive again. Provoked by `tests/mac-relay/attachment.rs::an_attachment_whose_file_is_gone_is_typed_as_nothing`.
  • `most.mac_relay.receive.mime-answer-undetermined` — HTTP 403, exit 1. reading the content type of attachment {attachment}'s file {path} with '{command}': 'file' could not determine the type of the file's content and answered application/octet-stream, which is no type of the attachment; the part goes out with mime_type null. Observed: '{command}' answered "application/octet-stream"; the file {state}. Fix: nothing to repair on this host when the file is whole: the sender's file has no type 'file' recognises; when it is shorter than the sender's, open the attachment in Messages.app so it downloads whole, then receive again. Provoked by `tests/mac-relay/attachment.rs::an_attachment_whose_content_file_cannot_type_is_typed_as_nothing`.
  • `most.mac_relay.receive.url-unavailable` — HTTP 503, exit 69, and sending it again can help. linking attachment {attachment} in its event: the attachment registry did not record the file, so no link to it can be signed and the event carries url null and url_error instead of a link. Observed: the attachment records the file {file} ({bytes} bytes); the registry answered: {error}. Fix: check most-server's database ('most-cli health'); the next message with an attachment registers its file again. Provoked by `tests/mac-relay/receive.rs::an_attachment_the_registry_does_not_record_carries_why`.
  • `most.mac_relay.receive.body-partial` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row's attributedBody is an NSTypedStream the decoder could not read to its end, so its text, formatting or link previews may be incomplete. Observed: {bytes} bytes of attributedBody naming the classes {classes}; text recovered: {recovered}; the decoder stopped: {error}. Fix: nothing to repair on this host: the message goes out with what was read; report the row's classes to Most's maintainers so the decoder learns them. Provoked by `tests/mac-relay/receive.rs::a_body_the_decoder_stops_in_is_emitted_partly`.
  • `most.mac_relay.receive.preview-unread` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row's {column} holds a binary property list of the kind Messages.app keeps a link preview in, and it does not decode, so the message goes out without that preview's title, summary, site and image. Observed: {bytes} bytes of {source}: {fault}. Fix: nothing to repair on this host: the message goes out without that preview; read the column with 'sqlite3 -readonly <chat.db> 'SELECT hex({column}) FROM message WHERE ROWID = {rowid}'' (chat.db is the file MOST_CHAT_DB_PATH names, else ~/Library/Messages/chat.db) and report its shape to Most's maintainers. Provoked by `tests/accounts/previews.rs::a_link_preview_that_does_not_decode_is_logged_with_its_row`.
  • `most.mac_relay.receive.body-textless` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row's text column is empty and its attributedBody holds no text the decoder can read, so the message goes out without text. Observed: {bytes} bytes of attributedBody naming the classes {classes}. Fix: open the message in Messages.app to see what it holds; report the row's classes to Most's maintainers so the decoder learns them. Provoked by `tests/mac-relay/receive.rs::a_body_without_readable_text_is_emitted_textless`.
  • `most.mac_relay.receive.part-unstored` — HTTP 403, exit 1. receiving chat.db row {rowid}: a part the event carries does not fit the shape a stored message part has, so it is emitted but not stored with the message. Observed: the part of type {kind} with the fields {fields}; reading it as a stored part: {error}. Fix: nothing to repair on this host: the webhook carries the part; report the part's type to Most's maintainers. Provoked by `tests/mac-relay/receive.rs::a_part_storage_cannot_hold_is_emitted_unstored`.
  • `most.mac_relay.receive.glyph-unread` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row is an emoji reaction whose glyph neither its emoji column nor its text holds, so it is emitted with glyph null. Observed: the emoji column holds {emoji}; attributedBody is {body}. Fix: nothing to repair on this host: the reaction is emitted with glyph null; see the reaction in Messages.app for its emoji. Provoked by `tests/mac-relay/receive.rs::an_emoji_reaction_without_a_glyph_is_emitted_with_none`.
  • `most.mac_relay.receive.position-sender-unknown` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row is a position this Mac sent, and its chat records no account (chat.account is empty), so whose position it is is not known and it is not recorded. Observed: outbound row {rowid} to {counterparty} carries a position; chat.account is empty. Fix: sign Messages.app in to the account the share is sent from, so its chats record it. Provoked by `tests/mac-relay/receive.rs::a_sent_position_without_an_account_is_not_recorded`.
  • `most.mac_relay.receive.position-recipient-unknown` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row is a position this Mac sent, and it names no handle it was sent to, so the chat it belongs to is not known and it is not recorded. Observed: outbound row {rowid} carries {positions} positions and an empty handle. Fix: nothing to repair on this host: the position was sent; Messages.app wrote the row without its recipient. Provoked by `tests/mac-relay/receive.rs::a_sent_position_without_a_recipient_is_not_recorded`.
  • `most.mac_relay.receive.share-stop-unmatched` — HTTP 403, exit 1. receiving chat.db row {rowid}: the row stops a location share, and no share of that handle and direction open by that time is recorded in the chat, so nothing is closed or emitted. Observed: share stop {guid} for {handle} ({direction}) at {at} in chat {chat}. Fix: nothing to repair on this host: the share's start was not read (it predates the relay or its row was skipped); 'most-cli location {chat}' shows the shares recorded. Provoked by `tests/mac-relay/receive.rs::a_share_stop_without_an_open_share_emits_nothing`.
  • `most.mac_relay.receive.attachment-url-local` — HTTP 503, exit 1. linking a received attachment in its webhook: a signed attachment link needs PUBLIC_BASE_URL and MOST_ATTACHMENT_SIGNING_SECRET, and {unset}, so attachments are linked as file:// URLs only this host can open. Observed: {unset}; said once per start of the receive pipeline. Fix: set PUBLIC_BASE_URL to the origin subscribers reach most-server at and MOST_ATTACHMENT_SIGNING_SECRET to the ITEM#FIELD of the signing secret in the store Stado hands out, then start most-server again. Provoked by `tests/mac-relay/receive.rs::attachments_without_signing_are_linked_locally`.
  • `most.mac_relay.receive.watch-stopped` — HTTP 503, exit 69, and sending it again can help. watching Messages.app's chat.db for changes: the kernel's event queue stopped answering while chat.db was watched, so no further row is read until most-server starts again. Observed: watching {path}, kevent answered: {error}. Fix: start most-server again; rows that arrived meanwhile are read from the cursor it kept. Provoked by `tests/mac-relay/receive.rs::a_watch_whose_queue_fails_stops_receiving`.

most.mac_relay.speech#

Read WISENT_TTS_VOICE and MOST_TTS_RENDER_DIR, normalize the text for speech, check the voice against `say -v '?'` and render the text with `say -o FILE.aiff -f -`.

Started through: `POST /v3/chats/{chat_id}/voice-from-text`, `most-server (MOST_COMPOSITION=dev-mac, dev-all or prod on macOS)`.

  • `most.mac_relay.speech.setting-not-text` — HTTP 503, exit 1. reading {name}: {name} holds bytes that are not UTF-8 text, so it names no {what}. Observed: {name} is {value}. Fix: set {name} to text (a voice 'say -v '?'' lists, or a directory path), or unset it, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_speech_setting_that_is_not_text_is_refused_naming_it`.
  • `most.mac_relay.speech.voice-blank` — HTTP 503, exit 1. reading WISENT_TTS_VOICE: WISENT_TTS_VOICE is set and blank, which names no voice; unset, 'say' speaks in the system voice. Observed: WISENT_TTS_VOICE is {value}. Fix: set WISENT_TTS_VOICE to a voice 'say -v '?'' lists, or unset it to speak in the system voice, and start most-server again. Provoked by `tests/server/composition.rs::a_mac_relay_pool_whose_speech_settings_are_unusable_is_not_registered`.
  • `most.mac_relay.speech.render-dir-homeless` — HTTP 503, exit 1. choosing where speech is rendered: MOST_TTS_RENDER_DIR is unset and no home directory is known, and speech is never rendered into a shared temporary directory. Observed: MOST_TTS_RENDER_DIR is unset; HOME is {home} and the user database names no home. Fix: set MOST_TTS_RENDER_DIR to a directory the user most-server runs as owns, or run it with a HOME, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_render_directory_without_a_home_is_refused`.
  • `most.mac_relay.speech.render-dir-denied` — HTTP 503, exit 1. creating the speech render directory {path}: the user most-server runs as may not create {path} or a directory above it. Observed: creating {path} answered {kind}: {error}. Fix: give that user write access to the nearest existing directory above {path} ('ls -ld' it), or set MOST_TTS_RENDER_DIR to a directory it owns, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_render_directory_the_user_may_not_create_is_refused`.
  • `most.mac_relay.speech.render-dir-blocked` — HTTP 503, exit 1. creating the speech render directory {path}: {path} or a directory above it is a file, so no directory can be made there. Observed: creating {path} answered {kind}: {error}. Fix: move the file away or set MOST_TTS_RENDER_DIR to another directory, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_render_directory_under_a_file_is_refused`.
  • `most.mac_relay.speech.render-dir-unwritable` — HTTP 503, exit 1. creating the speech render directory {path}: the filesystem refused to create {path} for another reason than permission or a file in the way: a read-only volume, a full disk or a broken mount. Observed: {kind}: {error}. Fix: run 'df -h' on the volume {path} is on and repair what it shows, or set MOST_TTS_RENDER_DIR to a writable volume, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_render_directory_on_a_read_only_volume_is_refused`.
  • `most.mac_relay.speech.text-unspeakable` — HTTP 422, exit 2. normalizing the text for speech: the text holds nothing but markdown markers ('*', '_', '~', backticks, '#', '>', bullets) and whitespace, which are removed before it is spoken. Observed: the text is {length} characters and starts {start}; it normalizes to nothing. Fix: send text with words in it, or send a recorded file to POST /v3/chats/<chat>/voice. Provoked by `tests/mac-relay/speech.rs::text_with_nothing_speakable_is_refused`.
  • `most.mac_relay.speech.voice-unknown` — HTTP 422, exit 2. choosing the voice {voice} for speech: this Mac has no voice named {voice}, and 'say' would speak in the system voice instead of refusing. Observed: 'say -v '?'' lists {count} voices, among them {voices}. Fix: name a voice 'say -v '?'' lists, or send no voice to speak in {fallback}. Provoked by `tests/mac-relay/speech.rs::a_voice_this_mac_does_not_have_is_refused`.
  • `most.mac_relay.speech.default-voice-unknown` — HTTP 503, exit 1. choosing the voice {voice} for speech: WISENT_TTS_VOICE names {voice}, which this Mac does not have, and 'say' would speak in the system voice instead of refusing. Observed: 'say -v '?'' lists {count} voices, among them {voices}. Fix: set WISENT_TTS_VOICE to a voice 'say -v '?'' lists (or install {voice} in System Settings › Accessibility › Spoken Content), or unset it, and start most-server again. Provoked by `tests/mac-relay/speech.rs::a_configured_voice_this_mac_does_not_have_is_refused`.
  • `most.mac_relay.speech.engine-missing` — HTTP 503, exit 1. starting {program} to {doing}: there is no program at {program}, the macOS speech engine. Observed: starting {program} answered {kind}: {error}. Fix: run most-server on macOS, whose /usr/bin/say renders speech ('ls -l /usr/bin/say'). Provoked by `tests/mac-relay/speech.rs::a_speech_engine_that_is_not_there_is_refused`.
  • `most.mac_relay.speech.engine-unstartable` — HTTP 503, exit 1. starting {program} to {doing}: the system refused to start {program}: it is not executable by the user most-server runs as, or not a program of this machine. Observed: {kind}: {error}. Fix: run '{program} -v '?'' as the user most-server runs as and repair what it says. Provoked by `tests/mac-relay/speech.rs::a_speech_engine_that_cannot_start_is_refused`.
  • `most.mac_relay.speech.voices-unlisted` — HTTP 502, exit 69, and sending it again can help. listing the voices of {program} ('{program} -v '?''): the speech engine ended without listing its voices, so the voice cannot be checked before it renders. Observed: '{program} -v '?'' exited {status}; stderr: {stderr}. Fix: run '{program} -v '?'' as the user most-server runs as and repair what it says, then send again. Provoked by `tests/mac-relay/speech.rs::an_engine_that_lists_no_voices_is_refused`.
  • `most.mac_relay.speech.voices-not-text` — HTTP 502, exit 69, and sending it again can help. reading the voices {program} listed ('{program} -v '?''): the list is not UTF-8 text, so a voice name read from it could be one the engine does not have. Observed: {bytes} byte(s), not UTF-8 from byte {at}. Fix: run '{program} -v '?'' as the user most-server runs as and repair the voice whose name is not text, then send again. Provoked by `tests/mac-relay/speech.rs::an_engine_whose_voice_list_is_not_text_is_refused`.
  • `most.mac_relay.speech.engine-input-failed` — HTTP 502, exit 69, and sending it again can help. handing {length} characters of text to {program} on its standard input: the speech engine stopped reading its standard input before it had the whole text. Observed: {error}; '{program}' exited {status}; stderr: {stderr}. Fix: send again; when it keeps failing, run 'echo hello | {program} -o probe.aiff -f -' as the user most-server runs as and repair what it says. Provoked by `tests/mac-relay/speech.rs::an_engine_that_stops_reading_its_text_is_refused`.
  • `most.mac_relay.speech.engine-unread` — HTTP 502, exit 69, and sending it again can help. waiting for {program} to render {length} characters: the system failed to hand back the speech engine's exit and output, so whether it rendered is unknown. Observed: {program} was rendering into {path}; waiting on it answered: {error}. Fix: send again; when it keeps failing, run 'echo hello | {program} -o probe.aiff -f -' as the user most-server runs as and check the system log ('log show --last 5m --predicate 'process == "say"''). Provoked by `tests/mac-relay/speech.rs::an_engine_whose_end_cannot_be_read_is_refused`.
  • `most.mac_relay.speech.engine-refused` — HTTP 502, exit 69, and sending it again can help. rendering {length} characters in {voice} into {path}: the speech engine exited with a failure status without rendering the text. Observed: {program} exited {status} running '{program} -o {path} -f -' in the voice {voice}; stderr: {stderr}. Fix: send again; when it keeps failing, run 'echo hello | {program} -o {path} -f -' as the user most-server runs as and repair what it says. Provoked by `tests/mac-relay/speech.rs::an_engine_that_cannot_write_its_file_is_refused`.
  • `most.mac_relay.speech.audio-empty` — HTTP 502, exit 69, and sending it again can help. reading the speech {program} rendered into {path}: the speech engine reported success and left no audio there. Observed: {state}. Fix: send again; when it keeps failing, run 'echo hello | {program} -o probe.aiff -f -' and 'afinfo probe.aiff' as the user most-server runs as. Provoked by `tests/mac-relay/speech.rs::an_engine_that_leaves_no_audio_is_refused`.

most.mac_relay.voice_memo#

Read the memo's codec with /usr/bin/afinfo; unless it is Opus, convert it with `/usr/bin/afconvert -f caff -d opus@16000` into Messages.app's sandbox directory and send that file, else send the original.

Started through: `POST /v3/chats/{chat_id}/voice`.

Uses: `most.mac_relay.attachment`.

  • `most.mac_relay.voice_memo.codec-unread` — HTTP 403, exit 1. preparing the voice memo {path} for Messages: afinfo could not read the file's audio format, so whether it is Opus is not known and it is converted anyway. Observed: '/usr/bin/afinfo {path}' ended with {status}; it said: {stderr}. Fix: run 'afinfo {path}' to see why the file is not readable audio, and send an audio file it reads. Provoked by `tests/mac-relay/voice_memo.rs::a_memo_afinfo_cannot_read_is_converted_anyway`.
  • `most.mac_relay.voice_memo.afinfo-unstarted` — HTTP 503, exit 1. preparing the voice memo {path} for Messages: /usr/bin/afinfo could not be started, so the memo's codec is not known and it is converted anyway. Observed: starting /usr/bin/afinfo, the system answered: {error}. Fix: check that /usr/bin/afinfo exists and runs ('afinfo -h'); it ships with macOS. Provoked by `tests/mac-relay/voice_memo.rs::a_memo_afinfo_cannot_start_for_is_converted_anyway`.
  • `most.mac_relay.voice_memo.afconvert-absent` — HTTP 503, exit 1. preparing the voice memo {path} for Messages: /usr/bin/afconvert is not on this host, so the memo cannot be converted to Opus. Observed: /usr/bin/afconvert is not a file; {sent}. Fix: run most-server on a Mac whose /usr/bin/afconvert is there (it ships with macOS), or send the memo as CAF/Opus already. Provoked by `tests/mac-relay/voice_memo.rs::a_host_without_afconvert_sends_the_memo_as_it_is`.
  • `most.mac_relay.voice_memo.transcode-failed` — HTTP 403, exit 1. preparing the voice memo {path} for Messages: afconvert could not convert the file to Opus in a CAF file. Observed: '/usr/bin/afconvert -f caff -d opus@16000 {path} {output}' ended with {status}; it said: {stderr}; {sent}. Fix: run the same afconvert command to see why, and send audio it converts. Provoked by `tests/mac-relay/voice_memo.rs::a_memo_afconvert_cannot_convert_is_sent_as_it_is`.
  • `most.mac_relay.voice_memo.afconvert-unstarted` — HTTP 503, exit 1. preparing the voice memo {path} for Messages: /usr/bin/afconvert exists but could not be started. Observed: starting '/usr/bin/afconvert -f caff -d opus@16000 {path} {output}', the system answered: {error}; {sent}. Fix: check that /usr/bin/afconvert runs ('afconvert -h') for the user most-server runs as. Provoked by `tests/mac-relay/voice_memo.rs::a_memo_afconvert_cannot_start_for_is_sent_as_it_is`.

most.twilio.settings#

Read the route to Twilio the environment declares: the user's own account (MOST_TWILIO_*), or Most's bearer MOST_STADO_INTEGRATION_TOKEN for Wisent Integrations' action boundary at the address `stado capabilities resolve telephony --consumer most` hands out.

Run by the functionalities that use it.

  • `most.twilio.settings.boundary-token-unset` — HTTP 501, exit 1. reading the route to Twilio from the environment: no Twilio account is declared and MOST_STADO_INTEGRATION_TOKEN, the bearer Most presents to Wisent Integrations' action boundary, is not set. Observed: MOST_TWILIO_ACCOUNT_SID and MOST_STADO_INTEGRATION_TOKEN are unset. Fix: set MOST_STADO_INTEGRATION_TOKEN to the token 'stado service env show most' lists for Most (the boundary's address is the one 'stado capabilities resolve telephony --consumer most' names), or declare the user's own account with MOST_TWILIO_ACCOUNT_SID, MOST_TWILIO_AUTH_TOKEN and MOST_TWILIO_FROM. Provoked by `tests/server/twilio_readiness.rs::a_boundary_without_a_token_logs_why`.
  • `most.twilio.settings.boundary-token-blank` — HTTP 501, exit 1. reading the route to Twilio from the environment: MOST_STADO_INTEGRATION_TOKEN is empty or carries surrounding whitespace, which no issued token does. Observed: MOST_STADO_INTEGRATION_TOKEN is {length} characters with whitespace at an end or none at all. Fix: set MOST_STADO_INTEGRATION_TOKEN to the token exactly as issued, without spaces or a newline. Provoked by `tests/server/twilio_readiness.rs::a_padded_boundary_token_logs_why`.
  • `most.twilio.settings.telephony-provider-unsupported` — HTTP 501, exit 1. reading the address Stado's telephony alternative hands out for {action}: Stado's first answering telephony alternative is {provider}, and Most speaks only Wisent Integrations' action boundary (wisent-integrations). Observed: stado capabilities resolve telephony --consumer most handed out {provider} at {route}. Fix: put wisent-integrations first in the order ('stado capabilities select telephony --order wisent-integrations'), then send again. Provoked by `tests/server/twilio.rs::a_telephony_alternative_most_does_not_speak_is_kept_as_failed`.
  • `most.twilio.settings.telephony-route-invalid` — HTTP 501, exit 1. reading the address Stado's telephony alternative hands out for {action}: the route Stado handed out for {provider} is not an absolute URL, so no endpoint can be built on it. Observed: route {route}: {error}. Fix: declare the boundary's origin with 'stado config set capabilities.telephony.url https://integrations.example.com/', then send again. Provoked by `tests/server/twilio_readiness.rs::a_telephony_route_that_is_not_a_url_logs_why`.
  • `most.twilio.settings.telephony-route-not-origin` — HTTP 501, exit 1. reading the address Stado's telephony alternative hands out for {action}: the route Stado handed out for {provider} is not a credential-free HTTPS origin (https, a host, the path '/', no user, query or fragment), and Most appends the action's path to an origin. Observed: route {route} carries {found}. Fix: declare the boundary's bare origin with 'stado config set capabilities.telephony.url https://integrations.example.com/', then send again. Provoked by `tests/server/twilio_readiness.rs::a_telephony_route_that_is_not_an_https_origin_logs_why`.
  • `most.twilio.settings.variable-padded` — HTTP 501, exit 1. reading the route to Twilio from the environment: {name} carries whitespace at an end, which no Twilio identifier or token does. Observed: {name} is padded with whitespace. Fix: set {name} to the value exactly as Twilio's console shows it. Provoked by `tests/server/twilio_readiness.rs::a_padded_account_setting_logs_why`.
  • `most.twilio.settings.variable-not-text` — HTTP 501, exit 1. reading the route to Twilio from the environment: {name} is not UTF-8 text. Observed: {name} holds bytes that are not UTF-8. Fix: set {name} to the value exactly as Twilio's console shows it. Provoked by `tests/server/twilio_readiness.rs::an_account_setting_that_is_not_text_logs_why`.
  • `most.twilio.settings.account-token-missing` — HTTP 501, exit 1. reading the route to Twilio from the environment: MOST_TWILIO_ACCOUNT_SID names a Twilio account but MOST_TWILIO_AUTH_TOKEN, which opens it, is not set. Observed: MOST_TWILIO_ACCOUNT_SID is set; MOST_TWILIO_AUTH_TOKEN is unset or empty. Fix: set MOST_TWILIO_AUTH_TOKEN to the account's auth token, or unset MOST_TWILIO_ACCOUNT_SID to send through Stado's integration boundary. Provoked by `tests/server/calls.rs::calls_with_a_partial_twilio_account_are_refused_as_configuration`.
  • `most.twilio.settings.account-sid-missing` — HTTP 501, exit 1. reading the route to Twilio from the environment: MOST_TWILIO_AUTH_TOKEN is set but MOST_TWILIO_ACCOUNT_SID, the account it opens, is not. Observed: MOST_TWILIO_AUTH_TOKEN is set; MOST_TWILIO_ACCOUNT_SID is unset or empty. Fix: set MOST_TWILIO_ACCOUNT_SID to the account's SID (AC…), or unset MOST_TWILIO_AUTH_TOKEN. Provoked by `tests/server/twilio_readiness.rs::an_auth_token_without_an_account_logs_why`.
  • `most.twilio.settings.sender-missing` — HTTP 501, exit 1. reading the route to Twilio from the environment: a Twilio account is declared but no sender: Twilio needs a messaging service or a number to send from. Observed: MOST_TWILIO_MESSAGING_SERVICE_SID and MOST_TWILIO_FROM are unset or empty. Fix: set MOST_TWILIO_MESSAGING_SERVICE_SID (needed for RCS) or MOST_TWILIO_FROM to a number of the account. Provoked by `tests/server/twilio_readiness.rs::an_account_without_a_sender_logs_why`.

most.twilio.reach#

Send one request to Wisent Integrations' action boundary at the address Stado's telephony alternative hands out, or to Twilio's REST API, and read its answer.

Run by the functionalities that use it.

  • `most.twilio.reach.boundary-unreachable` — HTTP 503, exit 69, and sending it again can help. asking the integration boundary for {action} (POST {endpoint}): the boundary did not answer: the connection to it did not open (its host is not resolved, refuses the connection, or the TLS handshake failed). Observed: POST {endpoint}: {phase}; reqwest said {error}. Fix: check that wisent-integrations at the address 'stado capabilities resolve telephony --consumer most' names is up ('stado service status wisent-integrations'), then send again: the next send asks Stado again and names wisent-integrations as failed. Provoked by `tests/server/twilio.rs::a_send_the_boundary_does_not_answer_is_kept_as_failed`.
  • `most.twilio.reach.boundary-timed-out` — HTTP 504, exit 69, and sending it again can help. asking the integration boundary for {action} (POST {endpoint}): the boundary did not answer within the request's time. Observed: POST {endpoint}: {phase}; reqwest said {error}. Fix: check that wisent-integrations at the address 'stado capabilities resolve telephony --consumer most' names is up ('stado service status wisent-integrations'), then send again: the next send asks Stado again and names wisent-integrations as failed. Provoked by `tests/server/twilio.rs::a_send_the_boundary_answers_too_late_is_kept_as_failed`.
  • `most.twilio.reach.boundary-answer-cut` — HTTP 503, exit 69, and sending it again can help. asking the integration boundary for {action} (POST {endpoint}): the boundary began to answer and its body broke off; the action may already have reached Twilio. Observed: POST {endpoint}: {phase}; reqwest said {error}. Fix: check in the boundary's log whether {action} reached Twilio before sending again, then check that the connection to wisent-integrations holds ('stado service status wisent-integrations'). Provoked by `tests/server/twilio.rs::a_boundary_answer_that_breaks_off_is_kept_as_failed`.
  • `most.twilio.reach.boundary-unanswered` — HTTP 503, exit 69, and sending it again can help. asking the integration boundary for {action} (POST {endpoint}): the request reached the boundary and the connection closed before any answer came back; the action may already have reached Twilio. Observed: POST {endpoint}: {phase}; reqwest said {error}. Fix: check in the boundary's log whether {action} reached Twilio before sending again; the next send asks Stado again. Provoked by `tests/server/twilio.rs::a_boundary_that_closes_without_answering_is_kept_as_failed`.
  • `most.twilio.reach.boundary-unreadable` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary answered something that is not JSON. Observed: HTTP {status}: {error}. Fix: check that the address 'stado capabilities resolve telephony --consumer most' names is wisent-integrations and not another service; 'GET /internal/diagnostics/sms/readiness' on the service's loopback names the rung that fails. Provoked by `tests/server/twilio.rs::a_boundary_answering_other_than_json_is_kept_as_failed`.
  • `most.twilio.reach.boundary-unauthorized` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary does not accept MOST_STADO_INTEGRATION_TOKEN for {action}. Observed: HTTP {status}; error code {code}. Fix: allow {action} for Most's token item in the boundary's INTEGRATION_CLIENTS and check MOST_STADO_INTEGRATION_TOKEN ('stado service env show most'); 'GET /internal/diagnostics/sms/readiness' on the service's loopback names the rung that fails. Provoked by `tests/server/twilio.rs::a_boundary_refusing_most_s_token_is_kept_as_failed`.
  • `most.twilio.reach.boundary-action-unknown` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the deployed wisent-integrations serves no action {action}, so the release carrying it has not reached that host. Observed: HTTP {status}; error code {code}. Fix: deploy a wisent-integrations release that carries {action} ('stado service status wisent-integrations' names the running one). Provoked by `tests/server/twilio.rs::a_boundary_without_the_action_is_kept_as_failed`.
  • `most.twilio.reach.boundary-item-unusable` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary cannot use the Twilio account item behind {action}. Observed: HTTP {status}; error code {code}; the boundary names role {role}, field {field}, cause {reason}. Fix: repair the vault item the boundary names (role, field) so it holds the Twilio account and caller id; 'GET /internal/diagnostics/sms/readiness' on the service's loopback names the rung that fails. Provoked by `tests/server/twilio.rs::a_boundary_whose_twilio_item_is_unusable_is_kept_as_failed`.
  • `most.twilio.reach.boundary-provider-failed` — HTTP 503, exit 69, and sending it again can help. asking the integration boundary for {action} (POST {endpoint}): the boundary reached Twilio and Twilio failed the request. Observed: HTTP {status}; error code {code}. Fix: send again; when it keeps failing, Twilio's status page and the boundary's log name what Twilio answered. Provoked by `tests/server/twilio.rs::a_twilio_failure_behind_the_boundary_is_kept_as_failed`.
  • `most.twilio.reach.boundary-refused` — HTTP 403, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary refused what Most sent ({code}): a recipient or text Twilio does not take, or an answer too large to relay. Observed: HTTP {status}; error code {code}. Fix: check the recipient is an E.164 number and the text is within Twilio's limits, then send again. Provoked by `tests/server/twilio.rs::a_send_the_boundary_refuses_is_kept_as_failed`.
  • `most.twilio.reach.boundary-unrecognized` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary did not answer 'ok: true' and named none of the error codes it documents. Observed: HTTP {status}; error code {code}. Fix: check that the address 'stado capabilities resolve telephony --consumer most' names is wisent-integrations and that its release matches Most's; 'GET /internal/diagnostics/sms/readiness' on the service's loopback names the rung that fails. Provoked by `tests/server/twilio.rs::a_boundary_answering_an_undocumented_refusal_is_kept_as_failed`.
  • `most.twilio.reach.boundary-field-missing` — HTTP 503, exit 1. asking the integration boundary for {action} (POST {endpoint}): the boundary answered 'ok: true' without the {field} its contract promises. Observed: HTTP {status}; the answer has no usable {field}. Fix: deploy a wisent-integrations release whose {action} answers {field}; nothing Most sent was wrong. Provoked by `tests/server/twilio.rs::a_boundary_answer_without_its_result_is_kept_as_failed`.
  • `most.twilio.reach.account-unreachable` — HTTP 503, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio's REST API did not answer: the connection to api.twilio.com did not open (not resolved, refused, or the TLS handshake failed). Observed: {method} {resource} on api.twilio.com: {phase}; reqwest said {error}. Fix: check this host's connection to api.twilio.com ('curl -sI https://api.twilio.com') and Twilio's status page, then send again. Provoked by `tests/server/twilio.rs::a_send_twilio_does_not_answer_is_kept_as_failed`.
  • `most.twilio.reach.account-timed-out` — HTTP 504, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio's REST API did not answer within the request's time. Observed: {method} {resource} on api.twilio.com: {phase}; reqwest said {error}. Fix: check Twilio's status page and this host's connection to api.twilio.com, then send again. Provoked by `tests/server/twilio.rs::a_send_twilio_answers_too_late_is_kept_as_failed`.
  • `most.twilio.reach.account-answer-cut` — HTTP 503, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio began to answer and its body broke off; the request may already have taken effect. Observed: {method} {resource} on api.twilio.com: {phase}; reqwest said {error}. Fix: check Twilio's console for {resource} before sending again. Provoked by `tests/server/twilio.rs::a_twilio_answer_that_breaks_off_is_kept_as_failed`.
  • `most.twilio.reach.account-unanswered` — HTTP 503, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): the request reached api.twilio.com and the connection closed before any answer came back; the request may already have taken effect. Observed: {method} {resource} on api.twilio.com: {phase}; reqwest said {error}. Fix: check Twilio's console for {resource} before sending again. Provoked by `tests/server/twilio.rs::a_twilio_request_closed_without_an_answer_is_kept_as_failed`.
  • `most.twilio.reach.account-unreadable` — HTTP 503, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio answered something that is not JSON. Observed: HTTP {status}: {error}. Fix: check that nothing between this host and api.twilio.com (a proxy, a captive portal) rewrites the answer, then send again. Provoked by `tests/server/twilio.rs::a_twilio_answer_other_than_json_is_kept_as_failed`.
  • `most.twilio.reach.account-unauthorized` — HTTP 503, exit 1. asking Twilio for {resource} ({method} on api.twilio.com): MOST_TWILIO_ACCOUNT_SID and MOST_TWILIO_AUTH_TOKEN do not open a Twilio account allowed this request. Observed: HTTP {status}; Twilio error {code}: {message}. Fix: set MOST_TWILIO_ACCOUNT_SID and MOST_TWILIO_AUTH_TOKEN to the pair Twilio's console shows for the account. Provoked by `tests/server/twilio.rs::a_twilio_account_that_does_not_open_is_kept_as_failed`.
  • `most.twilio.reach.account-throttled` — HTTP 429, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio is throttling this account. Observed: HTTP {status}; Twilio error {code}: {message}. Fix: send again later, more slowly. Provoked by `tests/server/twilio.rs::a_throttled_twilio_account_is_kept_as_failed`.
  • `most.twilio.reach.account-down` — HTTP 503, exit 69, and sending it again can help. asking Twilio for {resource} ({method} on api.twilio.com): Twilio failed the request on its side. Observed: HTTP {status}; Twilio error {code}: {message}. Fix: send again; when it keeps failing, Twilio's status page says why. Provoked by `tests/server/twilio.rs::a_twilio_outage_is_kept_as_failed`.
  • `most.twilio.reach.account-refused` — HTTP 403, exit 1. asking Twilio for {resource} ({method} on api.twilio.com): Twilio refused the request ({code}): a recipient, sender or text it does not take. Observed: HTTP {status}; Twilio error {code}: {message}. Fix: look Twilio's error {code} up (https://www.twilio.com/docs/api/errors/{code}), change what it names, and send again. Provoked by `tests/server/twilio.rs::a_send_twilio_refuses_is_kept_as_failed`.
  • `most.twilio.reach.account-field-missing` — HTTP 503, exit 1. asking Twilio for {resource} ({method} on api.twilio.com): Twilio answered success without the {field} its API promises. Observed: HTTP {status}; the answer has no usable {field}. Fix: send again; when it keeps happening, Twilio's API changed and Most must be updated to read it. Provoked by `tests/server/twilio.rs::a_twilio_answer_without_its_sid_is_kept_as_failed`.

most.twilio.text#

Send an SMS or RCS to the one recipient of a conversation, through the channel it was created on, and keep the chat and the message with Twilio's answer.

Started through: `POST /v3/chats (preferred_service sms or rcs)`, `POST /v3/chats/{chat_id}/messages on an SMS or RCS chat`.

Uses: `most.twilio.reach`, `most.core.storage`.

  • `most.twilio.text.service-switch` — HTTP 400, exit 2. sending on a chat the {backend} channel carries: a conversation keeps the channel it was created on, and the message asks for {asked}. Observed: preferred_service is {asked}; the chat is carried by {backend}. Fix: leave preferred_service out, or start a new chat with POST /v3/chats on {asked}. Provoked by `tests/server/twilio.rs::a_send_asking_another_service_of_an_sms_chat_is_refused`.
  • `most.twilio.text.recipient-count` — HTTP 400, exit 2. creating an SMS or RCS chat: a Twilio conversation has exactly one recipient; group texts are not carried. Observed: to names {count} recipients. Fix: create one chat per recipient. Provoked by `tests/server/twilio.rs::a_new_sms_chat_with_two_recipients_is_refused`.
  • `most.twilio.text.text-missing` — HTTP 400, exit 2. composing the body of an SMS or RCS: the channel carries text only, and the message has no text part with a value. Observed: {parts} part(s), none of them text with a value. Fix: send at least one part of type text with a non-empty value; send media on an iMessage chat. Provoked by `tests/server/twilio.rs::an_sms_without_text_is_refused`.
  • `most.twilio.text.recipient-unstored` — HTTP 403, exit 1. sending on chat {chat}: the stored chat names no recipient, so there is nobody to send to. Observed: chat {chat} is stored with no to handle. Fix: start a new chat with POST /v3/chats naming the recipient; this one cannot be sent on. Provoked by `tests/server/twilio.rs::a_chat_stored_without_a_recipient_is_refused`.
  • `most.twilio.text.rcs-without-service` — HTTP 503, exit 1. sending an RCS through the declared Twilio account: Twilio sends RCS only through a messaging service, and MOST_TWILIO_MESSAGING_SERVICE_SID is not set. Observed: MOST_TWILIO_MESSAGING_SERVICE_SID is unset or empty. Fix: set MOST_TWILIO_MESSAGING_SERVICE_SID to an RCS-enabled messaging service of the account. Provoked by `tests/server/twilio_readiness.rs::an_rcs_through_an_account_without_a_messaging_service_is_refused`.
  • `most.twilio.text.delivery-failed` — HTTP 403, exit 1. delivering message {sid}: Twilio took the message and reported its delivery failed. Observed: {answerer} reported status failed: {reason}. Fix: check the recipient can receive this channel, then send again; Twilio's message log for {sid} says why. Provoked by `tests/server/twilio.rs::a_message_twilio_reports_failed_is_kept_as_failed`.
  • `most.twilio.text.status-unknown` — HTTP 403, exit 1. reading the delivery status of message {sid}: {answerer} took the message but answered a status that is none of Twilio's message statuses, so the message is kept as queued and Most learns no later status for it. Observed: status is {status}. Fix: read message {sid} in Twilio's message log for its delivery; if Twilio documents a new status, map it in most-backend-twilio's map_status. Provoked by `tests/server/twilio.rs::a_status_twilio_does_not_document_is_kept_as_queued`.
  • `most.twilio.text.effect-dropped` — HTTP 403, exit 1. sending on the {backend} channel: the message asks for an iMessage effect, which SMS and RCS cannot carry, so it is sent without it. Observed: the effect {kind} named {name}. Fix: leave the effect out on SMS and RCS chats; a chat on iMessage carries it. Provoked by `tests/server/twilio.rs::a_message_with_an_effect_is_sent_without_it`.

most.twilio.voice#

Probe, place, redirect and end phone calls and check provider signatures, through the user's own Twilio account or Stado's integration boundary.

Run by the functionalities that use it.

Uses: `most.twilio.reach`.

  • `most.twilio.voice.caller-id-unset` — HTTP 503, exit 1. {step} through the declared Twilio account: MOST_TWILIO_FROM is not set: a call needs the Twilio number it comes from. Observed: MOST_TWILIO_FROM is unset or empty. Fix: set MOST_TWILIO_FROM to a voice-capable number of the account. Provoked by `tests/server/twilio_readiness.rs::call_readiness_without_a_caller_id_names_it`.
  • `most.twilio.voice.number-foreign` — HTTP 503, exit 1. finding the caller id among the account's numbers: MOST_TWILIO_FROM is not a number of the Twilio account MOST_TWILIO_ACCOUNT_SID names. Observed: Twilio lists no incoming number {from} on the account. Fix: set MOST_TWILIO_FROM to a number Twilio's console lists under the account, or buy one there. Provoked by `tests/server/calls.rs::readiness_with_a_caller_id_of_another_account_names_it`.
  • `most.twilio.voice.number-without-voice` — HTTP 503, exit 1. finding the caller id among the account's numbers: the number MOST_TWILIO_FROM names cannot carry voice calls. Observed: Twilio lists {from} without the voice capability. Fix: set MOST_TWILIO_FROM to a voice-capable number of the account. Provoked by `tests/server/calls.rs::readiness_with_a_text_only_caller_id_names_it`.
  • `most.twilio.voice.call-id-invalid` — HTTP 403, exit 1. {step} call {call}: the provider call id stored for the call is not a Twilio call sid (letters and digits), so it cannot name a call in Twilio's API. Observed: provider call id {call}. Fix: nothing can be done to this call through Twilio; its row was written by something other than Most. Provoked by `tests/server/calls.rs::a_call_whose_stored_provider_id_is_not_a_sid_is_refused`.
  • `most.twilio.voice.status-unknown` — HTTP 503, exit 1. reading {answerer}'s answer to {step} call {call}: the answer names no call status Twilio documents, so the call's state cannot be recorded. Observed: status {status}. Fix: send again; when it keeps happening, Twilio added a status and Most must be updated to read it. Provoked by `tests/server/calls.rs::a_call_answered_with_an_unknown_status_is_refused`.
  • `most.twilio.voice.call-mismatch` — HTTP 503, exit 1. reading {answerer}'s answer to {step} call {call}: the answer names another call than the one asked about, so it says nothing of this one. Observed: {field} {named}. Fix: send again; when it keeps happening, the boundary or Twilio answers for the wrong call and its log says why. Provoked by `tests/server/calls.rs::a_call_update_answered_for_another_call_is_refused`.
  • `most.twilio.voice.end-status-mismatch` — HTTP 403, exit 1. reading {answerer}'s answer to {step} call {call}: the call was asked to become {expected} and the answer reports another status, so it is not recorded as ended. Observed: status {status}. Fix: read the call ('most-cli call <call_id>') and hang up again if it is still live. Provoked by `tests/server/calls.rs::a_hangup_answered_with_another_status_is_refused`.

most.remote_worker.admission#

Read the client certificate the proxy forwarded for a worker's connection and verify it against the internal CA: issuer, signature, validity window and the common name that names the worker.

Started through: `GET REMOTE_WORKER_WS_PATH (a worker's WebSocket upgrade)`.

  • `most.remote_worker.admission.header-missing` — HTTP 403, exit 1. admitting a remote worker's client certificate: the connection carries no {header} header, so the proxy forwarded no client certificate. Observed: the request has no {header} header. Fix: connect through the TLS-terminating proxy, and have it write the peer certificate into {header} (nginx: $ssl_client_escaped_cert). Provoked by `tests/server/remote_workers.rs::a_worker_whose_proxy_forwards_no_certificate_is_refused`.
  • `most.remote_worker.admission.header-not-text` — HTTP 403, exit 1. admitting a remote worker's client certificate: the {header} header is not visible ASCII text, so it holds no URL-encoded certificate. Observed: {header}: {error}. Fix: have the proxy write the URL-encoded PEM of the peer certificate into {header} ($ssl_client_escaped_cert). Provoked by `tests/server/remote_workers.rs::a_certificate_header_that_is_not_text_is_refused`.
  • `most.remote_worker.admission.header-empty` — HTTP 403, exit 1. admitting a remote worker's client certificate: the {header} header is empty: the proxy asked for no client certificate, or the worker presented none. Observed: {header} is empty. Fix: make the proxy require a client certificate (nginx: ssl_verify_client on) and start the worker with its certificate. Provoked by `tests/server/remote_workers.rs::an_empty_certificate_header_is_refused`.
  • `most.remote_worker.admission.header-not-encoded` — HTTP 403, exit 1. admitting a remote worker's client certificate: the {header} header does not percent-decode to UTF-8 text. Observed: {header} holds {length} bytes, whose percent escapes decode to bytes that stop being UTF-8 at byte {offset}: {error}. Fix: have the proxy write $ssl_client_escaped_cert, the URL-encoded PEM, into {header}. Provoked by `tests/server/remote_workers.rs::a_certificate_header_that_is_not_url_encoded_is_refused`.
  • `most.remote_worker.admission.ca-unparsable` — HTTP 503, exit 1. admitting a remote worker's client certificate: REMOTE_WORKER_CA_CERT is not a PEM block, so no worker certificate can be verified. Observed: REMOTE_WORKER_CA_CERT holds {bytes} bytes whose first line is {first}; the PEM parser answered: {error}. Fix: set REMOTE_WORKER_CA_CERT to the PEM of the internal CA that issues the workers' certificates, and start most-server again. Provoked by `tests/server/remote_workers.rs::a_server_whose_ca_is_not_a_certificate_refuses_every_worker`.
  • `most.remote_worker.admission.peer-unparsable` — HTTP 403, exit 1. admitting a remote worker's client certificate: the forwarded certificate is not a PEM block. Observed: the header holds a PEM of {bytes} bytes whose first line is {first}; the PEM parser answered: {error}. Fix: start the worker with the certificate the internal CA issued it. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_that_does_not_parse_is_refused`.
  • `most.remote_worker.admission.ca-not-x509` — HTTP 503, exit 1. admitting a remote worker's client certificate: REMOTE_WORKER_CA_CERT is a PEM block whose contents are not an X.509 certificate, so no worker certificate can be verified. Observed: REMOTE_WORKER_CA_CERT holds a PEM block labelled {label} of {der} DER bytes; the X.509 parser answered: {error}. Fix: set REMOTE_WORKER_CA_CERT to the PEM of the internal CA certificate ('openssl x509 -in <file> -noout -subject' reads one), and start most-server again. Provoked by `tests/remote-worker/admission_certificates.rs::a_ca_whose_pem_holds_no_certificate_refuses_every_worker`.
  • `most.remote_worker.admission.peer-not-x509` — HTTP 403, exit 1. admitting a remote worker's client certificate: the forwarded PEM block's contents are not an X.509 certificate. Observed: a PEM block labelled {label} of {der} DER bytes; the X.509 parser answered: {error}. Fix: start the worker with the certificate the internal CA issued it ('openssl x509 -in <file> -noout -subject' reads one). Provoked by `tests/remote-worker/admission_certificates.rs::a_pem_block_that_holds_no_certificate_is_refused`.
  • `most.remote_worker.admission.issuer-mismatch` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate was issued by another authority than the internal CA. Observed: the certificate of subject {peer} (serial {serial}) names the issuer {issuer}; the CA REMOTE_WORKER_CA_CERT holds is {subject}. Fix: issue the worker a certificate from the CA REMOTE_WORKER_CA_CERT holds. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_of_another_ca_is_refused`.
  • `most.remote_worker.admission.algorithm-unsupported` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate is signed with an algorithm Most does not verify; it verifies RSA PKCS#1 v1.5 and ECDSA with SHA-256, SHA-384 or SHA-512. Observed: the certificate of subject {peer} (serial {serial}) is signed with the algorithm {algorithm}. Fix: issue the worker's certificate from a CA key that signs with RSA or ECDSA. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_signed_with_ed25519_is_refused`.
  • `most.remote_worker.admission.signature-invalid` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate names the internal CA as issuer, and its signature does not verify against the CA's key. Observed: the certificate of subject {peer} (serial {serial}) names the issuer {issuer}; its signature, by {algorithm}, does not verify against that CA's public key. Fix: issue the worker a certificate signed by the key of the CA REMOTE_WORKER_CA_CERT holds. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_signed_by_another_key_of_the_same_name_is_refused`.
  • `most.remote_worker.admission.clock-before-epoch` — HTTP 503, exit 1. admitting a remote worker's client certificate: this host's clock reads before 1970, so no validity window can be checked. Observed: the clock answered: {error}. Fix: set this host's clock (enable network time), then let the worker connect again. Provoked by `tests/remote-worker/admission_certificates.rs::a_clock_before_the_epoch_refuses_every_worker`.
  • `most.remote_worker.admission.not-yet-valid` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate's validity starts later than this host's clock. Observed: the certificate of subject {peer} (serial {serial}) is valid from {not_before}; now {now} (Unix seconds). Fix: wait until the certificate is valid, or correct the clock of this host or of the CA that issued it. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_not_yet_valid_is_refused`.
  • `most.remote_worker.admission.expired` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate's validity ended before this host's clock. Observed: the certificate of subject {peer} (serial {serial}) was valid until {not_after}; now {now} (Unix seconds). Fix: issue the worker a new certificate from the internal CA. Provoked by `tests/remote-worker/admission_certificates.rs::an_expired_certificate_is_refused`.
  • `most.remote_worker.admission.name-missing` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate's subject has no common name, or an empty one, and the common name is the worker id its hello must carry. Observed: subject {subject}. Fix: issue the worker a certificate whose subject CN is its worker id. Provoked by `tests/remote-worker/admission_certificates.rs::a_certificate_without_a_common_name_is_refused`.
  • `most.remote_worker.admission.name-unreadable` — HTTP 403, exit 1. admitting a remote worker's client certificate: the certificate's common name is not a string type the parser reads as text, so it names no worker id. Observed: the subject is {subject}; reading its common name as text, the parser answered: {error}. Fix: issue the worker a certificate whose subject CN is its worker id as a UTF8String or PrintableString. Provoked by `tests/remote-worker/admission_certificates.rs::a_common_name_that_is_not_text_is_refused`.

most.remote_worker.session#

Read a remote worker's hello, check its version, its worker id against the certificate's common name and its kind against the pools REMOTE_WORKER_POOL_KINDS serves, register it, answer hello_ack, then read its frames until the connection ends.

Started through: `GET REMOTE_WORKER_WS_PATH (a worker's WebSocket, after admission)`.

Uses: `most.remote_worker.frames`, `most.core.storage`.

  • `most.remote_worker.session.receive-failed` — HTTP 503, exit 69, and sending it again can help. reading the WebSocket of remote worker {peer}: the connection broke while Most was reading it, so the worker is disconnected. Observed: {frames} text frames were read before the WebSocket answered: {error}. Fix: let the worker reconnect; if it keeps breaking, check the proxy and network between the worker and most-server. Provoked by `tests/remote-worker/session.rs::a_connection_that_breaks_mid_frame_disconnects_the_worker`.
  • `most.remote_worker.session.frame-binary` — HTTP 503, exit 1. reading the WebSocket of remote worker {peer}: the worker sent a binary frame, and the protocol carries only text frames. Observed: a binary frame of {bytes} bytes. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_binary_frame_closes_the_connection`.
  • `most.remote_worker.session.hello-expected` — HTTP 503, exit 1. opening the session of remote worker {peer}: the first frame of a session must be hello, and the worker opened with another. Observed: a {kind} frame. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_session_opened_with_a_call_closes_the_connection`.
  • `most.remote_worker.session.version-unsupported` — HTTP 503, exit 1. opening the session of remote worker {peer}: the hello names a protocol version this most-server does not speak. Observed: version {version}; supported {supported}. Fix: run a worker release that speaks one of the supported versions, or a most-server that speaks {version}. Provoked by `tests/remote-worker/session.rs::a_hello_of_another_version_closes_the_connection`.
  • `most.remote_worker.session.identity-mismatch` — HTTP 401, exit 1. opening the session of remote worker {peer}: the hello's worker_id is not the common name of the certificate the worker connected with, so it would speak for another worker. Observed: worker_id {worker}, certificate CN {peer}. Fix: send the certificate's common name as worker_id, or issue the worker a certificate whose CN is its worker_id. Provoked by `tests/remote-worker/session.rs::a_hello_for_another_worker_closes_the_connection`.
  • `most.remote_worker.session.kind-unserved` — HTTP 503, exit 1. opening the session of remote worker {peer}: no pool of this most-server serves the worker's kind, so its chats could not be routed to it. Observed: worker_kind {kind}; the pools serve {served} (REMOTE_WORKER_POOL_KINDS). Fix: add {kind} to REMOTE_WORKER_POOL_KINDS and start most-server again, or connect the worker to a server that serves {kind}. Provoked by `tests/remote-worker/session.rs::a_worker_of_a_kind_no_pool_serves_closes_the_connection`.
  • `most.remote_worker.session.ack-unsent` — HTTP 503, exit 69, and sending it again can help. acknowledging the hello of remote worker {peer}: the hello_ack could not be written, so the worker never learns it is registered; it is removed again. Observed: session {session} was registered in the pool of kind {kind}; writing its hello_ack, the WebSocket answered: {error}. Fix: let the worker reconnect; if it keeps failing, check the proxy and network between the worker and most-server. Provoked by `tests/remote-worker/session.rs::a_worker_gone_before_its_ack_is_removed`.
  • `most.remote_worker.session.close-unsent` — HTTP 503, exit 69, and sending it again can help. closing the session of remote worker {peer}: the close frame could not be written, so the worker learns the session ended only from the dropped socket, without the close code and reason. Observed: close code {code} with the reason {reason}; the WebSocket answered: {error}. Fix: nothing to repair on most-server: the worker reconnects; if its log shows no close reason, check the proxy between the worker and most-server. Provoked by `tests/remote-worker/session.rs::a_connection_that_breaks_mid_frame_disconnects_the_worker`.

most.remote_worker.frames#

Read one text frame of a remote worker's WebSocket as the protocol's JSON object: its kind (hello, hello_ack, call, call_reply, event) and the fields that kind requires.

Run by the functionalities that use it.

  • `most.remote_worker.frames.not-json` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the text frame is not JSON, and every frame of the protocol is one JSON object. Observed: a text frame of {bytes} bytes; serde_json said {error}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_frame_that_is_not_json_closes_the_connection`.
  • `most.remote_worker.frames.not-object` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the frame is JSON but not an object, so it names no kind. Observed: a JSON {shape}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_frame_that_is_not_an_object_closes_the_connection`.
  • `most.remote_worker.frames.kind-missing` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the frame has no string kind, so Most cannot tell what it is. Observed: kind is {kind}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_frame_without_a_kind_closes_the_connection`.
  • `most.remote_worker.frames.kind-unknown` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the frame's kind is none of hello, hello_ack, call, call_reply and event. Observed: kind {kind}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_frame_of_an_unknown_kind_closes_the_connection`.
  • `most.remote_worker.frames.field-missing` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the {kind} frame lacks {field}, which that kind requires as a non-empty string. Observed: {field} is absent, empty or not a string. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_hello_without_a_worker_id_closes_the_connection`.
  • `most.remote_worker.frames.field-shape` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the {kind} frame's {field} is not {shape}, the shape that kind gives it. Observed: {field} is {value}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_hello_whose_capabilities_are_not_strings_closes_the_connection`.
  • `most.remote_worker.frames.reply-inconsistent` — HTTP 503, exit 1. reading a frame of remote worker {peer}: a call_reply carries an error exactly when ok is false, and this one does not. Observed: ok is {ok} and error is {error}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_reply_with_ok_and_an_error_closes_the_connection`.
  • `most.remote_worker.frames.capacity-hint-invalid` — HTTP 503, exit 1. reading a frame of remote worker {peer}: the hello's metadata.capacity_hint, the chats the worker will take, is stated and is not a whole number, and Most never reads it as no limit. Observed: capacity_hint is {value}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states; it reconnects with a new hello. Provoked by `tests/remote-worker/session.rs::a_hello_whose_capacity_is_not_a_number_closes_the_connection`.

most.remote_worker.events#

Deliver each event a remote worker sends to every webhook subscription of the event's sender (data.sender_handle.handle), and count a delivery or read receipt toward the first-use journey; what a subscriber does not accept is kept in the webhook outbox.

Run by the functionalities that use it.

Uses: `most.core.storage`, `most.core.webhook_delivery`.

  • `most.remote_worker.events.sender-missing` — HTTP 503, exit 1. delivering {event} of remote worker {worker}: the event names no sender in data.sender_handle.handle, so no subscription can be chosen for it; it is delivered to no one. Observed: data.sender_handle is {sender}. Fix: update the worker to the event shape docs/remote_worker_protocol.md states, with the sender's handle. Provoked by `tests/remote-worker/events.rs::an_event_without_a_sender_is_logged_and_the_session_stays_open`.
  • `most.remote_worker.events.receipt-unnamed` — HTTP 503, exit 1. counting {event} of remote worker {worker} toward first use: the receipt names no message id, so it is not counted as the provider's receipt of a message. Observed: data.id is {id}. Fix: update the worker so each delivery and read receipt carries the message's id in data.id. Provoked by `tests/remote-worker/events.rs::a_receipt_without_a_message_id_is_logged`.
  • `most.remote_worker.events.subscription-unsigned` — HTTP 403, exit 1. delivering {event} of remote worker {worker}: the subscription keeps no plaintext signing secret, so the event cannot be signed for it. Observed: subscription {subscription}. Fix: create the subscription again ('DELETE /v3/webhook-subscriptions/{subscription}', then 'POST /v3/webhook-subscriptions') so it keeps its signing secret. Provoked by `tests/remote-worker/events.rs::an_event_for_a_subscription_without_a_secret_is_logged`.
  • `most.remote_worker.events.event-kept` — HTTP 503, exit 69, and sending it again can help. delivering {event} of remote worker {worker}: the subscriber did not accept the event, so it is kept in the webhook outbox. Observed: {target}: {error}. Fix: repair the subscriber, then 'most-cli webhook-outbox redeliver' sends it again. Provoked by `tests/remote-worker/events.rs::an_event_the_subscriber_does_not_accept_is_kept`.

most.remote_worker.calls#

Forward a chat request to the remote worker a chat is pinned to, as a call frame over its WebSocket, and read the worker's reply.

Run by the functionalities that use it.

Uses: `most.remote_worker.worker_call`.

  • `most.remote_worker.calls.disconnected` — HTTP 503, exit 69, and sending it again can help. calling {method} on remote worker {worker}: the worker's connection is closed, so no call reaches it and none in flight is answered. Observed: the connection closed: {reason}. Fix: start the worker {worker} again so it connects, then send the request again. Provoked by `tests/remote-worker/calls.rs::a_call_to_a_disconnected_worker_is_refused_as_retryable`.
  • `most.remote_worker.calls.send-failed` — HTTP 503, exit 69, and sending it again can help. writing call {method} to remote worker {worker}: the WebSocket refused the frame, so the call never reached the worker. Observed: transaction {transaction}, a frame of {bytes} bytes, on session {session}, which had written {written} frames before it, the last {idle} ago; the call was not left waiting for a reply; the socket said {error}. Fix: send the request again once the worker has reconnected. Provoked by `tests/remote-worker/calls.rs::a_call_the_socket_refuses_is_refused_as_retryable`.
  • `most.remote_worker.calls.capability-missing` — HTTP 503, exit 1. calling {method} on remote worker {worker}: the worker did not advertise the capability {capability} in its hello, so it cannot carry the request. Observed: worker {worker} advertised {advertised}. Fix: send the request on a chat of a worker that advertises {capability}, or update the worker so it does. Provoked by `tests/remote-worker/calls.rs::a_call_the_worker_did_not_advertise_is_refused`.
  • `most.remote_worker.calls.argument-unencodable` — HTTP 403, exit 1. encoding the argument {name} of call {method}: the argument cannot be written as JSON, so the worker would act on a call missing it. Observed: the argument {name} is a {kind}; serde_json said {error}. Fix: send the request with the argument the observed sentence names corrected. Provoked by `tests/remote-worker/calls.rs::an_argument_json_cannot_carry_is_refused`.
  • `most.remote_worker.calls.worker-refused` — HTTP 503, exit 1. calling {method} on remote worker {worker}: the worker answered ok false naming {cause}, which most.remote_worker.worker_call does not declare: the worker is of another revision than most-server. Observed: the worker said: {error}. Fix: install the worker package built from this Most revision on the device (backends/iphone_jb); its log names transaction {transaction}. Provoked by `tests/remote-worker/calls.rs::a_call_the_worker_refuses_is_refused`.
  • `most.remote_worker.calls.reply-unreadable` — HTTP 503, exit 1. reading the reply of remote worker {worker} to {method}: the reply's result is not the shape the call returns. Observed: the result carries the keys {keys} and was read as {kind}; serde_json said {error}. Fix: update the worker to the protocol docs/remote_worker_protocol.md states for {method}. Provoked by `tests/remote-worker/calls.rs::a_reply_of_the_wrong_shape_is_refused`.
  • `most.remote_worker.calls.frame-unexpected` — HTTP 503, exit 1. reading a frame from remote worker {worker}: the worker sent a {kind} frame after the handshake, which only call_reply and event may follow, so the connection is closed. Observed: a {kind} frame. Fix: update the worker to the protocol docs/remote_worker_protocol.md states. Provoked by `tests/remote-worker/session.rs::a_frame_out_of_order_closes_the_connection`.

most.remote_worker.worker_call#

The worker reads the call's arguments, finds the chat its id maps to, and drives IMCore on the device's main thread: resolve the account, handles and chat, make the IMMessage and send it.

Run by the functionalities that use it.

  • `most.remote_worker.worker_call.method-unknown` — HTTP 503, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the worker answers no method {method}. Observed: it answers {known}. Fix: install the worker package built from this Most revision on the device (backends/iphone_jb), then call again. Provoked by `tests/remote-worker/worker_call.rs::a_method_the_worker_does_not_answer_is_refused`.
  • `most.remote_worker.worker_call.argument-missing` — HTTP 503, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the call carries no {argument}, which {method} needs. Observed: no {argument}. Fix: install the worker package built from this Most revision on the device (backends/iphone_jb), then call again. Provoked by `tests/remote-worker/worker_call.rs::a_call_without_an_argument_is_refused`.
  • `most.remote_worker.worker_call.message-unreadable` — HTTP 400, exit 2. remote worker {worker} refused {method} (transaction {transaction}): the message argument is not one the worker sends: {problem}. Observed: {problem}. Fix: send the chat a message with a text part; this worker sends text only. Provoked by `tests/remote-worker/worker_call.rs::a_message_without_text_is_refused`.
  • `most.remote_worker.worker_call.chat-unmapped` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the worker knows no device chat for chat {chat}: chats map to the device only when this worker process created them, and it holds {known}. Observed: chat {chat} unmapped; {known} chats mapped. Fix: create the chat again through Most so this worker process maps it, then send. Provoked by `tests/remote-worker/worker_call.rs::a_chat_the_worker_did_not_create_is_refused`.
  • `most.remote_worker.worker_call.call-cancelled` — HTTP 503, exit 69, and sending it again can help. remote worker {worker} refused {method} (transaction {transaction}): the worker stopped the call because its connection ended; the device may already have done part of it. Observed: the worker cancelled {method}. Fix: check on the device whether it happened, then call again. Provoked by `tests/remote-worker/worker_call.rs::a_call_whose_connection_ends_is_cancelled`.
  • `most.remote_worker.worker_call.call-threw` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the call ended with a {type} the worker declares no cause for. Observed: {error}. Fix: read the worker's log on the device (/var/log/wisent-worker.log) for the transaction. Provoked by `tests/remote-worker/worker_call.rs::a_call_that_throws_an_undeclared_error_is_refused`.
  • `most.remote_worker.worker_call.symbol-missing` — HTTP 503, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the device's IMCore has no {symbol}. Observed: {symbol} missing. Fix: check that the worker's IMCore tweak is loaded on this iOS ('launchctl list | grep wisent' on the device) and install the worker built for its iOS version. Provoked by `tests/remote-worker/worker_call.rs::a_call_whose_imcore_symbol_is_missing_is_refused`.
  • `most.remote_worker.worker_call.chat-not-found` — HTTP 404, exit 1. remote worker {worker} refused {method} (transaction {transaction}): IMChatRegistry on the device holds no chat {chat}. Observed: no chat {chat}. Fix: create the chat again through Most, then send. Provoked by `tests/remote-worker/worker_call.rs::a_call_to_a_chat_the_device_does_not_hold_is_refused`.
  • `most.remote_worker.worker_call.registry-unavailable` — HTTP 503, exit 69, and sending it again can help. remote worker {worker} refused {method} (transaction {transaction}): IMChatRegistry's sharedInstance answered nothing: imagent is not running on the device. Observed: no IMChatRegistry. Fix: restart Messages on the device (open it once), then call again. Provoked by `tests/remote-worker/worker_call.rs::a_call_without_a_chat_registry_is_refused`.
  • `most.remote_worker.worker_call.chat-unmade` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): IMChatRegistry made no chat for {participants} participants with {selector}. Observed: {selector} returned nothing. Fix: check on the device that iMessage is signed in and the recipients are reachable, then create the chat again. Provoked by `tests/remote-worker/worker_call.rs::a_chat_the_device_cannot_make_is_refused`.
  • `most.remote_worker.worker_call.handle-unresolved` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the device's account made no handle for {login}. Observed: imHandleWithID: returned nothing for {login}. Fix: check that {login} is a phone number or address iMessage takes, then create the chat again. Provoked by `tests/remote-worker/worker_call.rs::a_recipient_the_device_cannot_address_is_refused`.
  • `most.remote_worker.worker_call.account-unresolved` — HTTP 503, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the device has no {service} account for {login} and no active one. Observed: no IMAccount for {login} on {service}. Fix: sign in to {service} on the device with {login} (Settings → Messages), then create the chat again. Provoked by `tests/remote-worker/worker_call.rs::a_sender_the_device_has_no_account_for_is_refused`.
  • `most.remote_worker.worker_call.message-unmade` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the device's IMMessage made no message with {selector}. Observed: {selector} returned nothing. Fix: check that the worker's IMCore tweak is loaded on this iOS ('launchctl list | grep wisent' on the device) and install the worker built for its iOS version. Provoked by `tests/remote-worker/worker_call.rs::a_message_the_device_cannot_make_is_refused`.
  • `most.remote_worker.worker_call.send-refused` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): chat {chat} answered nothing to {selector}, so the message was not handed to iMessage. Observed: {selector} returned nothing. Fix: open chat {chat} on the device to see whether iMessage can send there, then send again. Provoked by `tests/remote-worker/worker_call.rs::a_send_the_device_refuses_is_refused`.
  • `most.remote_worker.worker_call.message-unidentified` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the message in chat {chat} carries no GUID {step}, so whether it was sent is unknown. Observed: no message guid {step}. Fix: check chat {chat} on the device before sending again. Provoked by `tests/remote-worker/worker_call.rs::a_message_without_a_guid_is_refused`.
  • `most.remote_worker.worker_call.chat-unidentified` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): the chat made for {recipients} carries no GUID, so it cannot be addressed again. Observed: no chat guid for {recipients}. Fix: check on the device whether the chat exists, then create it again. Provoked by `tests/remote-worker/worker_call.rs::a_chat_without_a_guid_is_refused`.
  • `most.remote_worker.worker_call.recipients-empty` — HTTP 400, exit 2. remote worker {worker} refused {method} (transaction {transaction}): create_chat from {from} names no recipient. Observed: an empty to list. Fix: create the chat with at least one recipient. Provoked by `tests/remote-worker/worker_call.rs::a_chat_without_recipients_is_refused`.
  • `most.remote_worker.worker_call.off-main-thread` — HTTP 403, exit 1. remote worker {worker} refused {method} (transaction {transaction}): an IMCore call ran on {thread} instead of the main thread, which IMCore requires. Observed: thread {thread}. Fix: install the worker package built from this Most revision on the device (backends/iphone_jb), then call again. Provoked by `tests/remote-worker/worker_call.rs::a_call_off_the_main_thread_is_refused`.

most.direct_apple.build#

Load the anisette state under ANISETTE_STATE_DIR and the device state the store keeps (bootstrap_json, the device identity), minting and storing an identity on the first start.

Started through: `most-server (MOST_DIRECT_APPLE_ENABLED=true)`.

Uses: `most.core.storage`, `most.direct_apple.anisette`.

  • `most.direct_apple.build.bootstrap-not-json` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: the stored bootstrap_json is not JSON. Observed: {error}; {length} bytes. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_that_is_not_json_is_refused`.
  • `most.direct_apple.build.bootstrap-version-invalid` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: its version is {found}, not the whole number of the schema that wrote it. Observed: version = {found}. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_whose_version_is_not_a_number_is_refused`.
  • `most.direct_apple.build.bootstrap-too-new` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: the stored bootstrap_json is schema version {found}, newer than the {max} this release reads. Observed: bootstrap_json version {found}; this release reads up to {max}. Fix: run the most-server release that wrote it ('most-server --version' names the running one), or empty bootstrap_json so this release starts without one ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'). Provoked by `tests/direct-apple/build.rs::a_bootstrap_of_a_newer_schema_is_refused`.
  • `most.direct_apple.build.bootstrap-field-missing` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: it has no {field}, which every bootstrap carries. Observed: bootstrap_json keys: {keys}. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_that_does_not_parse_is_refused`.
  • `most.direct_apple.build.bootstrap-field-not-text` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: its {field} is not the string a bootstrap writes there. Observed: {field} = {found}. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_whose_field_is_not_a_string_is_refused`.
  • `most.direct_apple.build.bootstrap-field-not-base64` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: its {field} is not base64, so its bytes cannot be read. Observed: its {field} holds {length} characters of the {total}-byte bootstrap_json (the value is not shown); the base64 decoder said {error}. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_whose_bytes_are_not_base64_is_refused`.
  • `most.direct_apple.build.bootstrap-time-invalid` — HTTP 503, exit 1. reading the bootstrap_json the direct_apple_state row id 1 keeps: its {field} '{value}' is not an RFC 3339 time. Observed: its {field} is '{value}'; the RFC 3339 parser said {error}. Fix: empty bootstrap_json in Most's PostgreSQL database ('UPDATE direct_apple_state SET bootstrap_json = '' WHERE id = 1'; the backend then starts without one and refuses sends at the bootstrap gate, keeping the stored identity), and start most-server again. Provoked by `tests/direct-apple/build.rs::a_bootstrap_whose_time_is_not_rfc3339_is_refused`.
  • `most.direct_apple.build.identity-key-invalid` — HTTP 503, exit 1. reading the device identity the store keeps in {row}: its {field} (the {purpose} key) is not a P-256 private key in PKCS#8 PEM. Observed: {error}; identity_json is {bytes} bytes. Fix: restore identity_json of {row} from a backup of this deployment; clearing it mints a new identity, which Apple sees as another device. Provoked by `tests/direct-apple/build.rs::an_identity_whose_key_is_not_p256_is_refused`.
  • `most.direct_apple.build.identity-field-missing` — HTTP 503, exit 1. reading the device identity the store keeps in {row}: the stored identity has no field {field}, which every identity Most mints carries. Observed: identity_json lacks {field}; it holds {present}. Fix: restore identity_json of {row} from a backup of this deployment; clearing it mints a new identity, which Apple sees as another device. Provoked by `tests/direct-apple/build.rs::an_identity_without_a_key_is_refused`.
  • `most.direct_apple.build.identity-field-not-text` — HTTP 503, exit 1. reading the device identity the store keeps in {row}: the stored identity's field {field} is {found}, not the PEM string Most writes there. Observed: {field} is {found}; identity_json is {bytes} bytes. Fix: restore identity_json of {row} from a backup of this deployment; clearing it mints a new identity, which Apple sees as another device. Provoked by `tests/direct-apple/build.rs::an_identity_whose_field_is_not_text_is_refused`.
  • `most.direct_apple.build.identity-not-json` — HTTP 503, exit 1. reading the device identity the store keeps in {row}: the stored identity_json is not JSON. Observed: {error}; identity_json is {bytes} bytes. Fix: restore identity_json of {row} from a backup of this deployment; clearing it mints a new identity, which Apple sees as another device. Provoked by `tests/direct-apple/build.rs::an_identity_that_is_not_json_is_refused`.
  • `most.direct_apple.build.identity-not-object` — HTTP 503, exit 1. reading the device identity the store keeps in {row}: the stored identity_json is JSON and {found}, not the object of keys Most writes. Observed: identity_json is {found}, {bytes} bytes. Fix: restore identity_json of {row} from a backup of this deployment; clearing it mints a new identity, which Apple sees as another device. Provoked by `tests/direct-apple/build.rs::an_identity_that_is_not_an_object_is_refused`.

most.direct_apple.anisette#

Load the anisette state under ANISETTE_STATE_DIR or provision a new session, save it back, and mint the X-Apple-I-MD, X-Mme-Device-Id and X-Mme-Client-Info headers a bootstrap carries, each step one run of a python3 helper over the upstream anisette package.

Started through: `most-server (MOST_DIRECT_APPLE_ENABLED=true)`.

  • `most.direct_apple.anisette.state-dir-unwritable` — HTTP 503, exit 1. creating the anisette directory {dir}: the directory cannot be created, so no anisette session can be kept between starts. Observed: creating {dir} under {parent} answered: {error}. Fix: make {parent} writable by the user most-server runs as ('ls -ld {parent}'), or point ANISETTE_STATE_DIR at a writable directory, then start most-server again. Provoked by `tests/direct-apple/anisette.rs::a_state_directory_under_a_file_is_refused`.
  • `most.direct_apple.anisette.helper-unstartable` — HTTP 503, exit 1. running the anisette helper with {python} ({interpreter}) to {step}: {python} could not be started, so the upstream anisette package cannot be reached. Observed: starting {python} ({interpreter}) for {step} answered: {error}. Fix: install Python 3 so '{python}' is on most-server's PATH ('command -v {python}' shows which one runs), then start most-server again. Provoked by `tests/server/composition.rs::a_direct_apple_backend_without_python_refuses_the_start`.
  • `most.direct_apple.anisette.helper-silent` — HTTP 503, exit 69, and sending it again can help. running the anisette helper with {python} ({interpreter}) to {step}: the helper exited without printing its answer, so the interpreter, something it loads at start or the emulated Apple library crashed. Observed: exit status {status}; last line on stderr: {stderr}. Fix: start most-server again; when it repeats, '{interpreter} -c 'from anisette import Anisette'' shows the interpreter's own error. Provoked by `tests/server/composition.rs::a_helper_that_exits_without_its_answer_refuses_the_start`.
  • `most.direct_apple.anisette.helper-answer-unreadable` — HTTP 403, exit 1. running the anisette helper with {python} ({interpreter}) to {step}: the helper's last line of output is not the JSON answer it prints, so whether the step happened is unknown. Observed: last line '{line}': {error}. Fix: something {interpreter} loads writes to standard output (a sitecustomize module, a .pth file or PYTHONSTARTUP); '{interpreter} -c 'pass'' must print nothing, then start most-server again. Provoked by `tests/server/composition.rs::a_helper_whose_last_line_is_not_its_answer_refuses_the_start`.
  • `most.direct_apple.anisette.helper-protocol-broken` — HTTP 403, exit 1. running the anisette helper with {python} ({interpreter}) to {step}: the helper did not understand the request at its {stage} step: the helper script and the Rust side that writes its requests disagree. Observed: {interpreter} at {python} answered the {step} request at its {stage} step: {error}. Fix: run a most-server release built from one source revision (the helper script is compiled into it); 'most-server --version' names the one running. Provoked by `tests/direct-apple/anisette.rs::a_helper_request_it_cannot_read_is_refused`.
  • `most.direct_apple.anisette.package-missing` — HTTP 503, exit 1. running the anisette helper with {python} ({interpreter}) to {step}: that interpreter cannot import the upstream anisette package or a package it needs. Observed: {interpreter} at {python}, asked to {step}, raised while importing: {error}. Fix: install the release's pinned requirement for that interpreter ('{interpreter} -m pip install '{requirement}''), or put first on PATH a virtual environment that holds it, then start most-server again. Provoked by `tests/server/composition.rs::a_direct_apple_backend_without_the_anisette_package_refuses_the_start`.
  • `most.direct_apple.anisette.libs-absent` — HTTP 503, exit 1. provisioning a new anisette session under {dir}: Apple's library bundle the anisette package runs is not at {libs}, and Most does not let the package download one: its download comes from a third-party mirror and nothing checks it before it runs. Observed: {libs} does not exist; {files}. Fix: put the library bundle (libstoreservicescore and CoreADI, saved by the anisette package as libs.bin) at {libs}, from a source you checked, then start most-server again. Provoked by `tests/direct-apple/anisette.rs::a_first_provisioning_without_the_library_bundle_is_refused`.
  • `most.direct_apple.anisette.provisioning-failed` — HTTP 503, exit 69, and sending it again can help. provisioning a new anisette session under {dir}: the upstream package could not provision a session from the libraries at {libs}: it registers the device with Apple. Observed: provisioning under {dir}, with the libraries at {libs}, raised: {error}; {files}. Fix: check that this host reaches Apple, then start most-server again. Provoked by `tests/direct-apple/anisette.rs::anisette_that_cannot_be_provisioned_is_refused`.
  • `most.direct_apple.anisette.state-unloadable` — HTTP 503, exit 1. loading the anisette state persisted under {dir}: the state under {dir} exists and cannot be loaded, and provisioning over it would make this deployment another device to Apple. Observed: {error}; {files}. Fix: repair or move away the files under {dir} ('ls -la {dir}') so the next start provisions afresh, and start most-server again. Provoked by `tests/server/composition.rs::a_direct_apple_backend_that_cannot_be_built_refuses_the_start`.
  • `most.direct_apple.anisette.session-unloadable` — HTTP 503, exit 69, and sending it again can help. loading the live anisette session under {dir} to {step}: the session the helper saved there after its last call cannot be loaded back. Observed: {error}; {files}. Fix: start most-server again: the start loads the persisted state under ANISETTE_STATE_DIR into a new live session. Provoked by `tests/direct-apple/anisette.rs::a_live_session_that_cannot_be_loaded_is_refused`.
  • `most.direct_apple.anisette.mint-failed` — HTTP 503, exit 69, and sending it again can help. minting anisette headers from the session under {dir}: the upstream package raised while computing the headers. Observed: computing headers from the session under {dir} raised: {error}; {files}. Fix: start most-server again; when it repeats, move away ANISETTE_STATE_DIR so anisette is provisioned afresh. Provoked by `tests/direct-apple/anisette.rs::anisette_that_mints_no_headers_is_refused`.
  • `most.direct_apple.anisette.state-unsaved` — HTTP 503, exit 1. saving the anisette session to {path}: the upstream package could not write the file, and unsaved, the next start would provision a different device. Observed: writing {path} raised: {error}. Fix: make {dir} writable by the user most-server runs as ('ls -ld {dir}'), then start most-server again. Provoked by `tests/direct-apple/anisette.rs::anisette_state_that_cannot_be_saved_is_refused`.
  • `most.direct_apple.anisette.not-initialized` — HTTP 403, exit 1. {step} with the anisette client of {dir}: the client holds no session: neither initialize nor load_state succeeded before it. Observed: no session loaded; {files}. Fix: call AnisetteClient::load_state, then initialize when it answers false, before minting; the direct-Apple backend's start does. Provoked by `tests/direct-apple/anisette.rs::minting_before_any_session_is_refused`.
  • `most.direct_apple.anisette.task-lost` — HTTP 503, exit 69, and sending it again can help. {step} on the blocking thread pool: the blocking task running the helper did not finish: it panicked or the runtime is shutting down. Observed: the blocking task {ended} while it would {step}: {error}. Fix: start most-server again; a panic is the log line just before this one. Provoked by `tests/direct-apple/anisette.rs::a_helper_task_that_panics_is_refused`.
  • `most.direct_apple.anisette.header-missing` — HTTP 503, exit 69, and sending it again can help. turning the minted anisette headers into a bootstrap: the answer carries no {name}, without which the bootstrap names no {meaning}. Observed: headers present: {headers}. Fix: mint again (the backend rotates every ANISETTE_ROTATE_INTERVAL_SECONDS); when it repeats, move away ANISETTE_STATE_DIR so anisette is provisioned afresh. Provoked by `tests/direct-apple/anisette.rs::headers_without_validation_data_are_refused`.
  • `most.direct_apple.anisette.headers-cache-unwritten` — HTTP 503, exit 1. writing the header names of the last mint to {path}: the file cannot be written; the mint goes on, and the file still describes an earlier mint to the tools that read it. Observed: writing {path} answered: {error}. Fix: make {path} writable by the user most-server runs as ('ls -l {path}'). Provoked by `tests/direct-apple/anisette.rs::a_headers_cache_that_cannot_be_written_is_said`.

most.direct_apple.start#

Start the backend: provision anisette when no state is stored, mint a bootstrap, start the receive bridge and the rotation loop.

Started through: `most-server (MOST_DIRECT_APPLE_ENABLED=true)`.

Uses: `most.direct_apple.anisette`.

  • `most.direct_apple.start.parts-missing` — HTTP 403, exit 1. starting the direct-Apple backend: the backend was built without {missing}, which starting it needs. Observed: built with anisette: {anisette}, storage: {storage}, emitter: {emitter}. Fix: build it with 'build_direct_apple_backend', which most-server uses and which supplies all three. Provoked by `tests/direct-apple/build.rs::a_backend_built_without_anisette_does_not_start`.
  • `most.direct_apple.start.push-unstarted` — HTTP 503, exit 1. starting the direct-Apple backend: the minted bootstrap carries placeholder device material, so the APNs connection is not opened; the receive bridge runs, and every send is refused as bootstrap-placeholder. Observed: placeholder fields: {fields}. Fix: send through the mac-relay pool: this build's most-bootstrap plans the configuration and cannot provision a device certificate or push token. Provoked by `tests/direct-apple/build.rs::a_backend_with_a_placeholder_bootstrap_starts_without_push`.

most.direct_apple.send#

Build what a send would hand Apple (the iMessage plist, a voice note uploaded through MMCS, a reaction plist), then check the bootstrap gate; the send path to Apple itself is not built.

Started through: `POST /v3/chats (direct_apple)`, `POST /v3/chats/{chat_id}/messages`, `POST /v3/chats/{chat_id}/voice`, `POST /v3/chats/{chat_id}/reactions`, `POST /v3/chats/{chat_id}/typing`.

Uses: `most.direct_apple.mmcs`.

  • `most.direct_apple.send.text-part-empty` — HTTP 400, exit 2. building the iMessage plist of a {operation}: part {index} is a text part and carries no value. Observed: part {index} of {count} has kind text and no value. Fix: give every text part a value, or leave the part out. Provoked by `tests/direct-apple/send.rs::a_text_part_without_text_is_refused`.
  • `most.direct_apple.send.media-unsupported` — HTTP 501, exit 1. uploading part {index} of a {operation} to MMCS: the direct-Apple backend uploads only a voice note handed to it as bytes; fetching a media part's URL is not built. Observed: part {index} has kind {kind} and no voice note bytes are pending. Fix: send media through the mac-relay pool, whose chats carry every attachment kind. Provoked by `tests/direct-apple/send.rs::a_media_part_is_refused_as_unbuilt`.
  • `most.direct_apple.send.reaction-unknown` — HTTP 400, exit 2. building the plist that would {action} a tapback: {reaction} is not a tapback the iMessage palette has. Observed: reaction '{reaction}'; the palette: {palette}. Fix: name one of {palette}. Provoked by `tests/direct-apple/send.rs::a_reaction_outside_the_palette_is_refused`.
  • `most.direct_apple.send.emoji-reaction-unbuilt` — HTTP 501, exit 1. building the reaction plist that would {action} an emoji reaction on message {target} in chat {chat}: an emoji reaction (associated message type 2006) needs a plist shape the direct-Apple backend does not build. Observed: reaction emoji{glyph}; no reaction plist was built and nothing was sent. Fix: react with one of the classic tapbacks ({palette}), or send the emoji reaction through the mac-relay pool. Provoked by `tests/direct-apple/send.rs::an_emoji_reaction_is_refused_as_unbuilt`.
  • `most.direct_apple.send.bootstrap-absent` — HTTP 501, exit 1. checking the bootstrap a {operation} needs: no bootstrap is loaded: the backend has neither started nor been given one, so it holds no device certificate or push token. Observed: no bootstrap loaded; the store's bootstrap_json is empty. Fix: start the backend (most-server does when MOST_DIRECT_APPLE_ENABLED=true), or send through the mac-relay pool. Provoked by `tests/direct-apple/send.rs::a_send_before_any_bootstrap_is_refused`.
  • `most.direct_apple.send.bootstrap-placeholder` — HTTP 501, exit 1. checking the bootstrap a {operation} needs: the loaded bootstrap carries anisette validation data only, with placeholder device certificate, key or push token, and talking to Apple with it would be refused. Observed: placeholder fields: {fields}. Fix: send through the mac-relay pool: this build's most-bootstrap plans the configuration and cannot provision a device certificate or push token. Provoked by `tests/direct-apple/send.rs::a_send_with_a_placeholder_bootstrap_is_refused`.
  • `most.direct_apple.send.send-unbuilt` — HTTP 501, exit 1. handing a {operation} to Apple: the send path to Apple (IDS registration and APNs delivery) is not built in this release, so nothing was sent. Observed: the {operation} passed the bootstrap gate and stopped before Apple. Fix: send through the mac-relay pool, which this backend never takes routing from. Provoked by `tests/direct-apple/send.rs::a_send_with_a_real_bootstrap_stops_before_apple`.

most.direct_apple.mmcs#

Upload an attachment to MMCS (AES-256-CTR under a fresh key, chunked, a put authorized over APNs, each container sent and confirmed) or download one (a get authorized over APNs, each chunk fetched and checked, the file checked against its signature and decrypted).

Started through: `POST /v3/chats/{chat_id}/voice (direct_apple)`.

  • `most.direct_apple.mmcs.content-empty` — HTTP 400, exit 2. uploading a {bytes}-byte {content_type} attachment to MMCS: the attachment has no bytes, and MMCS has no way to carry an empty file. Observed: 0 bytes handed to the upload. Fix: attach a file with content. Provoked by `tests/direct-apple/mmcs.rs::an_empty_attachment_is_refused`.
  • `most.direct_apple.mmcs.chunk-size-zero` — HTTP 403, exit 1. uploading a {bytes}-byte {content_type} attachment to MMCS: the client's chunk size is 0, so the file cannot be cut into chunks. Observed: MmcsClient chunk_size 0. Fix: build the client with MmcsClient::new, whose chunk size is 5 MiB, or give with_chunk_size a positive size. Provoked by `tests/direct-apple/mmcs.rs::a_client_with_a_zero_chunk_size_is_refused`.
  • `most.direct_apple.mmcs.key-length-wrong` — HTTP 403, exit 1. encrypting or decrypting {bytes} bytes under an MMCS key: the key is {found} bytes where an MMCS key is {expected} (a 0x00 tag and a 32-byte AES-256 key). Observed: key of {found} bytes. Fix: use the key generate_mmcs_key makes, or the decryption-key of the attachment's <FILE> tag. Provoked by `tests/direct-apple/mmcs.rs::a_key_of_the_wrong_length_is_refused`.
  • `most.direct_apple.mmcs.key-prefix-wrong` — HTTP 403, exit 1. encrypting or decrypting {bytes} bytes under an MMCS key: the key's tag byte is 0x{found} where an MMCS key starts with 0x{expected}. Observed: key of {length} bytes starting 0x{found}. Fix: use the key generate_mmcs_key makes, or the decryption-key of the attachment's <FILE> tag. Provoked by `tests/direct-apple/mmcs.rs::a_key_with_the_wrong_tag_is_refused`.
  • `most.direct_apple.mmcs.chunk-out-of-bounds` — HTTP 403, exit 1. reading chunk {index} of a {length}-byte encrypted body: the chunk spans bytes {start}..{end}, past the end of the body, so it was not cut from it. Observed: chunk at offset {start}, {size} bytes; body {length} bytes. Fix: cut the chunks from the same body with split_chunks, as the upload does. Provoked by `tests/direct-apple/mmcs.rs::a_chunk_past_the_body_is_refused`.
  • `most.direct_apple.mmcs.authorization-unbuilt` — HTTP 503, exit 1. {doing} through MMCS: the APNs round-trip that authorizes an MMCS {direction} is not built in this release, so Apple names no container. Observed: the MMCS client was built without an Authorize{kind}. Fix: send and receive attachments through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::an_upload_without_apns_authorization_is_refused`.
  • `most.direct_apple.mmcs.chunk-unrequested` — HTTP 503, exit 69, and sending it again can help. sending container {index} of an MMCS upload to {url}: Apple's authorization asks the container to carry chunk {chunk}, which this upload did not make. Observed: this upload made {made} chunks. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_container_asking_for_an_unknown_chunk_is_refused`.
  • `most.direct_apple.mmcs.method-invalid` — HTTP 503, exit 69, and sending it again can help. sending container {index} of an MMCS upload to {url}: Apple's authorization names the method '{method}', which is not an HTTP method. Observed: the authorization names the method '{method}'; the HTTP method parser said {error}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_container_with_an_unknown_method_is_refused`.
  • `most.direct_apple.mmcs.client-unbuilt` — HTTP 503, exit 1. {doing} at {url}: this host built no HTTPS client for MMCS: its TLS backend did not initialise when the backend was built. Observed: {doing} at {url}; no request was sent; the client was built once, when this backend was made ({proxies}), and reqwest answered: {error}. Fix: check this host's TLS libraries and system trust store, then start most-server again. Provoked by `tests/direct-apple/mmcs.rs::an_mmcs_client_this_host_cannot_build_is_refused`.
  • `most.direct_apple.mmcs.container-unreachable` — HTTP 503, exit 69, and sending it again can help. {doing} at {url}: the MMCS host did not answer: the connection failed, broke off or timed out. Observed: {doing} at {url}: {error}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_container_that_does_not_answer_is_refused`.
  • `most.direct_apple.mmcs.container-refused` — HTTP 503, exit 69, and sending it again can help. sending container {index} of an MMCS upload to {url}: the MMCS host answered HTTP {status} where it takes a container with 200. Observed: HTTP {status} for {body_bytes} bytes sent. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_container_the_host_refuses_is_refused`.
  • `most.direct_apple.mmcs.edge-unacknowledged` — HTTP 503, exit 69, and sending it again can help. sending container {index} of an MMCS upload to {url}: the container was to be completed at the edge, and the answer does not say X-Apple-Put-Complete-Response: true. Observed: X-Apple-Put-Complete-Response: {ack}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_container_completed_at_the_edge_without_acknowledgement_is_refused`.
  • `most.direct_apple.mmcs.confirm-refused` — HTTP 503, exit 69, and sending it again can help. confirming the MMCS upload {auth_id} at {url}: the MMCS host answered HTTP {status} to putComplete where it confirms with 200. Observed: HTTP {status}; container {index} answered {container_status}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_confirmation_the_host_refuses_is_refused`.
  • `most.direct_apple.mmcs.identity-unset` — HTTP 503, exit 1. confirming the MMCS upload {auth_id} at {url}: the MMCS client was given no device identity (the X-Mme-Client-Info anisette minted and the IMTransferAgent user agent), and MMCS is never sent invented ones. Observed: no identity given to MmcsClient; container {index} answered {container_status}; nothing was confirmed. Fix: build the MmcsClient with with_client_identity from the device's minted anisette headers, then send it again. Provoked by `tests/direct-apple/mmcs.rs::a_confirmation_without_a_device_identity_is_refused`.
  • `most.direct_apple.mmcs.chunk-misplaced` — HTTP 503, exit 69, and sending it again can help. downloading chunk {index} ({size} bytes at file offset {file_offset}) of {url}: the chunk Apple lists does not fit the {total}-byte file: it is empty or ends past its end. Observed: chunk ends at byte {end} of {total}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_chunk_outside_the_file_is_refused`.
  • `most.direct_apple.mmcs.chunk-refused` — HTTP 503, exit 69, and sending it again can help. downloading chunk {index} ({size} bytes at file offset {file_offset}) of {url}: the MMCS host answered HTTP {status} where it serves a chunk with 200 or 206. Observed: HTTP {status}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_chunk_the_host_refuses_is_refused`.
  • `most.direct_apple.mmcs.chunk-unread` — HTTP 503, exit 69, and sending it again can help. downloading chunk {index} ({size} bytes at file offset {file_offset}) of {url}: the answer's body broke off before it was read. Observed: {url} answered {status}, and reading its body answered: {error}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_chunk_whose_body_breaks_off_is_refused`.
  • `most.direct_apple.mmcs.chunk-checksum-mismatch` — HTTP 503, exit 69, and sending it again can help. downloading chunk {index} ({size} bytes at file offset {file_offset}) of {url}: the bytes that came do not hash to the checksum Apple listed, so they are corrupt or not the chunk. Observed: checksum {actual}, listed {expected}; {got} bytes came. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_corrupt_chunk_is_refused`.
  • `most.direct_apple.mmcs.file-signature-mismatch` — HTTP 503, exit 69, and sending it again can help. checking the {total}-byte file reassembled from {url}: every chunk matched its checksum and the whole file does not match the attachment's signature, so the chunk list does not make this file. Observed: signature {actual}, the attachment names {expected}. Fix: send it again; when it repeats, send the attachment through the mac-relay pool. Provoked by `tests/direct-apple/mmcs.rs::a_reassembled_file_that_does_not_match_is_refused`.

most.direct_apple.apns#

Open a TLS socket to Apple's courier (ALPN apns-security-v3, the bootstrap's push certificate and key as client certificate), queue frames to it, read frames off it, and reconnect on a readiness event the caller sends.

Started through: `the direct-Apple APNs courier connection (not opened by most-server in this release)`.

Uses: `most.direct_apple.apns_frames`.

  • `most.direct_apple.apns.credentials-absent` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: the client holds no push certificate and key, and the courier refuses a TLS client without them. Observed: the client for {host}:{port} holds no PushCredentials; nothing was dialled. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::connecting_without_push_credentials_is_refused`.
  • `most.direct_apple.apns.client-closed` — HTTP 403, exit 1. {doing} on the APNs client of {host}:{port}: the client was closed (ApnsClient::close), and a closed client opens no socket and sends nothing. Observed: the client's stop flag is set (ApnsClient::close was called); nothing was dialled or sent. Fix: build a new ApnsClient; the backend does on every start. Provoked by `tests/direct-apple/apns.rs::connecting_a_closed_client_is_refused`.
  • `most.direct_apple.apns.not-connected` — HTTP 403, exit 1. sending an APNs {command} frame to {host}:{port}: the client holds no open socket: it never connected, or the courier closed the last one. Observed: connected: {connected}; outbound queue: {queue}. Fix: connect first (ApnsClient::connect, or run_with_reconnect, which reconnects on a readiness event). Provoked by `tests/direct-apple/apns.rs::sending_before_connecting_is_refused`.
  • `most.direct_apple.apns.server-name-invalid` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: {host} is not a DNS name or IP address TLS can verify the courier's certificate against. Observed: the courier {host}:{port}; rustls refused {host} as a server name: {error}. Fix: build the client for courier.push.apple.com (COURIER_HOST), as the backend does. Provoked by `tests/direct-apple/apns.rs::a_courier_host_that_is_no_name_is_refused`.
  • `most.direct_apple.apns.trust-store-root-invalid` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: a root certificate of this host's trust store is not one TLS can use. Observed: {error}; {loaded} roots taken before it. Fix: repair this host's system trust store (on macOS 'security verify-cert' shows which root is broken), then connect again. Provoked by `tests/direct-apple/apns.rs::a_broken_system_root_is_refused`.
  • `most.direct_apple.apns.trust-store-empty` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: this host's trust store holds no root certificate, so the courier's certificate cannot be verified. Observed: {errors} errors loading the native roots: {first}. Fix: install the system root certificates (the ca-certificates package, or the macOS system keychain), then connect again. Provoked by `tests/direct-apple/apns.rs::an_empty_system_trust_store_is_refused`.
  • `most.direct_apple.apns.push-cert-unreadable` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: the bootstrap's push_cert is not PEM: a CERTIFICATE block holds something other than base64. Observed: {error}; push_cert of {length} bytes. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::a_push_certificate_that_is_not_pem_is_refused`.
  • `most.direct_apple.apns.push-cert-absent` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: the bootstrap's push_cert holds no CERTIFICATE block. Observed: push_cert of {length} bytes starting '{start}'. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::a_push_certificate_without_a_certificate_is_refused`.
  • `most.direct_apple.apns.push-key-unreadable` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: the bootstrap's push_key is not PEM: a key block holds something other than base64. Observed: {error}; push_key of {length} bytes. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::a_push_key_that_is_not_pem_is_refused`.
  • `most.direct_apple.apns.push-key-absent` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: the bootstrap's push_key holds no PRIVATE KEY, RSA PRIVATE KEY or EC PRIVATE KEY block. Observed: push_key of {length} bytes. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::a_push_key_without_a_key_is_refused`.
  • `most.direct_apple.apns.protocol-versions-refused` — HTTP 403, exit 1. connecting to the APNs courier {host}:{port}: the TLS provider this build carries (aws-lc-rs) offers none of the safe default TLS versions. Observed: connecting to {host}:{port}, rustls with aws-lc-rs refused TLS 1.2 and 1.3: {error}. Fix: run a most-server release built with the aws-lc-rs provider its Cargo.lock names; 'most-server --version' names the one running. Provoked by `tests/direct-apple/apns.rs::a_provider_without_safe_versions_is_refused`.
  • `most.direct_apple.apns.client-auth-refused` — HTTP 503, exit 1. connecting to the APNs courier {host}:{port}: TLS refuses the push certificate and key as a client identity: the key is of a type it cannot sign with, or does not belong to the certificate. Observed: {error}; {certs} certificates. Fix: load a bootstrap whose push_cert and push_key are the PEM certificate and key Apple issued for this device (most-bootstrap writes it); a placeholder bootstrap carries none. Provoked by `tests/direct-apple/apns.rs::a_push_key_that_is_not_the_certificates_is_refused`.
  • `most.direct_apple.apns.courier-unreachable` — HTTP 503, exit 69, and sending it again can help. connecting to the APNs courier {host}:{port}: no TCP connection to the courier could be opened: the name did not resolve, or the host refused or did not answer. Observed: {error} ({kind}). Fix: check that this host reaches {host}:{port} ('nc -vz {host} {port}'), then connect again. Provoked by `tests/direct-apple/apns.rs::a_courier_that_does_not_answer_is_refused`.
  • `most.direct_apple.apns.handshake-failed` — HTTP 503, exit 69, and sending it again can help. connecting to the APNs courier {host}:{port}: the TLS handshake with the courier failed: it refused the push certificate, or its own certificate does not verify against this host's roots. Observed: {error} ({kind}). Fix: check that the bootstrap's push certificate is current (most-bootstrap renews it), then connect again. Provoked by `tests/direct-apple/apns.rs::a_courier_handshake_that_fails_is_refused`.
  • `most.direct_apple.apns.write-failed` — HTTP 503, exit 69, and sending it again can help. writing a {bytes}-byte APNs {command} frame to {host}:{port}: the socket failed while the frame was written, so the connection is closed. Observed: {error} ({kind}). Fix: connect again (run_with_reconnect does on the next readiness event) and send the frame again. Provoked by `tests/direct-apple/apns.rs::a_frame_the_socket_refuses_ends_the_connection`.
  • `most.direct_apple.apns.reconnect-source-closed` — HTTP 403, exit 1. waiting for a readiness event to reconnect to {host}:{port}: the channel the caller sends readiness events on was closed while the client was disconnected, so no reconnect can ever be asked for. Observed: the readiness receiver answered closed. Fix: keep the readiness sender alive for as long as the client should reconnect, or close the client (ApnsClient::close) to stop it. Provoked by `tests/direct-apple/apns.rs::a_closed_readiness_source_stops_reconnecting`.

most.direct_apple.apns_frames#

Encode an APNs frame (command, body length, id-length-value fields) for the courier socket, and decode one read off it.

Started through: `the direct-Apple APNs courier connection`.

  • `most.direct_apple.apns_frames.field-id-out-of-range` — HTTP 403, exit 1. encoding an APNs {command} frame of {fields} fields: field {index} has id {id}, and a frame carries a field id in one byte (0-255). Observed: field {index} id {id}. Fix: build the frame with Payload::add from the field ids and values Apple's command defines; nothing was sent. Provoked by `tests/direct-apple/apns.rs::a_field_id_past_one_byte_is_refused`.
  • `most.direct_apple.apns_frames.field-too-large` — HTTP 403, exit 1. encoding an APNs {command} frame of {fields} fields: field {index} (id {id}) holds {length} bytes, and a frame carries a field's length in two bytes (at most 65535). Observed: field {index} of {length} bytes. Fix: build the frame with Payload::add from the field ids and values Apple's command defines; nothing was sent. Provoked by `tests/direct-apple/apns.rs::a_field_past_two_byte_length_is_refused`.
  • `most.direct_apple.apns_frames.body-too-large` — HTTP 403, exit 1. encoding an APNs {command} frame of {fields} fields: the fields make a {length}-byte body, and a frame carries its body length in four bytes. Observed: body of {length} bytes. Fix: build the frame with Payload::add from the field ids and values Apple's command defines; nothing was sent. Provoked by `tests/direct-apple/apns.rs::a_body_past_four_byte_length_is_refused`.
  • `most.direct_apple.apns_frames.frame-empty` — HTTP 503, exit 69, and sending it again can help. decoding a {length}-byte APNs frame: the frame holds no bytes, not even its command. Observed: 0 bytes. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::an_empty_frame_is_refused`.
  • `most.direct_apple.apns_frames.frame-short` — HTTP 503, exit 69, and sending it again can help. decoding a {length}-byte APNs frame: the frame is shorter than its 5-byte header (a command byte and a 4-byte length). Observed: {length} bytes: {hex}. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_frame_shorter_than_its_header_is_refused`.
  • `most.direct_apple.apns_frames.command-unknown` — HTTP 503, exit 69, and sending it again can help. decoding a {length}-byte APNs frame: its command byte 0x{command} is none of the commands this client speaks (7-14, 20). Observed: command 0x{command}, body length {body}. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_frame_of_an_unknown_command_is_refused`.
  • `most.direct_apple.apns_frames.body-truncated` — HTTP 503, exit 69, and sending it again can help. decoding a {length}-byte APNs frame: its header claims a {claimed}-byte body and only {present} bytes follow. Observed: command 0x{command}; claimed {claimed}, present {present}. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_frame_with_a_short_body_is_refused`.
  • `most.direct_apple.apns_frames.trailing-bytes` — HTTP 503, exit 69, and sending it again can help. decoding a {length}-byte APNs frame: {extra} bytes follow the {claimed}-byte body its header claims, so they belong to no frame. Observed: command 0x{command}; claimed {claimed}, {extra} more. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_frame_with_bytes_after_its_body_is_refused`.
  • `most.direct_apple.apns_frames.field-header-truncated` — HTTP 503, exit 69, and sending it again can help. decoding the fields of a {length}-byte APNs {command} body: at offset {offset} only {have} bytes are left, fewer than a field's 3-byte header. Observed: {read} fields read before offset {offset}. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_body_ending_inside_a_field_header_is_refused`.
  • `most.direct_apple.apns_frames.field-truncated` — HTTP 503, exit 69, and sending it again can help. decoding the fields of a {length}-byte APNs {command} body: field id {id} at offset {offset} claims {claimed} bytes and only {available} are left. Observed: {read} fields read before it. Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_field_longer_than_its_body_is_refused`.
  • `most.direct_apple.apns_frames.stream-broken` — HTTP 503, exit 69, and sending it again can help. reading the {part} of an APNs frame off the courier socket: the socket ended or failed before the {wanted} bytes of the {part} came. Observed: {error} ({kind}). Fix: the courier connection is closed; connect again (ApnsClient::run_with_reconnect does on the next readiness event). Provoked by `tests/direct-apple/apns.rs::a_stream_ending_inside_a_frame_is_refused`.

most.direct_apple.ids#

Build the IDS register payload (device provenance, validation data, push token, the identity's public keys) and the lookup payload (the URIs to resolve), and post a binary plist to IDS with the push token and a nonce.

Started through: `the direct-Apple IDS client (not called by most-server in this release)`.

  • `most.direct_apple.ids.bootstrap-absent` — HTTP 503, exit 1. {op} with IDS at {base_url}: the IDS client holds no bootstrap, so it has no validation data or push token to send. Observed: no BootstrapData loaded. Fix: load a bootstrap into the client (IDSClient::with_bootstrap; the backend's start mints one from anisette). Provoked by `tests/direct-apple/ids.rs::registering_without_a_bootstrap_is_refused`.
  • `most.direct_apple.ids.user-agent-invalid` — HTTP 403, exit 1. opening the IDS client for {base_url}: the user agent '{user_agent}' holds a character an HTTP header cannot carry. Observed: the user agent {user_agent} for {base_url}; the header parser said {error}. Fix: give IDSClient::with_user_agent visible ASCII only, such as the default com.apple.madrid/1.0. Provoked by `tests/direct-apple/ids.rs::a_user_agent_with_a_newline_is_refused`.
  • `most.direct_apple.ids.http-client-unbuilt` — HTTP 503, exit 1. opening the IDS client for {base_url}: the HTTPS client could not be built: its TLS backend did not initialise on this host. Observed: the client for {base_url} was being built; {proxies}; reqwest said {error}. Fix: check this host's TLS libraries and system trust store, then open the client again. Provoked by `tests/direct-apple/ids.rs::an_http_client_that_cannot_be_built_is_refused`.
  • `most.direct_apple.ids.client-unopened` — HTTP 403, exit 1. posting {bytes} bytes to IDS at {url}: the client was never opened (IDSClient::open), or was closed, so it holds no HTTPS client. Observed: no HTTPS client. Fix: call IDSClient::open before posting, and close it only when done. Provoked by `tests/direct-apple/ids.rs::posting_before_opening_is_refused`.
  • `most.direct_apple.ids.request-unbuildable` — HTTP 403, exit 1. posting {bytes} bytes to IDS at {url}: the request cannot be built: the address is not a URL, or an extra header's name or value is not one HTTP carries. Observed: {error}; extra headers: {headers}. Fix: post to an https address with IDSClient::with_base_url and extra headers of visible ASCII. Provoked by `tests/direct-apple/ids.rs::a_post_to_an_address_that_is_no_url_is_refused`.
  • `most.direct_apple.ids.ids-unreachable` — HTTP 503, exit 69, and sending it again can help. posting {bytes} bytes to IDS at {url}: IDS did not answer: the connection failed, broke off or timed out. Observed: POST {url} with {bytes} bytes and the extra headers {headers}; reqwest said {error}. Fix: check that this host reaches {url} ('curl -sI {url}'), then post again. Provoked by `tests/direct-apple/ids.rs::a_post_to_ids_that_does_not_answer_is_refused`.
  • `most.direct_apple.ids.registration-unprovisioned` — HTTP 503, exit 1. registering {device} with IDS at {base_url}: IDS takes a registration only signed with the IDS authentication certificate it issues for the Apple ID after sign-in (x-auth-sig) and with the key of the APNs push certificate Albert activation issues (x-push-sig); this release obtains neither, because live provisioning stops before Apple ID sign-in (FairPlay activation signing is not implemented), so the {bytes}-byte register payload was not sent. Observed: register payload built from the bootstrap created {created_at}, expiring {expires_at}: {bytes} bytes, {validation} bytes of validation data, push token {token}; no IDS authentication certificate is held; nothing posted. Fix: send and receive through the mac-relay pool: start most-server with MOST_COMPOSITION=dev-mac (or prod) on the Mac whose Messages.app holds the account. Provoked by `tests/direct-apple/ids.rs::registering_with_a_bootstrap_is_refused_for_want_of_ids_credentials`.
  • `most.direct_apple.ids.lookup-unprovisioned` — HTTP 503, exit 1. looking up {count} URIs ({uris}) for {self_user_id} with IDS at {base_url}: IDS answers a lookup only signed (x-id-sig) with the identity certificate a registration returns, and this release registers no device (registration-unprovisioned), so the {bytes}-byte lookup payload was not sent. Observed: lookup payload built: {bytes} bytes; push token {token}; no IDS identity certificate is held; nothing posted. Fix: send and receive through the mac-relay pool: start most-server with MOST_COMPOSITION=dev-mac (or prod) on the Mac whose Messages.app holds the account. Provoked by `tests/direct-apple/ids.rs::looking_up_with_a_bootstrap_is_refused_for_want_of_an_identity_certificate`.

most.direct_apple.bootstrap#

Read the command line, check that DIRECT_APPLE_APPLE_ID, DIRECT_APPLE_APPLE_PASSWORD and the anisette state directory are set, and print the provisioning plan; live provisioning is refused before any request or state access.

Started through: `most-bootstrap [--dry-run] [--i-understand-im-talking-to-apple] [--state-dir STATE_DIR]`.

  • `most.direct_apple.bootstrap.argument-unknown` — HTTP 400, exit 2. reading the most-bootstrap command line: {argument} is not an option most-bootstrap takes. Observed: arguments: {arguments}. Fix: run 'most-bootstrap --help' and give only --dry-run, --i-understand-im-talking-to-apple or --state-dir STATE_DIR. Provoked by `tests/direct-apple/bootstrap_cli.rs::an_unknown_argument_is_refused_as_usage`.
  • `most.direct_apple.bootstrap.state-dir-value-missing` — HTTP 400, exit 2. reading the most-bootstrap command line: --state-dir is the last word, so it names no directory. Observed: arguments: {arguments}. Fix: give the anisette state directory after it: 'most-bootstrap --state-dir /path/to/anisette'. Provoked by `tests/direct-apple/bootstrap_cli.rs::a_state_dir_without_a_value_is_refused_as_usage`.
  • `most.direct_apple.bootstrap.live-unavailable` — HTTP 503, exit 3. provisioning this device with Apple (--i-understand-im-talking-to-apple): Albert activation needs a FairPlay signature, which this release does not build, so no APNs or IDS credentials can be obtained. Observed: no Apple request was made and no state under {state_dir} was read or written. Fix: send and receive through the mac-relay pool instead: most-server with MOST_COMPOSITION=dev-mac (or prod) on the Mac whose Messages.app holds the account; 'most-bootstrap --dry-run' still checks the plan. Provoked by `tests/direct-apple/bootstrap_cli.rs::live_provisioning_is_refused_before_any_request`.
  • `most.direct_apple.bootstrap.settings-missing` — HTTP 503, exit 1. checking the direct-Apple provisioning plan: the plan names settings this environment leaves unset: {missing}. Observed: unset or empty: {missing}; nothing was read or written. Fix: set {missing} in most-server's environment (the service directory's env; --state-dir can stand in for ANISETTE_STATE_DIR), then run 'most-bootstrap --dry-run' again. Provoked by `tests/direct-apple/bootstrap_cli.rs::a_plan_without_its_settings_is_refused`.

most.direct_apple.inbound#

Read one inbound iMessage plist: its text `t`, the <FILE> tags of its attachment XHTML `x` (the MMCS address, owner, signature, key and size of each file), or for a tapback (`amt` 2000-2005, 3000-3005) the message `amk` names.

Started through: `most-server direct-Apple receive bridge (MOST_DIRECT_APPLE_ENABLED=true)`.

  • `most.direct_apple.inbound.text-not-text` — HTTP 403, exit 1. reading an inbound iMessage plist with keys {keys}: its text 't' is {kind}, not the string Messages writes, so the message's text cannot be read. Observed: t = {found}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_plist_whose_text_is_not_a_string_is_refused`.
  • `most.direct_apple.inbound.attachments-not-text` — HTTP 403, exit 1. reading an inbound iMessage plist with keys {keys}: its attachment XHTML 'x' is {kind}, not the string Messages writes, so no attachment can be read. Observed: x = {found}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_plist_whose_attachments_are_not_a_string_is_refused`.
  • `most.direct_apple.inbound.attachments-xhtml-malformed` — HTTP 403, exit 1. reading the {length}-byte attachment XHTML 'x' of an inbound iMessage plist: the XHTML is not well-formed XML at byte {position}, so no <FILE> tag from there on can be read. Observed: {error}; {read} <FILE> tags read before it. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::attachment_xhtml_that_is_not_xml_is_refused`.
  • `most.direct_apple.inbound.attachment-attribute-malformed` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: an attribute after {read} is not written as name="value" (unquoted, repeated or without a value), so the tag cannot be read. Observed: file tag {index}, after the attributes {read}: the XML reader said {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_with_an_unquoted_attribute_is_refused`.
  • `most.direct_apple.inbound.attachment-attribute-unescapable` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: the value of attribute {name} holds an XML entity or character reference that does not decode. Observed: {name} = {raw}: {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_with_an_unknown_entity_is_refused`.
  • `most.direct_apple.inbound.attachment-field-missing` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: the tag has no {key}, which every MMCS attachment carries, so the file can be neither fetched nor decrypted. Observed: the tag's attributes: {attributes}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_without_its_mmcs_address_is_refused`.
  • `most.direct_apple.inbound.attachment-hex-invalid` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: {key} holds a character that is not a hexadecimal digit (0-9, A-F), so the file's {meaning} cannot be read. Observed: {key} = {value}: '{character}' at digit {at} is not a hexadecimal digit. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_whose_signature_is_not_hex_is_refused`.
  • `most.direct_apple.inbound.attachment-hex-odd` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: {key} holds an odd count of hexadecimal digits, so its last byte is half written and the file's {meaning} cannot be read. Observed: {key} = {value}: {digits} digits. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_whose_signature_has_an_odd_count_of_digits_is_refused`.
  • `most.direct_apple.inbound.attachment-length-wrong` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: {key} decodes to {found} bytes where an MMCS {meaning} is {expected} bytes. Observed: {key} = {value}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_whose_key_is_too_short_is_refused`.
  • `most.direct_apple.inbound.attachment-size-not-number` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: file-size '{value}' is not a whole number of bytes. Observed: file tag {index} has file-size '{value}'; the number parser said {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_whose_size_is_not_a_number_is_refused`.
  • `most.direct_apple.inbound.attachment-part-not-number` — HTTP 403, exit 1. reading <FILE> tag {index} of an inbound plist's attachment XHTML: message-part '{value}' is not a whole number, and reading it as the first part would put the attachment beside the wrong text. Observed: file tag {index} has message-part '{value}'; the number parser said {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_file_tag_whose_part_is_not_a_number_is_refused`.
  • `most.direct_apple.inbound.reaction-target-absent` — HTTP 403, exit 1. reading the message an inbound {action} of {reaction} (amt {amt}) reacts to: the plist marks a tapback and has no amk naming the message it reacts to, so the reaction belongs to no message. Observed: the plist's keys: {keys}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_without_its_target_is_refused`.
  • `most.direct_apple.inbound.reaction-target-not-text` — HTTP 403, exit 1. reading the message an inbound {action} of {reaction} (amt {amt}) reacts to: its amk is {kind}, not the 'p:<part>/<GUID>' string Messages writes. Observed: amk = {found}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_whose_target_is_not_a_string_is_refused`.
  • `most.direct_apple.inbound.reaction-target-prefix-unknown` — HTTP 403, exit 1. reading the reaction target amk '{amk}': it starts with neither 'p:' (a part of a message) nor 'bp:' (a balloon payload), the two forms Messages writes. Observed: amk '{amk}' begins '{prefix}'. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_target_of_an_unknown_form_is_refused`.
  • `most.direct_apple.inbound.reaction-target-guid-missing` — HTTP 403, exit 1. reading the reaction target amk '{amk}': it names part '{part}' and no message GUID after a '/'. Observed: amk '{amk}' holds no GUID. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_target_without_a_guid_is_refused`.
  • `most.direct_apple.inbound.reaction-target-part-not-number` — HTTP 403, exit 1. reading the reaction target amk '{amk}': the part '{part}' it names is not a whole number. Observed: the target '{amk}' names the part '{part}'; the number parser said {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_target_whose_part_is_not_a_number_is_refused`.
  • `most.direct_apple.inbound.reaction-target-guid-invalid` — HTTP 403, exit 1. reading the reaction target amk '{amk}': the message GUID '{guid}' it names is not a UUID. Observed: the target '{amk}' names the GUID '{guid}'; the UUID parser said {error}. Fix: no chat, message or webhook was written for this plist; ask its sender (the 'while receiving' part of this line names the handle) to send it again from a current Messages app, and 'most-server errors show most.direct_apple.inbound' lists every shape this reader refuses. Provoked by `tests/direct-apple/receive.rs::a_tapback_target_whose_guid_is_not_a_uuid_is_refused`.

most.direct_apple.receive#

Read each inbound envelope the APNs receive layer queues, find or create the chat of its sender (backend_ref `iMessage;da;<sender>`), and send message.received or message.reaction to the sender's webhook subscriptions.

Started through: `most-server direct-Apple receive bridge (MOST_DIRECT_APPLE_ENABLED=true)`.

Uses: `most.direct_apple.inbound`, `most.core.storage`.

  • `most.direct_apple.receive.sender-missing` — HTTP 403, exit 1. routing an inbound {kind} received at {received_at} for {destination}: the envelope names no sender handle (empty once 'tel:' or 'mailto:' is taken off), so no subscription can be looked up and no chat named. Observed: sender handle '{raw}'; the plist's keys: {keys}. Fix: no chat, message or webhook was written for it; whatever queued the envelope (InboundEnvelope::new) must hand it the sender handle Apple's envelope carries, and 'most-server errors show most.direct_apple.receive' lists what else stops an envelope. Provoked by `tests/direct-apple/receive.rs::an_envelope_without_a_sender_is_refused`.

most.direct_apple.appleid#

Fetch the idmsa sign-in page, ask whether the Apple ID is federated, run Apple's SRP-6a init and proof with the hashcash stamp the page asks for, and send a two-factor security code when the account needs one.

Started through: `the direct-Apple Apple ID sign-in (not called by most-server in this release)`.

  • `most.direct_apple.appleid.http-client-unbuilt` — HTTP 503, exit 1. opening the Apple ID client for {base_url}: the HTTPS client could not be built: its TLS backend did not initialise on this host. Observed: the client for {base_url} was being built; {proxies}; reqwest said {error}. Fix: check this host's TLS libraries and system trust store, then open the client again. Provoked by `tests/direct-apple/appleid.rs::an_apple_id_client_this_host_cannot_build_is_refused`.
  • `most.direct_apple.appleid.url-invalid` — HTTP 400, exit 2. {step} at {url}: the idmsa address the client was given is not a URL. Observed: the address for {step} was {url}; the URL parser said {error}. Fix: give AppleIDClient::set_base_url an https address such as https://idmsa.apple.com. Provoked by `tests/direct-apple/appleid.rs::signing_in_at_an_address_that_is_no_url_is_refused`.
  • `most.direct_apple.appleid.url-hostless` — HTTP 400, exit 2. {step} at {url}: {whose} names no host, and Apple scopes the sign-in session (its scnt) per host. Observed: address {address}. Fix: give AppleIDClient::set_base_url an https address with a host, such as https://idmsa.apple.com. Provoked by `tests/direct-apple/appleid.rs::signing_in_at_an_address_without_a_host_is_refused`.
  • `most.direct_apple.appleid.idmsa-unreachable` — HTTP 503, exit 69, and sending it again can help. {step} at {url}: idmsa did not answer: the connection {kind}. Observed: {step} at {url}: the connection {kind}; reqwest said {error}. Fix: check that this host reaches {url} ('curl -sI {url}'), then sign in again. Provoked by `tests/direct-apple/appleid.rs::signing_in_where_nothing_listens_is_refused_as_retryable`.
  • `most.direct_apple.appleid.answer-unread` — HTTP 503, exit 69, and sending it again can help. {step} at {url}: Apple's answer ({status}) broke off before its body was read. Observed: {url} answered {status} for {step}, and reading its body answered: {error}. Fix: sign in again; when it repeats, 'curl -sI {url}' shows what idmsa answers. Provoked by `tests/direct-apple/appleid.rs::an_answer_that_breaks_off_is_refused_as_retryable`.
  • `most.direct_apple.appleid.answer-not-json` — HTTP 403, exit 1. {step} at {url}: Apple's {status} answer is not the JSON this step reads, so what Apple decided is unknown. Observed: {error}; {bytes} bytes starting '{start}'. Fix: sign in again; when it repeats, 'curl -sI {url}' shows what idmsa answers. Provoked by `tests/direct-apple/appleid.rs::an_answer_that_is_not_json_is_refused`.
  • `most.direct_apple.appleid.idmsa-failing` — HTTP 503, exit 69, and sending it again can help. {step} at {url}: Apple answered {status}: idmsa is failing, or limiting how often this host signs in. Observed: expected {expected}; body starting '{body}'. Fix: wait a few minutes, then sign in again; 'curl -sI {url}' shows whether idmsa answers. Provoked by `tests/direct-apple/appleid.rs::an_idmsa_that_is_failing_is_refused_as_retryable`.
  • `most.direct_apple.appleid.password-refused` — HTTP 403, exit 1. {step} at {url}: Apple answered {status} to the SRP proof, its answer to a password that is not the Apple ID's or to an account it locked. Observed: body starting '{body}'. Fix: sign in again with the Apple ID's password; when it is right, https://iforgot.apple.com says whether the account is locked. Provoked by `tests/direct-apple/appleid.rs::a_wrong_password_is_refused`.
  • `most.direct_apple.appleid.code-refused` — HTTP 403, exit 1. {step} at {url}: Apple answered {status} to the security code, its answer to a code that is wrong or expired. Observed: body starting '{body}'. Fix: sign in again with the six-digit code a trusted device shows now (two_factor_code). Provoked by `tests/direct-apple/appleid.rs::a_wrong_security_code_is_refused`.
  • `most.direct_apple.appleid.status-unexpected` — HTTP 403, exit 1. {step} at {url}: Apple answered {status}, where this step takes {expected}. Observed: body starting '{body}'. Fix: read the body Apple sent: a step it names (accepting terms, repairing the account) is completed at https://appleid.apple.com, then sign in again. Provoked by `tests/direct-apple/appleid.rs::an_answer_of_another_status_is_refused`.
  • `most.direct_apple.appleid.header-not-text` — HTTP 403, exit 1. {step} at {url}: Apple's {header} header is not visible ASCII text, so the session it carries cannot be kept. Observed: {bytes} bytes: {error}. Fix: sign in again; when it repeats, 'curl -sI {url}' shows what idmsa answers. Provoked by `tests/direct-apple/appleid.rs::a_session_header_that_is_not_text_is_refused`.
  • `most.direct_apple.appleid.boot-args-absent` — HTTP 403, exit 1. reading the {bytes}-byte Apple ID sign-in page: the page holds no '<script type="application/json" class="boot_args">' block, so it is not the sign-in page idmsa serves or its layout changed. Observed: page starting '{start}'. Fix: 'curl -s https://idmsa.apple.com/appleauth/auth/authorize/signin' shows what idmsa serves; a page that changed its layout needs a Most release that reads it. Provoked by `tests/direct-apple/appleid.rs::a_sign_in_page_without_boot_args_is_refused`.
  • `most.direct_apple.appleid.boot-args-not-json` — HTTP 403, exit 1. reading the {bytes}-byte Apple ID sign-in page: its last boot_args block is not JSON, so the auth attributes and hashcash challenge cannot be read. Observed: {error}; block starting '{start}'. Fix: sign in again; a page whose block keeps failing needs a Most release that reads it. Provoked by `tests/direct-apple/appleid.rs::a_sign_in_page_whose_boot_args_are_not_json_is_refused`.
  • `most.direct_apple.appleid.auth-attributes-not-base64` — HTTP 403, exit 1. {step} at {url}: {source} is not base64, so the auth attributes every later request carries are unknown. Observed: {chars} characters: {error}. Fix: sign in again; when it repeats, 'curl -sI {url}' shows what idmsa answers. Provoked by `tests/direct-apple/appleid.rs::auth_attributes_that_are_not_base64_are_refused`.
  • `most.direct_apple.appleid.hashcash-unreadable` — HTTP 403, exit 1. reading the hashcash challenge of the Apple ID sign-in page: the challenge carries no readable {keys}, so no stamp can be computed. Observed: it holds {found}. Fix: sign in again; a challenge that keeps lacking it needs a Most release that reads Apple's new shape. Provoked by `tests/direct-apple/appleid.rs::a_hashcash_challenge_without_its_bits_is_refused`.
  • `most.direct_apple.appleid.hashcash-too-hard` — HTTP 403, exit 1. reading the hashcash challenge of the Apple ID sign-in page: it asks for {stated} leading zero bits, and a SHA-1 digest has {digest_bits}, so no stamp could ever be found. Observed: hcBits {stated}. Fix: sign in again; a challenge that keeps asking for it needs a Most release that reads Apple's new shape. Provoked by `tests/direct-apple/appleid.rs::a_hashcash_challenge_past_sha1_is_refused`.
  • `most.direct_apple.appleid.hashcash-exhausted` — HTTP 403, exit 1. computing the hashcash stamp for challenge {challenge} of {date}: no counter of the 64-bit space gives a stamp whose SHA-1 starts with {bits} zero bits. Observed: version {version}, bits {bits}; every counter tried. Fix: sign in again, which fetches a new challenge. Provoked by `tests/direct-apple/appleid.rs::a_hashcash_challenge_no_counter_meets_is_refused`.
  • `most.direct_apple.appleid.federated` — HTTP 503, exit 1. {step} at {url}: the Apple ID {apple_id} is federated (its organisation signs it in), and idmsa's SRP sign-in takes only personal Apple IDs. Observed: answer: federated true. Fix: provision with a personal Apple ID, or send through the mac-relay pool on a Mac signed in with this one (MOST_COMPOSITION=dev-mac). Provoked by `tests/direct-apple/appleid.rs::a_federated_apple_id_is_refused`.
  • `most.direct_apple.appleid.complete-before-init` — HTTP 400, exit 2. sending the SRP proof for {apple_id}: init was not answered first, so there is no salt, server key or protocol to derive the proof from. Observed: init answer held: no. Fix: call AppleIDClient::init with the Apple ID before complete, or sign in with login. Provoked by `tests/direct-apple/appleid.rs::a_proof_before_init_is_refused`.
  • `most.direct_apple.appleid.init-answer-unreadable` — HTTP 403, exit 1. sending the SRP proof for {apple_id}: Apple's signin/init answer carries no usable {field}, so the proof cannot be derived. Observed: it holds {found}. Fix: sign in again; an answer that keeps lacking it needs a Most release that reads Apple's new shape. Provoked by `tests/direct-apple/appleid.rs::an_init_answer_without_its_salt_is_refused`.
  • `most.direct_apple.appleid.init-iterations-zero` — HTTP 403, exit 1. sending the SRP proof for {apple_id}: Apple's signin/init answer names 0 PBKDF2 iterations; a password key derived from no iterations is not the key Apple checks, so the proof would be refused as a wrong password. Observed: it holds {found}. Fix: sign in again; an answer that keeps naming 0 iterations needs a Most release that reads Apple's new shape. Provoked by `tests/direct-apple/appleid.rs::an_init_answer_naming_zero_iterations_is_refused`.
  • `most.direct_apple.appleid.init-field-not-base64` — HTTP 403, exit 1. sending the SRP proof for {apple_id}: the {field} of Apple's signin/init answer is not base64. Observed: {chars} characters: {error}. Fix: sign in again; when it repeats, 'curl -sI {url}' shows what idmsa answers. Provoked by `tests/direct-apple/appleid.rs::an_init_salt_that_is_not_base64_is_refused`.
  • `most.direct_apple.appleid.protocol-unknown` — HTTP 403, exit 1. deriving the SRP password key: Apple chose the protocol '{protocol}', and this client derives keys only for {known}. Observed: protocol '{protocol}'. Fix: sign in with a Most release that knows '{protocol}'. Provoked by `tests/direct-apple/appleid.rs::an_srp_protocol_this_client_does_not_know_is_refused`.
  • `most.direct_apple.appleid.server-key-invalid` — HTTP 403, exit 1. answering Apple's SRP challenge: the server key B Apple sent is {why}, and SRP-6a takes only 0 < B < N: a proof against it would give the password away. Observed: B of {bytes} bytes. Fix: sign in again; never complete a sign-in whose server key is refused. Provoked by `tests/direct-apple/appleid.rs::a_server_key_of_zero_is_refused`.
  • `most.direct_apple.appleid.two-factor-required` — HTTP 403, exit 1. signing in {apple_id}: the Apple ID uses two-factor authentication and no security code was given, so the sign-in stops after the password. Observed: trusted devices: {devices}; trusted phone numbers: {phones}. Fix: sign in again with the six-digit code a trusted device shows (login's two_factor_code). Provoked by `tests/direct-apple/appleid.rs::a_two_factor_account_without_a_code_is_refused`.
  • `most.direct_apple.appleid.two-factor-answer-unreadable` — HTTP 403, exit 1. reading where a security code for {apple_id} can be sent: Apple's two-factor answer states {keys} in a shape this client does not read. Observed: it holds {found}. Fix: sign in again with the code a trusted device shows (login's two_factor_code), which needs no list. Provoked by `tests/direct-apple/appleid.rs::a_two_factor_answer_of_another_shape_is_refused`.

most.direct_apple.albert#

Read this Mac's identity with sysctl, sw_vers and ioreg, make the RSA-2048 device key and its PKCS#10 request, write the activation info as an XML plist, then sign it with FairPlay and post it to Albert for the push certificate; the signer and the post are not built.

Started through: `the direct-Apple Albert activation (not called by most-server in this release)`.

  • `most.direct_apple.albert.not-macos` — HTTP 503, exit 1. reading this host's identity for Albert activation: Albert activates a Mac, and this host runs {os}, which has no hw.model, sw_vers or IOPlatformExpertDevice to present as one. Observed: target_os {os}; nothing was read or generated. Fix: build the activation on the Mac whose identity it presents, or send through the mac-relay pool (MOST_COMPOSITION=dev-mac on that Mac). Provoked by `tests/direct-apple/albert_host.rs::activation_on_a_host_that_is_not_a_mac_is_refused`.
  • `most.direct_apple.albert.host-command-unstartable` — HTTP 503, exit 1. reading this Mac's {fact} with '{command}' for Albert activation: '{program}' could not be started, so this Mac's {fact} is unknown, and a value it does not have would be presented to Apple as its own. Observed: {error}; PATH={path}. Fix: put the system's {program} on the PATH the activation runs with ('command -v {program}' names it; macOS keeps it in /usr/sbin or /usr/bin), then build the activation again. Provoked by `tests/direct-apple/albert_host.rs::a_mac_whose_identity_commands_cannot_start_is_refused`.
  • `most.direct_apple.albert.host-command-failed` — HTTP 503, exit 1. reading this Mac's {fact} with '{command}' for Albert activation: '{command}' exited with {status}, so this Mac's {fact} is unknown. Observed: exit {status}; stderr: {stderr}; stdout: {stdout_bytes} bytes. Fix: run '{command}' as the user the activation runs as and repair what it says, then build the activation again. Provoked by `tests/direct-apple/albert.rs::an_identity_command_that_fails_is_refused`.
  • `most.direct_apple.albert.host-command-silent` — HTTP 503, exit 1. reading this Mac's {fact} with '{command}' for Albert activation: '{command}' exited 0 and printed nothing, so this Mac states no {fact}. Observed: exit 0; stdout empty; stderr: {stderr}. Fix: run '{command}'; on macOS it prints the {fact}, so a silent answer means this system's {program} is not Apple's: repair it, then build the activation again. Provoked by `tests/direct-apple/albert.rs::an_identity_command_that_prints_nothing_is_refused`.
  • `most.direct_apple.albert.ioreg-property-absent` — HTTP 503, exit 1. reading this Mac's {fact} with '{command}' for Albert activation: the platform expert device lists no string property {fact}, so this Mac's {fact} is unknown. Observed: '{command}' printed {bytes} bytes; {found}. Fix: '{command} | grep {fact}' shows what this Mac lists; a virtual Mac without a serial or UUID cannot be activated, so run on a physical Mac. Provoked by `tests/direct-apple/albert.rs::an_ioreg_listing_without_the_property_is_refused`.
  • `most.direct_apple.albert.device-key-ungenerated` — HTTP 503, exit 1. making the {bits}-bit RSA device key for Albert activation: the RSA library could not make the key: the operating system's random source refused it or the key it drew is not usable. Observed: drawing a {bits}-bit RSA key from the system random source, the rsa crate said {error}. Fix: check that the system random source works for the user the activation runs as ('head -c 16 /dev/urandom | xxd'), then build the activation again. Provoked by `tests/direct-apple/albert.rs::a_device_key_the_random_source_cannot_make_is_refused`.
  • `most.direct_apple.albert.device-key-unencodable` — HTTP 403, exit 1. writing the public half of the {bits}-bit device key into the certificate request: the key's public half could not be encoded as SubjectPublicKeyInfo DER, so the request would name no key. Observed: encoding the {bits}-bit key's public half as SubjectPublicKeyInfo DER, the spki crate said {error}. Fix: build the activation again, which makes a new key. Provoked by `tests/direct-apple/albert.rs::a_device_key_that_cannot_be_encoded_is_refused`.
  • `most.direct_apple.albert.request-unsigned` — HTTP 403, exit 1. signing the {request_bytes}-byte certificate request with the {bits}-bit device key: the device key refused the PKCS#1 v1.5 SHA-256 signature, so the request proves no key. Observed: {error}; digest {digest_bytes} bytes. Fix: build the activation again, which makes a new key. Provoked by `tests/direct-apple/albert.rs::a_certificate_request_the_key_cannot_sign_is_refused`.
  • `most.direct_apple.albert.activation-info-unencodable` — HTTP 403, exit 1. writing the activation info for {serial} ({product_type}, macOS {product_version}) as an XML plist: the plist writer refused the activation info, so there is nothing to sign. Observed: {error}; {keys} keys, certificate request {request_bytes} bytes. Fix: read the identity again ('sysctl -n hw.model', 'sw_vers') and repair a value that is not text, then build the activation again. Provoked by `tests/direct-apple/albert.rs::activation_info_the_plist_writer_refuses_is_refused`.
  • `most.direct_apple.albert.fairplay-unbuilt` — HTTP 503, exit 1. signing the {info_bytes}-byte activation info of {serial} with FairPlay: Albert takes an activation only signed by the Mac's FairPlay subsystem, and this release holds no FairPlay signer, so no activation can be posted and live provisioning stops before Apple ID sign-in. Observed: activation info {info_bytes} bytes, device key held: {key_held}; nothing signed or posted. Fix: send and receive through the mac-relay pool: start most-server with MOST_COMPOSITION=dev-mac (or prod) on the Mac whose Messages.app holds the account. Provoked by `tests/direct-apple/albert.rs::signing_an_activation_is_refused_for_want_of_a_fairplay_signer`.
  • `most.direct_apple.albert.bundle-unsigned` — HTTP 403, exit 1. posting the activation of {serial} to Albert at {url}: the bundle carries no FairPlay signature or certificate chain, and Albert refuses an unsigned activation. Observed: signature {signature_bytes} bytes, certificate chain {chain_bytes} bytes, activation info {info_bytes} bytes; nothing posted. Fix: sign the bundle first (sign_activation), which needs the FairPlay signer this release lacks; until then send through the mac-relay pool (MOST_COMPOSITION=dev-mac on the Mac whose Messages.app holds the account). Provoked by `tests/direct-apple/albert.rs::posting_an_unsigned_activation_is_refused`.
  • `most.direct_apple.albert.post-unbuilt` — HTTP 503, exit 1. posting the signed activation of {serial} to Albert at {url}: the Albert post is not built in this release, so the signed bundle was not sent and no push certificate was issued. Observed: signature {signature_bytes} bytes, certificate chain {chain_bytes} bytes, activation info {info_bytes} bytes; nothing posted. Fix: send and receive through the mac-relay pool: start most-server with MOST_COMPOSITION=dev-mac (or prod) on the Mac whose Messages.app holds the account. Provoked by `tests/direct-apple/albert.rs::posting_a_signed_activation_is_refused_as_unbuilt`.

most.direct_apple.aoskit#

Load AOSKit.framework, find its anisette provisioning class and selector, and mint the X-Apple-I-MD validation data from this Mac; the Objective-C bridge is not built.

Started through: `the direct-Apple AOSKit anisette bridge (not called by most-server in this release)`.

  • `most.direct_apple.aoskit.bridge-unbuilt` — HTTP 503, exit 1. minting anisette from {path} with the class {class}: this release builds no Objective-C bridge to AOSKit, so the class cannot be loaded or its selectors called; and an unsigned caller would get nothing from the anisette XPC service without Apple's com.apple.idms and com.apple.akd entitlements. Observed: class {class} ({class_source}); selectors that would be tried: {selectors}; nothing loaded. Fix: mint anisette through the anisette helper (ANISETTE_STATE_DIR, most.direct_apple.anisette), or send through the mac-relay pool, whose helper reaches AOSKit inside Messages.app (MOST_COMPOSITION=dev-mac). Provoked by `tests/direct-apple/aoskit.rs::minting_anisette_from_aoskit_is_refused_for_want_of_a_bridge`.

most.direct_apple.encryption#

Encrypt a message for one recipient with NGM when IDS lists its prekey and device key, else with pair-EC, and decrypt one: read its wire, check its signature and tag, and remove its padding.

Started through: `the direct-Apple message encryptors (not called by most-server in this release)`.

  • `most.direct_apple.encryption.recipient-prekey-missing` — HTTP 403, exit 1. encrypting {bytes} bytes with NGM: the encryptor holds no NGM prekey of the recipient, so there is no key to agree the message key with. Observed: recipient prekey held: no; recipient device key held: {device_held}. Fix: build the encryptor with pick_encryptor, which takes NGM only when the IDS lookup returned the recipient's prekey and device key, and pair-EC otherwise. Provoked by `tests/direct-apple/encryption.rs::ngm_without_the_recipients_prekey_is_refused`.
  • `most.direct_apple.encryption.ngm-wire-truncated` — HTTP 403, exit 1. reading the {wire_bytes}-byte NGM message: the message ends inside its {field}: that needs {needed} bytes at offset {offset}, and {have} remain. Observed: read before it: {read}. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::an_ngm_message_cut_inside_its_ciphertext_is_refused`.
  • `most.direct_apple.encryption.ngm-wire-trailing` — HTTP 403, exit 1. reading the {wire_bytes}-byte NGM message: {trailing} bytes follow the signature, where an NGM message ends. Observed: ephemeral key {ephemeral} bytes, ciphertext {ciphertext} bytes, signature {signature} bytes. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::an_ngm_message_with_bytes_after_its_signature_is_refused`.
  • `most.direct_apple.encryption.ngm-ephemeral-key-invalid` — HTTP 403, exit 1. decrypting the {wire_bytes}-byte NGM message: the sender's ephemeral key is not a P-256 point in SEC1 form, so no message key can be agreed with it. Observed: {bytes} bytes, first byte {first}: {error}. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::an_ngm_message_whose_ephemeral_key_is_no_point_is_refused`.
  • `most.direct_apple.encryption.ngm-plaintext-short` — HTTP 403, exit 1. removing the padding of the {padded}-byte decrypted NGM message: the decrypted text is shorter than the four-byte pad length every NGM plaintext ends with. Observed: {padded} bytes decrypted. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::an_ngm_message_shorter_than_its_pad_length_is_refused`.
  • `most.direct_apple.encryption.ngm-padding-invalid` — HTTP 403, exit 1. removing the padding of the {padded}-byte decrypted NGM message: the pad length it ends with, {pad_len}, is zero or longer than the {before} bytes before it, so the message key was not the sender's or the ciphertext was altered. Observed: pad length {pad_len}; {before} bytes before it. Fix: check that the message was decrypted with this device's NGM prekey (the one IDS lists for it), then ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::an_ngm_message_decrypted_with_another_key_is_refused`.
  • `most.direct_apple.encryption.pair-body-too-long` — HTTP 403, exit 1. writing the pair-EC message: its body is {body} bytes, and the wire's two-byte body length carries at most 65535. Observed: body {body} bytes, signature {signature} bytes. Fix: send a shorter text (the body is the text plus 36 bytes), or send the content as an attachment through MMCS. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_body_past_its_length_field_is_refused`.
  • `most.direct_apple.encryption.pair-signature-too-long` — HTTP 403, exit 1. writing the pair-EC message: its signature is {signature} bytes, and the wire's one-byte signature length carries at most 255. Observed: body {body} bytes, signature {signature} bytes. Fix: sign with a P-256 key, whose DER signature is at most 72 bytes (PairEcEncryptor::encrypt). Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_signature_past_its_length_field_is_refused`.
  • `most.direct_apple.encryption.pair-wire-too-short` — HTTP 403, exit 1. reading the {wire_bytes}-byte pair-EC message: it is shorter than the four bytes its tag, body length and signature length take. Observed: {wire_bytes} bytes. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_of_three_bytes_is_refused`.
  • `most.direct_apple.encryption.pair-wire-tag-unknown` — HTTP 403, exit 1. reading the {wire_bytes}-byte pair-EC message: its first byte is {tag}, not the pair-EC tag 0x02, so it is another scheme's message. Observed: first byte {tag}. Fix: decrypt it with the scheme its sender used (NgmEncryptor for NGM). Provoked by `tests/direct-apple/encryption.rs::a_message_without_the_pair_ec_tag_is_refused`.
  • `most.direct_apple.encryption.pair-body-truncated` — HTTP 403, exit 1. reading the {wire_bytes}-byte pair-EC message: it states a {body_len}-byte body and a signature length after it, and only {have} bytes follow its header. Observed: body length {body_len}; {have} bytes after the three-byte header. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_cut_inside_its_body_is_refused`.
  • `most.direct_apple.encryption.pair-signature-truncated` — HTTP 403, exit 1. reading the {wire_bytes}-byte pair-EC message: it states a {sig_len}-byte signature, and only {have} bytes follow. Observed: body {body_len} bytes; signature length {sig_len}; {have} bytes after it. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_cut_inside_its_signature_is_refused`.
  • `most.direct_apple.encryption.pair-wire-trailing` — HTTP 403, exit 1. reading the {wire_bytes}-byte pair-EC message: {trailing} bytes follow the {sig_len}-byte signature, where a pair-EC message ends. Observed: body {body_len} bytes; signature {sig_len} bytes. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_with_bytes_after_its_signature_is_refused`.
  • `most.direct_apple.encryption.pair-signature-unparsable` — HTTP 403, exit 1. checking the signature of the {body}-byte pair-EC body: the signature is not a DER-encoded ECDSA signature. Observed: {bytes} bytes: {error}. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_signature_that_is_not_der_is_refused`.
  • `most.direct_apple.encryption.pair-signature-mismatch` — HTTP 403, exit 1. checking the signature of the {body}-byte pair-EC body: the signature does not verify against the signing key, so the message was signed with another key or its body was altered. Observed: {error}; signing key {key}. Fix: decrypt with the encryptor built from the sender's signing key, or ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_signed_with_another_key_is_refused`.
  • `most.direct_apple.encryption.pair-body-too-short` — HTTP 403, exit 1. decrypting the {body}-byte pair-EC body: the body is shorter than the 16-byte message key and 20-byte tag it must hold. Observed: {body} bytes, signed. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_signed_pair_ec_body_shorter_than_its_key_and_tag_is_refused`.
  • `most.direct_apple.encryption.pair-mac-mismatch` — HTTP 403, exit 1. decrypting the {body}-byte pair-EC body: its HMAC-SHA1 tag does not match the {ciphertext}-byte ciphertext, so the ciphertext or its key was altered after signing. Observed: ciphertext {ciphertext} bytes; tag {tag}. Fix: the message was cut or altered in transit, or is not this scheme's: ask the sender to send it again. Provoked by `tests/direct-apple/encryption.rs::a_pair_ec_message_whose_tag_does_not_match_is_refused`.

most.core.settings#

Read Most's settings from the process environment, and LOG_LEVEL as a tracing filter, before the program does anything else.

Run by the functionalities that use it.

  • `most.core.settings.not-text` — HTTP 503, exit 1. reading the setting {name}: {name} is set but is not UTF-8 text, so it names no value. Observed: {name} holds bytes that are not UTF-8. Fix: set {name} to its value as text, or unset it, and start the program again. Provoked by `tests/server/startup.rs::a_setting_that_is_not_text_is_refused_naming_it`.
  • `most.core.settings.blank` — HTTP 503, exit 1. reading the setting {name}: {name} is set and holds only whitespace, so it names nothing, and unset it would mean {unset}. Observed: {name} is {value}. Fix: set {name} to its value, or unset it for {unset}, and start the program again. Provoked by `tests/server/startup.rs::a_stado_home_that_is_blank_is_refused`.
  • `most.core.settings.switch-invalid` — HTTP 503, exit 1. reading the switch {name}: {name} reads true or false exactly, and it holds another value. Observed: {name} is {value}: {error}. Fix: set {name}=true or {name}=false, or unset it for its default, and start the program again. Provoked by `tests/server/startup.rs::a_switch_that_is_neither_true_nor_false_is_refused_naming_its_value`.
  • `most.core.settings.log-level-invalid` — HTTP 503, exit 1. reading LOG_LEVEL: LOG_LEVEL is not a tracing filter, so no level of logging was chosen. Observed: LOG_LEVEL is {value}: {error}. Fix: set LOG_LEVEL to a level such as info, or a directive list such as most_server=debug,info, and start the program again. Provoked by `tests/server/startup.rs::a_log_level_that_is_not_a_filter_is_refused`.

most.core.alternatives#

Run `stado capabilities resolve FAMILY --consumer most --json` with the Stado under MOST_STADO_HOME (else HOME) and read the provider and route it hands out, for as long as its proof stands.

Run by the functionalities that use it.

  • `most.core.alternatives.home-unset` — HTTP 503, exit 1. asking Stado which alternative of {family} serves the {need}: neither MOST_STADO_HOME nor HOME names the home Stado is installed under, so Stado cannot be asked. Observed: MOST_STADO_HOME is unset or empty and HOME is {home}. Fix: set MOST_STADO_HOME (or HOME) to the home whose .stado/bin/stado resolves {family} for most, and start most-server again. Provoked by `tests/server/secrets.rs::a_server_without_a_home_cannot_read_its_bearer`.
  • `most.core.alternatives.stado-missing` — HTTP 503, exit 1. asking Stado which alternative of {family} serves the {need}: no Stado is installed in the home most-server reads, so Stado cannot be asked. Observed: no file at {path}. Fix: install Stado under that home, or set MOST_STADO_HOME to the home where it is installed, and start most-server again. Provoked by `tests/server/secrets.rs::a_server_on_a_host_without_stado_cannot_read_its_bearer`.
  • `most.core.alternatives.stado-unstartable` — HTTP 503, exit 1. running {command}: the system refused to start Stado's program. Observed: {path}: {error}; HOME={home}. Fix: run '{path} --version' as the user most-server runs as and repair what it says (its permissions, its architecture). Provoked by `tests/server/secrets.rs::a_server_whose_stado_cannot_start_cannot_read_its_bearer`.
  • `most.core.alternatives.none-answers` — HTTP 503, exit 69, and sending it again can help. asking Stado which alternative of {family} serves the {need}: no alternative of {family} answers most: Stado proved each in its order and named why each did not. Observed: '{command}' with HOME={home} exited {status}: {said}; Stado's cause {stado_cause}, its fix: {stado_fix}. Fix: repair what Stado names for each alternative ('stado capabilities list {family}' shows every proof), then ask again. Provoked by `tests/cli/service.rs::a_service_whose_secrets_no_alternative_answers_is_refused_as_retryable`.
  • `most.core.alternatives.resolution-refused` — HTTP 503, exit 1. asking Stado which alternative of {family} serves the {need}: Stado refused the resolution itself, so it proved no alternative: a Stado release without the family, or a consumer it does not take. Observed: '{command}' with HOME={home} exited {status}: {said}; Stado's cause {stado_cause}, its fix: {stado_fix}. Fix: run 'stado capabilities resolve {family} --consumer most --json' under the same home and repair what it answers; a release without the family is updated with 'stado release local install'. Provoked by `tests/server/onboarding.rs::a_control_plane_stado_does_not_serve_is_refused`.
  • `most.core.alternatives.resolution-unreadable` — HTTP 503, exit 1. asking Stado which alternative of {family} serves the {need}: Stado answered success with something that is not a resolution of {family} for most naming a provider and a route. Observed: {problem}; '{command}' with HOME={home} printed: {said}. Fix: update Stado on this host ('stado release local install') so 'stado capabilities resolve {family} --consumer most --json' answers family, consumer, provider and route. Provoked by `tests/server/secrets.rs::a_resolution_without_a_route_is_refused`.

most.core.database#

Open Most's PostgreSQL database: the one MOST_DATABASE_URL names, or the fleet database most that Stado resolves when it is unset.

Run by the functionalities that use it.

Uses: `most.core.settings`.

  • `most.core.database.url-empty` — HTTP 503, exit 1. opening the database MOST_DATABASE_URL names: MOST_DATABASE_URL is set but blank, so it names no database, and another one is never chosen in its place. Observed: MOST_DATABASE_URL is {value}. Fix: set MOST_DATABASE_URL to a postgres:// URL, or unset it so Stado's fleet database most is opened. Provoked by `tests/migrations/refusals.rs::a_blank_database_url_is_refused_before_anything_is_opened`.
  • `most.core.database.url-invalid` — HTTP 503, exit 1. opening the database MOST_DATABASE_URL names: MOST_DATABASE_URL is not a PostgreSQL connection URL. Observed: MOST_DATABASE_URL is {url}; the PostgreSQL driver answered: {error}. Fix: set MOST_DATABASE_URL to postgres://<user>:<password>@<host>:<port>/<database>. Provoked by `tests/migrations/refusals.rs::a_database_url_that_is_not_a_postgres_url_is_refused`.
  • `most.core.database.server-unreachable` — HTTP 503, exit 69, and sending it again can help. opening the database MOST_DATABASE_URL names: the PostgreSQL server it names did not answer, or broke off before a session opened. Observed: MOST_DATABASE_URL is {url}; the PostgreSQL driver answered: {error}. Fix: start the PostgreSQL server MOST_DATABASE_URL names, or correct its host and port, then run the command again. Provoked by `tests/migrations/refusals.rs::a_database_server_that_does_not_answer_is_refused_as_retryable`.
  • `most.core.database.server-refused` — HTTP 503, exit 1. opening the database MOST_DATABASE_URL names: the PostgreSQL server answered and refused the session: the role, its password or the database is not one it accepts. Observed: MOST_DATABASE_URL is {url}; the PostgreSQL server answered: {error}. Fix: correct the user, password or database in MOST_DATABASE_URL, or create that role and database on the server. Provoked by `tests/migrations/refusals.rs::a_database_server_that_refuses_the_session_is_refused`.
  • `most.core.database.home-unset` — HTTP 503, exit 1. finding the Stado that names the fleet database most: neither MOST_STADO_HOME nor HOME names the home Stado is installed under, and MOST_DATABASE_URL is unset. Observed: {homes}; stado-database stopped at step '{step}': {error}. Fix: set MOST_STADO_HOME (or HOME) to the home whose .stado/bin/stado resolves the fleet database, or set MOST_DATABASE_URL. Provoked by `tests/migrations/refusals.rs::no_home_and_no_database_url_is_refused_naming_both`.
  • `most.core.database.fleet-unresolved` — HTTP 503, exit 1. resolving the fleet database most through Stado ({step}): Stado could not name the database most, its Skarbiec route or the fields of its credential item for the consumer most. Observed: {homes}; stado-database, asked for the product most, stopped at step '{step}': {error}. Fix: run 'stado database resolve most --consumer most --json' under the same home and fix what it answers ('stado database grant most' for a consumer it refuses), or set MOST_DATABASE_URL. Provoked by `tests/migrations/refusals.rs::a_home_without_stado_is_refused_naming_the_resolver`.
  • `most.core.database.fleet-unreachable` — HTTP 503, exit 69, and sending it again can help. connecting to the fleet database most: Stado named the database, and its server did not answer or refused the session while Stado's wait ran. Observed: {homes}; stado-database, asked for the product most, stopped at step '{step}': {error}. Fix: run 'stado database resolve most --consumer most --json' to see where it is placed, bring that server back, then run the command again. Provoked by `tests/migrations/refusals.rs::a_fleet_database_that_does_not_answer_is_refused_as_retryable`.
  • `most.core.database.fleet-not-postgres` — HTTP 503, exit 1. opening the fleet database most: Stado placed the database most on an engine other than PostgreSQL, and Most's statements are PostgreSQL's. Observed: stado-database opened a {engine} database. Fix: place most on PostgreSQL ('stado database create most' with a Postgres provider), or set MOST_DATABASE_URL to a PostgreSQL database. Provoked by `tests/migrations/refusals.rs::a_fleet_database_on_another_engine_is_refused`.

most.core.migrations#

Apply the .sql files of a migrations directory, in name order, that a schema's history lacks: each file and its history row commit together or not at all.

Started through: `most-migrate apply [--migrations-dir <dir>] [--schema <name>]`.

Uses: `most.core.settings`, `most.core.database`.

  • `most.core.migrations.command-unknown` — HTTP 400, exit 2. reading most-migrate's command: most-migrate has one command, apply, and --version; it was given neither. Observed: the words were: {given}. Fix: run most-migrate apply [--migrations-dir <dir>] [--schema <name>]. Provoked by `tests/migrations/refusals.rs::a_command_other_than_apply_is_refused_as_usage`.
  • `most.core.migrations.argument-not-text` — HTTP 400, exit 2. reading the arguments of most-migrate: an argument is not UTF-8 text, so it names no command, option or directory most-migrate can record. Observed: the argument is {argument}. Fix: give every argument as UTF-8 text; rename a migrations directory whose name is not. Provoked by `tests/migrations/refusals.rs::an_argument_that_is_not_text_is_refused_as_usage`.
  • `most.core.migrations.argument-unknown` — HTTP 400, exit 2. reading the arguments of most-migrate apply: apply takes --migrations-dir <dir> and --schema <name>, each with its value; {argument} is neither, or has no value after it. Observed: unknown or incomplete argument: {argument}. Fix: run most-migrate apply [--migrations-dir <dir>] [--schema <name>]. Provoked by `tests/migrations/refusals.rs::an_unknown_or_incomplete_argument_is_refused_as_usage`.
  • `most.core.migrations.schema-invalid` — HTTP 400, exit 2. reading --schema: a schema is written into the SQL as it is, so it must be a lowercase letter, then lowercase letters, digits and underscores. Observed: invalid schema {schema}. Fix: give --schema a name such as most or qualification_1, or leave it out for most. Provoked by `tests/migrations/refusals.rs::a_schema_that_is_not_a_plain_name_is_refused_as_usage`.
  • `most.core.migrations.directory-absent` — HTTP 503, exit 1. reading migrations directory {dir}: nothing is at that path, so no migration was read and nothing was opened. Observed: listing {dir} ({given}) answered {kind}{os}: {error}. Fix: give --migrations-dir the migrations directory of the release (migrations/ beside most-migrate). Provoked by `tests/migrations/refusals.rs::a_migrations_directory_that_does_not_exist_is_refused`.
  • `most.core.migrations.directory-forbidden` — HTTP 503, exit 1. reading migrations directory {dir}: the user most-migrate runs as may not list the directory, so no migration was read and nothing was opened. Observed: listing {dir} ({given}) answered {kind}{os}: {error}. Fix: let that user read and enter {dir} ('ls -ld {dir}' shows its owner and mode), or give --migrations-dir a copy it can read. Provoked by `tests/migrations/refusals.rs::a_migrations_directory_this_user_may_not_list_is_refused`.
  • `most.core.migrations.directory-unreadable` — HTTP 503, exit 1. reading migrations directory {dir}: something is at that path and cannot be listed as a directory: it is a file, or the file system failed, so no migration was read and nothing was opened. Observed: listing {dir} ({given}) answered {kind}{os}: {error}. Fix: give --migrations-dir the migrations directory of the release (migrations/ beside most-migrate), not a file in it. Provoked by `tests/migrations/refusals.rs::a_migrations_directory_that_is_a_file_is_refused`.
  • `most.core.migrations.entry-unreadable` — HTTP 503, exit 1. reading an entry in migrations directory {dir}: the directory was opened and broke off while it was listed. Observed: {read} entries of {dir} were read before the next answered {kind}{os}: {error}. Fix: check the file system holding {dir} (a removed mount, an I/O error in the system log), then run apply again. Provoked by `tests/migrations/refusals.rs::a_directory_that_breaks_off_while_listed_is_refused`.
  • `most.core.migrations.metadata-unreadable` — HTTP 503, exit 1. reading migration metadata: an entry named *.sql cannot be inspected: a link to nothing, or a file this user may not see. Observed: {path}: {error}. Fix: remove {path} from the migrations directory, or restore the file it points to. Provoked by `tests/migrations/refusals.rs::a_migration_link_to_nothing_is_refused_naming_it`.
  • `most.core.migrations.not-a-file` — HTTP 503, exit 1. reading the migrations of the directory: an entry named *.sql is not a regular file, so it holds no SQL to apply. Observed: migration path is not a regular file: {path}. Fix: remove or rename {path}; every *.sql entry of the directory is a migration. Provoked by `tests/migrations/refusals.rs::a_directory_named_like_a_migration_is_refused`.
  • `most.core.migrations.name-not-text` — HTTP 503, exit 1. reading the migrations of the directory: a migration's file name is recorded in the history as text, and this one is not UTF-8. Observed: migration file name is not UTF-8: {path}. Fix: rename {path} to a UTF-8 name such as NNN_description.sql. Provoked by `tests/migrations/refusals.rs::a_migration_whose_name_is_not_text_is_refused`.
  • `most.core.migrations.file-unreadable` — HTTP 503, exit 1. reading migration {name}: its contents cannot be read as UTF-8 text, so nothing was opened or applied. Observed: {path}: {error}. Fix: make {path} readable by this user and save it as UTF-8 text. Provoked by `tests/migrations/refusals.rs::a_migration_this_user_cannot_read_is_refused_before_any_database`.
  • `most.core.migrations.history-refused` — HTTP 503, exit 1. creating or reading {schema}._schema_migrations: the database refused the statement: the role may not create the schema or its table, or the table there is not a migration history. Observed: the database answered: {error}. Fix: grant the role of the database most-migrate opens CREATE on the database and the schema {schema}, or give --schema a schema of its own. Provoked by `tests/migrations/refusals.rs::a_schema_the_role_may_not_create_is_refused`.
  • `most.core.migrations.migration-refused` — HTTP 403, exit 1. applying migration {name}: the database refused a statement of the file; this file was not committed; earlier files remain committed. Observed: the database answered: {error}. Fix: correct {name} so its statements run on the schema as the earlier files left it, then run apply again: the committed files are skipped. Provoked by `tests/migrations/refusals.rs::a_migration_the_database_refuses_leaves_earlier_files_committed`.
  • `most.core.migrations.record-refused` — HTTP 403, exit 1. recording migration {name} in {schema}._schema_migrations: the database refused opening, recording or committing the file's transaction; this file was not committed; earlier files remain committed. Observed: the database answered: {error}. Fix: check that {schema}._schema_migrations is the table most-migrate created (name TEXT PRIMARY KEY, applied_at TIMESTAMPTZ), then run apply again. Provoked by `tests/migrations/refusals.rs::a_history_the_database_refuses_to_record_in_is_refused`.
  • `most.core.migrations.connection-lost` — HTTP 503, exit 69, and sending it again can help. {doing}: the database broke off or stopped answering while it ran; the file in flight was not committed; earlier files remain committed. Observed: the PostgreSQL driver answered: {error}. Fix: bring the database back and run apply again: the committed files are skipped. Provoked by `tests/migrations/refusals.rs::a_database_that_breaks_off_during_apply_is_refused_as_retryable`.

most.core.storage#

Read or write one kind of row (chats, messages, attachments, calls, webhook subscriptions and the outbox, workers, locations, adopted accounts) in the storage the composition opened.

Run by the functionalities that use it.

  • `most.core.storage.database-unreachable` — HTTP 503, exit 69, and sending it again can help. a read or write of Most's storage: the database did not answer: a connection to it could not be opened or broke off (refused, reset, no route to its host), or none could be had within the pool's wait, which the driver reports alike for a database that refuses every new connection and for a pool whose connections all stay busy, so nothing was read or kept. Observed: {part} failed: {error}. Fix: start or reach the database most-server writes to (MOST_DATABASE_URL, or the fleet database most: 'stado database resolve most --consumer most --json'), then send the request again; when 'psql' reaches it and the wait still expires, the database is too slow for this load: read its log for long statements and locks. Provoked by `tests/server/storage.rs::a_database_that_stops_answering_is_refused_as_retryable`.
  • `most.core.storage.database-tls-failed` — HTTP 503, exit 69, and sending it again can help. a read or write of Most's storage: the TLS session with the database failed: its certificate is not one this host trusts, or the handshake broke off, so nothing was read or kept. Observed: the PostgreSQL pool answered: {error}. Fix: check the certificate and sslmode of the database most-server writes to (MOST_DATABASE_URL, or the fleet database most: 'stado database resolve most --consumer most --json'), then send the request again. Provoked by `tests/server/storage.rs::a_database_whose_tls_fails_is_refused_as_retryable`.
  • `most.core.storage.pool-closed` — HTTP 503, exit 69, and sending it again can help. a read or write of Most's storage: most-server's pool was already closed, as it is while the server drains on a stop signal, so the statement never ran. Observed: the PostgreSQL pool answered: {error}. Fix: send the request again once most-server has started again ('most-cli health' answers when it serves). Provoked by `tests/server/storage.rs::a_statement_after_the_pool_closed_is_refused_as_retryable`.
  • `most.core.storage.protocol-broken` — HTTP 503, exit 1. a read or write of Most's storage: what answered at the database's address did not speak PostgreSQL's wire protocol: another service listens there, or a proxy broke the stream. Observed: the PostgreSQL pool answered: {error}. Fix: point most-server at its PostgreSQL database (MOST_DATABASE_URL, or the fleet database most: 'stado database resolve most --consumer most --json' names its host and port), then start it again. Provoked by `tests/server/storage.rs::a_peer_that_is_not_postgres_is_refused`.
  • `most.core.storage.driver-failed` — HTTP 503, exit 69, and sending it again can help. a read or write of Most's storage: the PostgreSQL driver failed in a part of its own (its background worker ended), not in an answer of the database. Observed: the PostgreSQL pool answered: {error}. Fix: send the request again; when it repeats, restart most-server through its supervisor and report the observed error with 'most-cli health''s revision. Provoked by `tests/server/storage.rs::a_driver_that_fails_on_its_own_is_refused_as_retryable`.
  • `most.core.storage.database-unavailable` — HTTP 503, exit 69, and sending it again can help. a read or write of Most's storage: the database could not run the statement now: it is short of resources, shutting down, or rolled the transaction back to resolve a conflict. Observed: SQLSTATE {code}: {message}. Fix: send the request again; if it keeps failing, read the database's own log for SQLSTATE {code}. Provoked by `tests/server/storage.rs::a_database_that_cannot_run_a_statement_now_is_refused_as_retryable`.
  • `most.core.storage.schema-mismatch` — HTTP 503, exit 1. a read or write of Most's storage: the database lacks a table, column or function this release reads, so its migrations are not the ones this release was built with. Observed: SQLSTATE {code}: {message}. Fix: apply this release's migrations to the database most-server opens ('most-migrate apply'), then send the request again. Provoked by `tests/server/storage.rs::a_database_without_the_migrations_is_refused_as_configuration`.
  • `most.core.storage.access-refused` — HTTP 503, exit 1. a read or write of Most's storage: the database role most-server signs in as may not read or write this table. Observed: SQLSTATE {code}: {message}. Fix: grant the role in MOST_DATABASE_URL (or of the fleet database most) the privileges 'most-migrate apply' gives Most's own role, or connect as that role. Provoked by `tests/server/storage.rs::a_role_without_privileges_is_refused_as_configuration`.
  • `most.core.storage.constraint-refused` — HTTP 403, exit 1. a read or write of Most's storage: the write would break a rule the stored rows keep: a row with the same key exists, or a row it points to does not. Observed: SQLSTATE {code}: {message}. Fix: send the request with an id the stored rows do not already hold, or create the row it points to first. Provoked by `tests/server/storage.rs::a_write_that_breaks_a_stored_rule_is_refused`.
  • `most.core.storage.statement-refused` — HTTP 403, exit 1. a read or write of Most's storage: the database refused the statement with an SQLSTATE class none of the other causes covers. Observed: SQLSTATE {code}: {message}. Fix: look SQLSTATE {code} up in PostgreSQL's error codes and repair what it names in the database most-server opens. Provoked by `tests/server/storage.rs::a_statement_the_database_refuses_names_its_sqlstate`.
  • `most.core.storage.row-unreadable` — HTTP 503, exit 1. a read or write of Most's storage: a row the database returned does not have the columns or types this release reads, so its migrations are not the ones this release was built with. Observed: the PostgreSQL driver, reading a row the statement returned, answered: {error}. Fix: apply this release's migrations ('most-migrate apply'), or run the release the database was migrated for. Provoked by `tests/server/storage.rs::a_row_of_another_shape_is_refused_as_configuration`.
  • `most.core.storage.value-unknown` — HTTP 503, exit 1. a read or write of Most's storage: a stored {column} holds a value this release does not know, written by another release. Observed: {column} is {value}. Fix: run the release that wrote {value}, or correct the stored {column} to one this release knows. Provoked by `tests/server/storage.rs::a_stored_value_this_release_does_not_know_is_refused`.
  • `most.core.storage.row-absent` — HTTP 404, exit 1. a write beneath a row of Most's storage: the row the write belongs to does not exist. Observed: no {row} is stored. Fix: create the row first (place the call, create the chat), then write beneath it. Provoked by `tests/server/storage.rs::a_write_beneath_a_row_that_is_gone_is_refused`.
  • `most.core.storage.unsupported` — HTTP 503, exit 1. a read or write of Most's storage: the storage this composition opened does not keep {kind}. Observed: the storage answered that it does not implement {kind}. Fix: start most-server with a composition whose storage keeps {kind}: the memory store of dev-sms, dev-mac, dev-all, dev-remote and dev-direct-apple, or PostgreSQL in prod. Provoked by `tests/server/storage.rs::a_storage_without_a_kind_of_row_is_refused_as_configuration`.

most.core.backend#

Pick the backend a new chat is created on, or the worker a chat is pinned to, and hand it the request.

Run by the functionalities that use it.

Uses: `most.core.storage`.

  • `most.core.backend.no-backend` — HTTP 501, exit 1. choosing the backend the request goes to: no backend this composition registered serves it. Observed: no registered backend serves {service}. Fix: start most-server with a composition whose backends serve {service} (dev-sms or prod for SMS and RCS, dev-mac or prod on a Mac for iMessage), or ask for another preferred_service. Provoked by `tests/server/requests.rs::a_new_chat_on_a_server_without_backends_is_refused_as_configuration`.
  • `most.core.backend.typing-unsupported` — HTTP 501, exit 1. showing a typing indicator: the {backend} backend that carries the chat has no typing indicator. Observed: chat carried by {backend}. Fix: show typing on a chat an iMessage backend carries; SMS and RCS have no typing indicator. Provoked by `tests/server/twilio.rs::typing_on_an_sms_chat_is_refused`.
  • `most.core.backend.edit-unsupported` — HTTP 501, exit 1. editing a sent message: the {backend} backend that carries the chat cannot edit a sent message. Observed: chat carried by {backend}. Fix: edit messages of a chat the mac-relay pool carries; send a correction as a new message otherwise. Provoked by `tests/server/twilio.rs::an_edit_on_an_sms_chat_is_refused`.
  • `most.core.backend.unsend-unsupported` — HTTP 501, exit 1. unsending a sent message: the {backend} backend that carries the chat cannot unsend a message. Observed: chat carried by {backend}. Fix: unsend messages of a chat the mac-relay pool carries; an SMS or RCS once sent cannot be taken back. Provoked by `tests/server/twilio.rs::an_unsend_on_an_sms_chat_is_refused`.
  • `most.core.backend.voice-unsupported` — HTTP 501, exit 1. sending a voice message: the {backend} backend that carries the chat cannot send a voice message. Observed: chat carried by {backend}. Fix: send voice messages on a chat the mac-relay pool carries; send text on this one. Provoked by `tests/server/twilio.rs::a_voice_message_on_an_sms_chat_is_refused`.
  • `most.core.backend.reactions-unsupported` — HTTP 501, exit 1. sending a reaction: the {backend} backend that carries the chat has no reactions. Observed: chat carried by {backend}. Fix: react on a chat an iMessage backend carries; SMS and RCS chats take text only. Provoked by `tests/server/twilio.rs::a_reaction_on_an_sms_chat_is_refused`.
  • `most.core.backend.chat-absent` — HTTP 404, exit 1. finding chat {chat}: no chat with that id is stored. Observed: storage holds no chat {chat}. Fix: name a chat 'POST /v3/chats' created, or create one. Provoked by `tests/server/requests.rs::a_chat_that_does_not_exist_is_refused_as_absent`.
  • `most.core.backend.worker-offline` — HTTP 503, exit 69, and sending it again can help. finding the worker chat {chat} is pinned to: the chat is pinned to a worker that is not connected, and a pinned chat is never moved to another worker. Observed: chat {chat} is pinned to worker {worker}. Fix: start the worker {worker} again so it connects; send the request again once it has. Provoked by `tests/server/requests.rs::a_chat_pinned_to_a_worker_that_is_gone_is_refused_as_retryable`.
  • `most.core.backend.no-worker` — HTTP 503, exit 69, and sending it again can help. choosing a worker of pool {kind} for a new chat: every worker of the pool is at capacity, unhealthy or unregistered. Observed: pool {kind} has no worker that can take a chat. Fix: send the request again once a worker of {kind} has room or connects. Provoked by `tests/server/requests.rs::a_new_chat_on_a_pool_without_workers_is_refused_as_retryable`.

most.core.message_body#

Check the recipients, the message parts, the sender appearance, the voice message and the reaction a body names before anything is sent.

Started through: `POST /v3/chats`, `POST /v3/chats/{chat_id}/messages`, `POST /v3/chats/{chat_id}/voice`, `POST /v3/chats/{chat_id}/voice-from-text`, `POST /v3/chats/{chat_id}/reactions`.

  • `most.core.message_body.recipients-empty` — HTTP 422, exit 2. reading to: to: list should have at least 1 item. Observed: the body sent {field} as {value}. Fix: name at least one recipient handle in to, such as +48601234567. Provoked by `tests/server/bodies.rs::a_chat_to_nobody_is_refused`.
  • `most.core.message_body.parts-empty` — HTTP 422, exit 2. reading message.parts: parts: list should have at least 1 item. Observed: the body sent {field} as {value}. Fix: send at least one part, such as {"type": "text", "value": "hello"}. Provoked by `tests/server/bodies.rs::a_message_without_parts_is_refused`.
  • `most.core.message_body.display-name-blank` — HTTP 422, exit 2. reading sender_appearance.display_name: display_name must not be blank. Observed: the body sent {field} as {value}. Fix: send the name the recipient sees, or leave display_name out. Provoked by `tests/server/bodies.rs::a_blank_display_name_is_refused`.
  • `most.core.message_body.picture-blank` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: profile_picture_url must not be blank. Observed: the body sent {field} as {value}. Fix: send the picture's https:// URL, or leave profile_picture_url out. Provoked by `tests/server/bodies.rs::a_blank_profile_picture_is_refused`.
  • `most.core.message_body.picture-not-url` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: profile_picture_url {value} is not a URL: it names no scheme, so it is a relative reference with no address to fetch. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send the picture's absolute https:// URL, scheme and host included. Provoked by `tests/server/bodies.rs::a_profile_picture_that_is_not_a_url_is_refused`.
  • `most.core.message_body.picture-host-invalid` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: profile_picture_url {value} names a host that is empty or is not a domain name or IP address a URL can hold. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send the picture's URL with the host it is served from, such as https://images.example.com/me.png. Provoked by `tests/server/bodies.rs::a_profile_picture_whose_host_is_no_name_is_refused`.
  • `most.core.message_body.picture-port-invalid` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: profile_picture_url {value} names a port that is not a whole number from 0 to 65535. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send the picture's URL with the port it is served on, or without a port. Provoked by `tests/server/bodies.rs::a_profile_picture_whose_port_is_no_number_is_refused`.
  • `most.core.message_body.picture-unparsed` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: the URL parser refuses profile_picture_url {value} for a reason this release of Most does not name (neither a missing scheme, a host nor a port). Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send the picture's absolute https:// URL; the parser's words in observed say what of it is refused. Provoked by `tests/server/bodies.rs::a_profile_picture_the_parser_refuses_otherwise_is_refused`.
  • `most.core.message_body.picture-not-web` — HTTP 422, exit 2. reading sender_appearance.profile_picture_url: profile_picture_url {value} must be an absolute http(s) URL with a host. Observed: the body sent {field} as {value}. Fix: send the picture's absolute https:// URL. Provoked by `tests/server/bodies.rs::a_profile_picture_off_the_web_is_refused`.
  • `most.core.message_body.appearance-empty` — HTTP 422, exit 2. reading sender_appearance: sender_appearance requires display_name or profile_picture_url. Observed: the body sent {field} as {value}. Fix: send display_name, profile_picture_url or both, or leave sender_appearance out. Provoked by `tests/server/bodies.rs::an_empty_sender_appearance_is_refused`.
  • `most.core.message_body.audio-path-empty` — HTTP 422, exit 2. reading audio_path: audio_path: string should have at least 1 character. Observed: the body sent {field} as {value}. Fix: send the path of the audio file on the host that sends the voice message. Provoked by `tests/server/bodies.rs::a_voice_message_without_audio_is_refused`.
  • `most.core.message_body.speech-text-empty` — HTTP 422, exit 2. reading text: text: must not be empty. Observed: the body sent {field} as {value}. Fix: send the text to speak into the voice message. Provoked by `tests/server/bodies.rs::a_voice_message_from_no_text_is_refused`.
  • `most.core.message_body.glyph-missing` — HTTP 422, exit 2. reading glyph: glyph is required when reaction=='emoji' (pass the unicode emoji character, e.g. '🔥'). Observed: the body sent {field} as {value}. Fix: send glyph with the emoji, or name a tapback in reaction. Provoked by `tests/server/bodies.rs::an_emoji_reaction_without_a_glyph_is_refused`.
  • `most.core.message_body.glyph-unexpected` — HTTP 422, exit 2. reading glyph: glyph is only allowed when reaction=='emoji' (got reaction={reaction}). Observed: the body sent {field} as {value}. Fix: leave glyph out of a tapback, or send reaction emoji with it. Provoked by `tests/server/bodies.rs::a_tapback_with_a_glyph_is_refused`.

most.core.webhook_body#

Check a webhook subscription's target_url, subscribed_events and signing_secret before anything is stored.

Started through: `POST /v3/webhook-subscriptions`.

  • `most.core.webhook_body.target-not-url` — HTTP 422, exit 2. reading target_url: target_url {value} is not a URL: it names no scheme, so it is a relative reference with no receiver to send to. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send target_url as an absolute URL such as https://hooks.example.com/most. Provoked by `tests/server/bodies.rs::a_target_that_is_not_a_url_is_refused`.
  • `most.core.webhook_body.target-host-invalid` — HTTP 422, exit 2. reading target_url: target_url {value} names a host that is empty or is not a domain name or IP address a URL can hold. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send target_url with the receiver's host, such as https://hooks.example.com/most. Provoked by `tests/server/bodies.rs::a_target_whose_host_is_no_name_is_refused`.
  • `most.core.webhook_body.target-port-invalid` — HTTP 422, exit 2. reading target_url: target_url {value} names a port that is not a whole number from 0 to 65535. Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send target_url with the port the receiver listens on, or without a port for the scheme's own. Provoked by `tests/server/bodies.rs::a_target_whose_port_is_no_number_is_refused`.
  • `most.core.webhook_body.target-unparsed` — HTTP 422, exit 2. reading target_url: the URL parser refuses target_url {value} for a reason this release of Most does not name (neither a missing scheme, a host nor a port). Observed: the body sent {field} as {value}; the URL parser said {error}. Fix: send target_url as an absolute https:// URL; the parser's words in observed say what of it is refused. Provoked by `tests/server/bodies.rs::a_target_the_parser_refuses_otherwise_is_refused`.
  • `most.core.webhook_body.target-scheme` — HTTP 422, exit 2. reading target_url: target_url {value} uses the {scheme} scheme; webhooks are sent over https://, or over http:// to a host on this machine or its network. Observed: the body sent {field} as {value}. Fix: send target_url as an https:// URL. Provoked by `tests/server/bodies.rs::a_target_on_another_scheme_is_refused`.
  • `most.core.webhook_body.target-public-http` — HTTP 422, exit 2. reading target_url: target_url {value} sends over http:// to {host}, which is neither localhost nor a loopback, private or link-local address. Observed: the body sent {field} as {value}. Fix: use https:// for a receiver outside this machine and its network. Provoked by `tests/server/bodies.rs::an_http_target_outside_this_network_is_refused`.
  • `most.core.webhook_body.events-empty` — HTTP 422, exit 2. reading subscribed_events: subscribed_events: list should have at least 1 item. Observed: the body sent {field} as {value}. Fix: name at least one event, such as message.received. Provoked by `tests/server/bodies.rs::a_subscription_to_no_event_is_refused`.
  • `most.core.webhook_body.events-unknown` — HTTP 422, exit 2. reading subscribed_events: unknown subscribed_events: {unknown}, a name no event Most delivers carries. Allowed: {allowed}. Observed: the body sent {field} as {value}. Fix: name only events the allowed list holds, spelled as listed ('message.reaction', not 'reaction'). Provoked by `tests/server/bodies.rs::a_subscription_to_an_event_most_does_not_deliver_is_refused`.
  • `most.core.webhook_body.events-unsubscribable` — HTTP 422, exit 2. reading subscribed_events: subscribed_events names {unsubscribable}, an event Most knows but delivers to no subscriber. Allowed: {allowed}. Observed: the body sent {field} as {value}. Fix: leave {unsubscribable} out and name only events the allowed list holds. Provoked by `tests/server/bodies.rs::a_subscription_to_an_event_that_cannot_be_subscribed_is_refused`.
  • `most.core.webhook_body.secret-short` — HTTP 422, exit 2. reading signing_secret: signing_secret is {length} bytes; an HMAC-SHA256 key is at least the hash's {floor}-byte output (RFC 2104 section 3). Observed: the body sent a signing_secret of {length} bytes. Fix: send a signing_secret of at least {floor} bytes, or leave it out and Most draws one. Provoked by `tests/server/bodies.rs::a_signing_secret_shorter_than_the_hash_is_refused`.

most.core.call_body#

Check the number, the line to speak and its language a call body names before the provider is asked for anything.

Started through: `POST /v3/calls`, `POST /v3/calls/{call_id}/answer`, `POST /v3/calls/{call_id}/say`.

  • `most.core.call_body.number-invalid` — HTTP 422, exit 2. reading to: to must be a phone number in E.164 form: a plus sign followed by digits, such as +48601234567. Observed: the body sent {field} as {value}. Fix: send to as + and the country code and number, digits only. Provoked by `tests/server/bodies.rs::a_call_to_a_number_that_is_not_e164_is_refused`.
  • `most.core.call_body.say-empty` — HTTP 422, exit 2. reading say: say must not be empty. Observed: the body sent {field} as {value}. Fix: send the first line the call speaks in say. Provoked by `tests/server/bodies.rs::a_call_with_nothing_to_say_is_refused`.
  • `most.core.call_body.text-empty` — HTTP 422, exit 2. reading text: text must not be empty. Observed: the body sent {field} as {value}. Fix: send the line to speak in text. Provoked by `tests/server/bodies.rs::saying_nothing_on_a_call_is_refused`.
  • `most.core.call_body.language-invalid` — HTTP 422, exit 2. reading language: language must be a BCP 47 tag such as pl-PL: letters and digits in parts joined by hyphens. Observed: the body sent {field} as {value}. Fix: send language as a BCP 47 tag such as en-US or pl-PL, or leave it out for the provider's default. Provoked by `tests/server/bodies.rs::a_call_language_that_is_not_a_tag_is_refused`.

most.core.onboarding#

Start or resume this device's first-use journey from its state file, report it to the control plane `stado capabilities resolve onboarding-events --consumer most` hands out when MOST_STADO_INTEGRATION_TOKEN is set, and show, reset or complete it.

Run by the functionalities that use it.

Uses: `most.core.settings`, `most.core.alternatives`.

  • `most.core.onboarding.home-unknown` — HTTP 503, exit 1. finding where this device's first-use progress is kept: MOST_ONBOARDING_STATE_PATH is unset and neither HOME nor the user database names a home directory. Observed: no home directory is known to most-server. Fix: set MOST_ONBOARDING_STATE_PATH to a file most-server may write, or run it with HOME set. Provoked by `tests/server/onboarding.rs::a_journey_without_a_home_is_refused`.
  • `most.core.onboarding.subject-unset` — HTTP 503, exit 1. keying this device's first-use progress: neither MOST_ONBOARDING_SUBJECT nor USER is set, so the progress has no subject to be kept under; a fixed stand-in would key every such install's progress as one. Observed: MOST_ONBOARDING_SUBJECT and USER are both unset in most-server's environment; the state file is {path}. Fix: set MOST_ONBOARDING_SUBJECT to a name for this device (an install whose progress an older release kept under the stand-in most-service sets MOST_ONBOARDING_SUBJECT=most-service), or run most-server with USER set. Provoked by `tests/server/onboarding.rs::a_journey_without_a_subject_is_refused`.
  • `most.core.onboarding.control-plane-unsupported` — HTTP 503, exit 1. choosing the onboarding control plane Stado hands out: Stado handed out an onboarding-events alternative Most cannot report to: Most reports to Wisent Integrations' onboarding domain. Observed: provider {provider} at {route}. Fix: put wisent-integrations first in the order ('stado capabilities select onboarding-events --order wisent-integrations'), or unset MOST_STADO_INTEGRATION_TOKEN so the journey runs offline. Provoked by `tests/server/onboarding.rs::a_control_plane_of_another_provider_is_refused`.
  • `most.core.onboarding.control-plane-invalid` — HTTP 503, exit 1. choosing the onboarding control plane Stado hands out: the address Stado hands out is not an https:// origin with the path / and no user, query or fragment. Observed: the address is {url}; the journey client answered: {error}. Fix: set the onboarding domain's origin with 'stado config set capabilities.onboarding-events.url https://integrations.example.com/' on this host. Provoked by `tests/server/onboarding.rs::a_control_plane_that_is_not_an_origin_is_refused`.
  • `most.core.onboarding.bundle-unreadable` — HTTP 403, exit 1. reading the first-use journey this release carries: the journey compiled into this release does not parse as the journey client's bundle. Observed: the journey client answered: {error}. Fix: install a Most release built from a revision whose first-use journey and client agree. Provoked by `tests/server/onboarding.rs::a_release_whose_journey_does_not_parse_is_refused`.
  • `most.core.onboarding.journey-invalid` — HTTP 403, exit 1. {doing} the first-use journey: the journey client refused the journey or its recorded progress as invalid: a bundle of another journey version, or progress that does not fit it. Observed: the journey client answered: {error}. Fix: reset the journey ('POST /v3/onboarding/first-use/reset'); when the control plane serves another journey version, install the Most release that carries it. Provoked by `tests/server/onboarding.rs::a_journey_of_another_version_is_refused`.
  • `most.core.onboarding.control-plane-unavailable` — HTTP 503, exit 69, and sending it again can help. {doing} the first-use journey: the onboarding control plane did not answer, answered an HTTP error or an envelope the client could not read. Observed: the journey client answered: {error}. Fix: send the request again; when it keeps failing, check the control plane 'stado capabilities list onboarding-events' names and the token MOST_STADO_INTEGRATION_TOKEN holds. Provoked by `tests/server/onboarding.rs::a_control_plane_that_does_not_answer_is_refused_as_retryable`.
  • `most.core.onboarding.state-unavailable` — HTTP 503, exit 1. {doing} the first-use journey: the journey's state file or its lock cannot be read or written. Observed: the state is {path}; the journey client answered: {error}. Fix: let most-server's user create and write {path} (its directory must be a directory), or set MOST_ONBOARDING_STATE_PATH to a file it may write. Provoked by `tests/server/onboarding.rs::a_journey_whose_state_cannot_be_written_is_refused`.
  • `most.core.onboarding.progress-absent` — HTTP 403, exit 1. {doing} the first-use journey: the journey client holds no progress after it started the attempt. Observed: the journey client answered: {error}. Fix: reset the journey ('POST /v3/onboarding/first-use/reset'), which starts the attempt again. Provoked by `tests/server/onboarding.rs::a_client_without_progress_is_refused`.
  • `most.core.onboarding.screen-absent` — HTTP 403, exit 1. {doing} the first-use journey: the recorded progress stands on a screen the journey does not have. Observed: the progress stands on {screen}. Fix: reset the journey ('POST /v3/onboarding/first-use/reset'), which starts it from its first screen. Provoked by `tests/server/onboarding.rs::progress_on_a_screen_the_journey_lacks_is_refused`.

most.core.secrets#

Read one secret a setting names as ITEM#FIELD from the credential store `stado capabilities resolve secrets --consumer most` hands out: Skarbiec, through the workload acquisition signed with SKARBIEC_WORKLOAD_SIGNING_KEY_FILE, or the owner-only file store, through `stado credentials get`.

Run by the functionalities that use it.

Uses: `most.core.alternatives`.

  • `most.core.secrets.reference-invalid` — HTTP 503, exit 1. reading the secret {variable} names: {variable} is set and is not ITEM#FIELD: an item id or role:ROLE, '#', and the field holding the secret, with no space, NUL or second '#'. Observed: {variable} is {value}. Fix: set {variable} to the item and field the secret is kept in, such as role:most-agent-api#token, or unset it. Provoked by `tests/server/secrets.rs::a_secret_that_is_not_item_and_field_is_refused_naming_its_variable`.
  • `most.core.secrets.provider-unsupported` — HTTP 503, exit 1. asking Stado which credential store holds the {name}: Stado handed out a secrets alternative Most cannot read: Most reads Skarbiec and the owner-only file store. Observed: provider {provider} at {route}. Fix: put skarbiec or owner-file first in the secrets order ('stado capabilities select secrets --order skarbiec,owner-file'), or update Most to a release that reads {provider}. Provoked by `tests/server/secrets.rs::a_provider_most_does_not_read_is_refused`.
  • `most.core.secrets.workload-unset` — HTTP 503, exit 1. proving Most's workload to Skarbiec at {route}: Skarbiec hands a secret only to a workload that signs for it, and the workload or its key is not declared. Observed: {unset} is unset. Fix: set SKARBIEC_WORKLOAD_ID to the workload the Skarbiec grant for most names and SKARBIEC_WORKLOAD_SIGNING_KEY_FILE to its Ed25519 key, and start most-server again. Provoked by `tests/server/secrets.rs::a_skarbiec_read_without_a_workload_is_refused`.
  • `most.core.secrets.workload-id-invalid` — HTTP 503, exit 1. reading SKARBIEC_WORKLOAD_ID: SKARBIEC_WORKLOAD_ID holds a NUL or a line break, which no workload id Skarbiec issues does. Observed: SKARBIEC_WORKLOAD_ID is {value}. Fix: set SKARBIEC_WORKLOAD_ID to the workload id the Skarbiec grant for most names, or unset it. Provoked by `tests/server/secrets.rs::a_workload_id_with_a_line_break_is_refused`.
  • `most.core.secrets.key-path-relative` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the path is relative, so which file it names depends on the directory most-server was started in. Observed: SKARBIEC_WORKLOAD_SIGNING_KEY_FILE is {path}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_relative_workload_key_path_is_refused`.
  • `most.core.secrets.key-uninspectable` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the file cannot be inspected: it does not exist, or a folder on its path cannot be entered. Observed: {path}: {error}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_that_does_not_exist_is_refused`.
  • `most.core.secrets.key-not-file` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the path is a symbolic link or not a regular file, and a key is read only from a regular file it names itself. Observed: {path} is {kind}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_that_is_a_symlink_is_refused`.
  • `most.core.secrets.key-unreadable` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the file exists and cannot be read by the user most-server runs as. Observed: {path}: {error}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_that_cannot_be_read_is_refused`.
  • `most.core.secrets.key-shared` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the file belongs to another user or others may read or write it, so the key is not this workload's alone. Observed: {path} is owned by uid {owner} with mode {mode}; most-server runs as uid {euid}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_others_can_read_is_refused`.
  • `most.core.secrets.key-malformed` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the file is text and not a PKCS#8 PEM Ed25519 private key (and not 32 raw bytes either). Observed: {path} of {bytes} bytes is not a PKCS#8 Ed25519 key: the PEM reader said {error}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_that_is_not_ed25519_is_refused`.
  • `most.core.secrets.key-not-text` — HTTP 503, exit 1. reading the workload signing key SKARBIEC_WORKLOAD_SIGNING_KEY_FILE names: the file holds neither 32 raw bytes nor text, so it is no PKCS#8 PEM Ed25519 private key. Observed: {path} holds {bytes} bytes, not UTF-8 from byte {offset}. Fix: write the workload's Ed25519 private key to an absolute path as a regular file (PKCS#8 PEM, or its 32 raw bytes) owned by the user most-server runs as, 'chmod 600' it, and point SKARBIEC_WORKLOAD_SIGNING_KEY_FILE at it. Provoked by `tests/server/secrets.rs::a_workload_key_of_other_bytes_is_refused`.
  • `most.core.secrets.skarbiec-unreachable` — HTTP 503, exit 69, and sending it again can help. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec did not answer at the route Stado handed out: no connection, or the answer broke off. Observed: POST {url}: {error}. Fix: send the request again: Most asks Stado again with skarbiec reported failed, so it is proven anew or the next alternative answers. Provoked by `tests/server/secrets.rs::a_skarbiec_that_does_not_answer_is_refused_as_retryable`.
  • `most.core.secrets.grant-refused` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec holds no grant for consumer most that lets workload {workload} acquire {item}#{field}, or the proof does not verify against the key the grant registered. Observed: POST {url} answered HTTP {status}: {said}. Fix: on the host that owns the vault run 'skarbiec grant issue most --capabilities acquire:{item}#{field} --until-revoked --workload-public-key-file <the public half of SKARBIEC_WORKLOAD_SIGNING_KEY_FILE>', then send the request again. Provoked by `tests/server/secrets.rs::a_skarbiec_without_a_grant_for_the_secret_is_refused`.
  • `most.core.secrets.field-absent` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): the item Skarbiec holds has no field {field}. Observed: POST {url} answered HTTP {status}: {said}. Fix: store the secret in field {field} of {item}, or name the field it is kept in. Provoked by `tests/server/secrets.rs::a_secret_whose_field_is_absent_is_refused`.
  • `most.core.secrets.skarbiec-unavailable` — HTTP 503, exit 69, and sending it again can help. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec answered that it could not serve the acquisition on its side. Observed: POST {url} answered HTTP {status}: {said}. Fix: send the request again; when it keeps failing, Skarbiec's log names what it could not read. Provoked by `tests/server/secrets.rs::a_skarbiec_failing_on_its_side_is_refused_as_retryable`.
  • `most.core.secrets.request-refused` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec refused the form of Most's request, so the acquisition contract the two sides follow differs. Observed: POST {url} answered HTTP {status}: {said}. Fix: update Most and Skarbiec to releases that follow the same SKARBIEC-WORKLOAD-ACQUISITION v1 contract. Provoked by `tests/server/secrets.rs::a_skarbiec_refusing_the_request_form_is_refused`.
  • `most.core.secrets.token-refused` — HTTP 504, exit 69, and sending it again can help. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec refused the one-read token it had just issued: it expired or was spent before the read. Observed: POST {url} answered HTTP {status}: {said}. Fix: send the request again: each read acquires a new token. Provoked by `tests/server/secrets.rs::a_token_spent_before_its_read_is_refused_as_retryable`.
  • `most.core.secrets.answer-unreadable` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec answered success with a body that is not JSON, so it carries no {expected}. Observed: POST {url} answered HTTP {status} with {length} bytes; serde_json said {error} at line {line}, column {column}. Fix: check that the route Stado hands out for skarbiec ('stado capabilities list secrets') names Skarbiec and not another service. Provoked by `tests/server/secrets.rs::a_skarbiec_answer_without_its_value_is_refused`.
  • `most.core.secrets.answer-not-object` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec answered success with JSON that is {kind}, not the object carrying the {expected} its contract promises. Observed: POST {url} answered HTTP {status} with {length} bytes of JSON {kind}. Fix: check that the route Stado hands out for skarbiec ('stado capabilities list secrets') names Skarbiec and not another service. Provoked by `tests/server/secrets.rs::a_skarbiec_answer_that_is_not_an_object_is_refused`.
  • `most.core.secrets.answer-field-missing` — HTTP 503, exit 1. acquiring {item}#{field} from Skarbiec at {route} ({step}): Skarbiec answered success with an object that carries no text {expected}, which its contract promises. Observed: the object answered for {step} carries the keys {keys} (their values are not shown). Fix: check that the route Stado hands out for skarbiec ('stado capabilities list secrets') names a Skarbiec of the contract Most reads ('/v1/acquisitions' answers token, '/v1/acquisitions/read' answers value). Provoked by `tests/server/secrets.rs::a_skarbiec_answer_without_its_field_is_refused`.
  • `most.core.secrets.store-read-refused` — HTTP 503, exit 1. reading {item}#{field} from the owner-only file store {route}: Stado refused the read: the store has no such item or field, or cannot be opened. Observed: '{command}' with HOME={home} and STADO_CREDENTIALS_STORE={route} exited {status}: {said}; Stado's cause {stado_cause}, its fix: {stado_fix}. Fix: run '{command}' with HOME={home} and STADO_CREDENTIALS_STORE={route} and repair what it answers. Provoked by `tests/server/secrets.rs::a_file_store_without_the_item_is_refused`.
  • `most.core.secrets.secret-empty` — HTTP 503, exit 1. reading {item}#{field} from {provider} at {route}: the store answered an empty value, and an empty secret would let nothing in and sign nothing. Observed: {provider} answered {item}#{field} with nothing but whitespace. Fix: store the secret in field {field} of {item}. Provoked by `tests/server/secrets.rs::an_empty_secret_is_refused`.

most.core.sealing#

Seal a webhook subscription's signing secret with AES-256-GCM under the 64-hex-character key MOST_WEBHOOK_SEAL_SECRET names (read through the credential store Stado hands out) or MOST_WEBHOOK_SEAL_KEY_FILE holds, the subscription id bound as associated data, and open it again to sign a delivery; at a prod start, seal every secret an older release kept as text.

Run by the functionalities that use it.

Uses: `most.core.secrets`.

  • `most.core.sealing.key-unset` — HTTP 503, exit 1. {step}: no key to seal webhook signing secrets is declared, so a subscription's secret can be neither kept in the database nor read back to sign a delivery. Observed: MOST_WEBHOOK_SEAL_SECRET and MOST_WEBHOOK_SEAL_KEY_FILE are unset or empty; {left}. Fix: set MOST_WEBHOOK_SEAL_SECRET to the ITEM#FIELD of a secret holding 64 lowercase hexadecimal characters in the store 'stado capabilities resolve secrets --consumer most' hands out, or MOST_WEBHOOK_SEAL_KEY_FILE to an owner-only file holding them, then start most-server again. Provoked by `tests/webhooks/sealed-secret.mjs::a_subscription_on_a_server_without_a_seal_key_is_refused_as_configuration`.
  • `most.core.sealing.keys-both` — HTTP 503, exit 1. choosing the key webhook signing secrets are sealed under: MOST_WEBHOOK_SEAL_SECRET and MOST_WEBHOOK_SEAL_KEY_FILE are both set, and a secret sealed under one key does not open under the other. Observed: MOST_WEBHOOK_SEAL_SECRET is {reference}; MOST_WEBHOOK_SEAL_KEY_FILE is {path}; nothing was started. Fix: unset the one that does not hold the key the stored secrets were sealed under, then start most-server again. Provoked by `tests/webhooks/sealed-secret.mjs::two_seal_key_settings_end_startup`.
  • `most.core.sealing.key-file-relative` — HTTP 503, exit 1. reading the webhook seal key MOST_WEBHOOK_SEAL_KEY_FILE names ({step}): the path is relative, so which file it names depends on the directory most-server was started in. Observed: MOST_WEBHOOK_SEAL_KEY_FILE is {path}. Fix: write the key ('openssl rand -hex 32') to an absolute path as a regular file owned by the user most-server runs as, 'chmod 600' it, and point MOST_WEBHOOK_SEAL_KEY_FILE at it. Provoked by `tests/webhooks/sealed-secret.mjs::a_relative_seal_key_file_ends_startup`.
  • `most.core.sealing.key-file-uninspectable` — HTTP 503, exit 1. reading the webhook seal key MOST_WEBHOOK_SEAL_KEY_FILE names ({step}): the file cannot be inspected: it does not exist, or a folder on its path may not be searched by this user. Observed: {path}: {error}. Fix: write the key ('openssl rand -hex 32') to an absolute path as a regular file owned by the user most-server runs as, 'chmod 600' it, and point MOST_WEBHOOK_SEAL_KEY_FILE at it. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_file_that_does_not_exist_ends_startup`.
  • `most.core.sealing.key-file-not-file` — HTTP 503, exit 1. reading the webhook seal key MOST_WEBHOOK_SEAL_KEY_FILE names ({step}): the path is not a regular file, and a symbolic link is not followed, so another file cannot be put in its place. Observed: {path} is {kind}. Fix: write the key ('openssl rand -hex 32') to an absolute path as a regular file owned by the user most-server runs as, 'chmod 600' it, and point MOST_WEBHOOK_SEAL_KEY_FILE at it. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_path_that_is_a_folder_ends_startup`.
  • `most.core.sealing.key-file-shared` — HTTP 503, exit 1. reading the webhook seal key MOST_WEBHOOK_SEAL_KEY_FILE names ({step}): the file is not this user's alone, so another user could read the key or put another in its place. Observed: {path} is owned by uid {owner} with mode {mode}; most-server runs as uid {euid}. Fix: 'chmod 600 {path}' and give it to the user most-server runs as ('chown'), then start most-server again. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_file_others_can_read_ends_startup`.
  • `most.core.sealing.key-file-unreadable` — HTTP 503, exit 1. reading the webhook seal key MOST_WEBHOOK_SEAL_KEY_FILE names ({step}): the file is this user's regular file and could not be read. Observed: {path}: {error}. Fix: write the key ('openssl rand -hex 32') to an absolute path as a regular file owned by the user most-server runs as, 'chmod 600' it, and point MOST_WEBHOOK_SEAL_KEY_FILE at it. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_file_the_disk_cannot_read_ends_startup`.
  • `most.core.sealing.key-length` — HTTP 503, exit 1. {step}: the seal key in {source} is not 64 characters (32 bytes in hexadecimal), so it is not an AES-256 key. Observed: {source} holds {length} characters after one trailing newline is dropped. Fix: keep 64 lowercase hexadecimal characters ('openssl rand -hex 32') in {source}, then start most-server again; a key replaced after secrets were sealed under the old one leaves those subscriptions to be created again. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_of_another_length_is_refused_naming_its_length`.
  • `most.core.sealing.key-not-hex` — HTTP 503, exit 1. {step}: the seal key in {source} holds a character outside 0-9 and a-f, so it is not the hexadecimal form of a key. Observed: {source} holds 64 characters, the first outside 0-9 and a-f at offset {offset}. Fix: keep 64 lowercase hexadecimal characters ('openssl rand -hex 32') in {source}, then start most-server again; a key replaced after secrets were sealed under the old one leaves those subscriptions to be created again. Provoked by `tests/webhooks/sealed-secret.mjs::a_seal_key_that_is_not_hexadecimal_is_refused_naming_the_offset`.
  • `most.core.sealing.seal-refused` — HTTP 403, exit 1. sealing the signing secret of webhook subscription {subscription}: AES-256-GCM refused to encrypt the secret, which it does only for a message longer than the 64 GiB one nonce may cover. Observed: a {bytes}-byte secret; nothing was written. Fix: create the subscription again with a signing secret of ordinary length. Provoked by `tests/webhooks/sealed-secret.mjs::a_secret_longer_than_one_nonce_covers_is_refused`.
  • `most.core.sealing.sealed-too-short` — HTTP 403, exit 1. opening the sealed signing secret of webhook subscription {subscription}: the stored value, {bytes} bytes, is too short to be a 12-byte nonce followed by a ciphertext and its 16-byte tag, so it was not written by a seal. Observed: signing_secret_sealed holds {bytes} bytes. Fix: delete the subscription ('DELETE /v3/webhook-subscriptions/{subscription}') and create it again; a row edited by hand holds no secret Most sealed. Provoked by `tests/webhooks/sealed-secret.mjs::a_sealed_value_shorter_than_a_nonce_is_refused_naming_its_length`.
  • `most.core.sealing.sealed-unopenable` — HTTP 503, exit 1. opening the sealed signing secret of webhook subscription {subscription}: the value does not open under the key {source} for this subscription: it was sealed under another key, or for another subscription and copied onto this row. Observed: signing_secret_sealed holds {bytes} bytes; the key {source} was read and has the right shape. Fix: point the seal key setting back at the key the secret was sealed under, or delete the subscription and create it again under this key. Provoked by `tests/webhooks/sealed-secret.mjs::a_secret_sealed_under_another_key_is_refused_as_configuration`.
  • `most.core.sealing.opened-not-text` — HTTP 403, exit 1. opening the sealed signing secret of webhook subscription {subscription}: the value opens, but to bytes that are not UTF-8 text, and a signing secret is text. Observed: {bytes} bytes opened; the first that is not UTF-8 is at offset {offset}. Fix: delete the subscription and create it again with a text signing secret. Provoked by `tests/webhooks/sealed-secret.mjs::a_secret_that_opens_to_bytes_that_are_not_text_is_refused`.
  • `most.core.sealing.plaintext-kept` — HTTP 503, exit 1. opening the sealed signing secret of webhook subscription {subscription}: the row still holds its signing secret as text, as a release before sealing wrote it, and most-server reads only sealed secrets. Observed: signing_secret is set and signing_secret_sealed is {sealed}. Fix: start most-server with MOST_COMPOSITION=prod and a seal key (MOST_WEBHOOK_SEAL_SECRET or MOST_WEBHOOK_SEAL_KEY_FILE): it seals every such row when it starts. Provoked by `tests/webhooks/sealed-secret.mjs::a_row_kept_as_text_after_the_start_is_refused_naming_it`.

most.core.webhook_delivery#

Send one signed webhook event to a subscription, keep it in the outbox when the subscriber does not accept it, and send kept events again.

Run by the functionalities that use it.

Uses: `most.core.storage`.

  • `most.core.webhook_delivery.client-unbuilt` — HTTP 503, exit 1. building the HTTP client webhooks are sent with: the client could not load its TLS configuration, so nothing was sent. Observed: {proxies}; reqwest said {error}. Fix: repair the TLS or proxy setting the observed error names on this host, then start most-server or redeliver again. Provoked by `tests/server/webhooks.rs::a_redelivery_whose_client_cannot_be_built_is_refused`.
  • `most.core.webhook_delivery.subscription-gone` — HTTP 404, exit 1. redelivering the kept {event} event {id}: the subscription it was kept for is no longer stored, so there is nowhere to send it. Observed: storage holds no subscription {subscription}. Fix: create the subscription again, or narrow the redelivery to another subscription with ?subscription_id=. Provoked by `tests/server/webhooks.rs::a_kept_event_whose_subscription_is_gone_is_refused_as_absent`.
  • `most.core.webhook_delivery.unsigned` — HTTP 409, exit 1. redelivering the kept {event} event {id}: its subscription keeps no plaintext signing secret, so the event cannot be signed. Observed: subscription {subscription} keeps only the hash of its secret. Fix: create the subscription again so it keeps its signing secret, then redeliver. Provoked by `tests/server/webhooks.rs::a_kept_event_whose_subscription_keeps_no_secret_is_refused`.
  • `most.core.webhook_delivery.event-refused` — HTTP 403, exit 1. delivering the {event} webhook to {target}: the subscriber answered a client error other than 429, refusing the event itself, so it is kept in the outbox and waits for an explicit redelivery. Observed: {target} answered {answer} to subscription {subscription}. Fix: repair the subscriber, then 'most-cli webhook-outbox redeliver' sends the kept event again. Provoked by `tests/webhooks/delivery.rs::an_event_the_subscriber_refuses_is_kept`.
  • `most.core.webhook_delivery.event-unanswered` — HTTP 503, exit 69, and sending it again can help. delivering the {event} webhook to {target}: the subscriber answered a server error or 429, so the event is kept in the outbox and sent again before the subscription's next event. Observed: {target} answered {answer} to subscription {subscription}. Fix: repair the subscriber, then 'most-cli webhook-outbox redeliver' sends the kept event again. Provoked by `tests/webhooks/delivery.rs::an_event_the_subscriber_cannot_take_now_is_kept`.
  • `most.core.webhook_delivery.event-unreached` — HTTP 503, exit 69, and sending it again can help. delivering the {event} webhook to {target}: the subscriber's address gave no answer: the connection failed, broke off or timed out, so the event is kept in the outbox. Observed: {target} for subscription {subscription} was not reached: {error}. Fix: check that {target} is up and reachable from this host, then 'most-cli webhook-outbox redeliver'. Provoked by `tests/webhooks/delivery.rs::an_event_whose_subscriber_is_not_reached_is_kept`.
  • `most.core.webhook_delivery.event-unstamped` — HTTP 503, exit 1. delivering the {event} webhook to {target}: the signature's timestamp could not be read from this host's clock, so nothing was sent and the event is kept in the outbox. Observed: subscription {subscription}: {error}. Fix: set this host's clock (enable network time), then 'most-cli webhook-outbox redeliver'. Provoked by `tests/webhooks/delivery.rs::an_event_on_a_clock_before_the_epoch_is_kept`.
  • `most.core.webhook_delivery.subscription-secretless` — HTTP 403, exit 1. delivering the {event} webhook of {source}: the subscription keeps no plaintext signing secret, so the event cannot be signed for it; it is neither sent nor kept. Observed: subscription {subscription} keeps only the hash of its secret. Fix: create the subscription again so it keeps its signing secret. Provoked by `tests/webhooks/delivery.rs::an_event_for_a_subscription_without_its_secret_is_skipped`.
  • `most.core.webhook_delivery.subscription-targetless` — HTTP 403, exit 1. delivering the {event} webhook of {source}: the subscription names no target URL, so there is nowhere to send the event; it is neither sent nor kept. Observed: subscription {subscription} has an empty target_url. Fix: create the subscription again with the URL its events go to. Provoked by `tests/webhooks/delivery.rs::an_event_for_a_subscription_without_a_target_is_skipped`.

most.core.clock#

Read the current instant as whole seconds since the Unix epoch, the timestamp a signature is stamped with or checked against.

Run by the functionalities that use it.

  • `most.core.clock.before-epoch` — HTTP 503, exit 1. reading this host's clock to stamp or check a signature: the clock reads before 1970-01-01, so no timestamp a signature binds can be written or compared; nothing was signed or accepted. Observed: the clock is {behind} before the Unix epoch. Fix: set this host's clock ('sudo sntp -sS time.apple.com' on macOS, 'timedatectl set-ntp true' on Linux), then try again. Provoked by `tests/server/attachments.rs::a_clock_before_the_epoch_refuses_every_signature`.

most.core.task#

Abort a background task and wait for it to end, saying when it had panicked before.

Run by the functionalities that use it.

  • `most.core.task.panicked` — HTTP 403, exit 1. stopping the background task {task}: the task had panicked before it was stopped, so the work it did (reading, forwarding or answering) had already stopped without anyone told. Observed: joining it answered: {error}. Fix: read the panic message logged before this line for the task, and report it with the release 'most-server --version' names. Provoked by `tests/server/startup.rs::a_background_task_that_panicked_is_said_when_stopped`.