ZeroCopyZeroCopy
SWQoSLocal agent

Operations

Operate the local agent with metro failover, automatic updates, telemetry and troubleshooting

Regions and failover

The agent chooses a primary metro and keeps other reachable metros available for failover.

Automatic metro selection

Leave upstreams unset for automatic selection. The agent follows available metros and favors low round trip time. See Endpoints for hostnames.

Pinned metros

Set a pinned upstream list only when you need to restrict the available metros. Pinning also restricts failover: the agent will not use an unlisted metro when every listed metro is unavailable.

Metro changes

The agent checks reachable edges and changes its choice when a better connection is available or the current connection fails. Small latency differences may not cause a switch. Ordinary failover needs no restart.

If the agent chooses an unexpected metro, check the pinned list, DNS and outbound UDP access from the host. If the problem persists, ask on Discord.

Handle connection failover

If an edge connection closes during a request, the agent may send the same request through another edge. The first edge may already have forwarded it, so delivery can happen twice. Check the signature before sending a replacement.

When a request needs an edge and none is available, it can return not_ready with waiting_for: upstream. Check network access and the service log. See Confirmation for uncertain outcomes.

Share edge connections

An edge allows up to 32 QUIC connections per API key. Agents and direct QUIC clients using that key share the limit. Reuse running agents and client connections across sends.

Automatic updates

Release checks

The licensed agent updates automatically. Before installing a release, it verifies the release and checks that it can start with your configuration and reach an edge. The running release keeps serving during the check and stays in place if the check fails.

Keep the host ready

Keep the executable directory writable by the agent's account, including under service sandboxing. With systemd's ProtectSystem=strict, use ReadWritePaths=/opt/zerocopy as in the service example. When launching through a symbolic link, the target directory must be writable.

Keep the configuration readable and valid. Updates preserve owner access to the executable and remove group and other permissions.

Reconnect clients

Installation closes local HTTP, QUIC and IPC connections. Reconnect once the listeners return. IPC clients must open a new session and repeat the handshake. A lost reply leaves the outcome unknown; check the signature before replacing the transaction.

Run --check to see the installed release number.

Update failures

Diagnose an attempt

Read journalctl -u zerocopy-agent for warnings with release= and error= fields.

ErrorAction
install or Permission deniedCheck executable directory ownership, read only mounts and service sandboxing
staged release failed its checkInclude the preceding error: lines when contacting support
Network access failureRestore outbound access to the metro hosts
error: restart <path> on standard errorCheck that the executable can run; the example service restarts after a process failure

The running release remains in service when an update attempt fails. After fixing a host problem, restart the service to trigger a fresh attempt. Ask for help on Discord if the failure persists.

Replace the executable manually

When ZeroCopy provides a replacement, stop the service, follow installation, verify its checksum and start the service again.

Telemetry

Telemetry is required for the licensed agent and cannot be turned off. Your license agreement and the Privacy Notice cover it.

Network access

Reporting uses the edge connection and needs no separate firewall rule. Keep the required outbound access available.

Reported data

CategoryInformation
Agent and hostRelease and build ID, host name, hashed machine ID specific to the application, operating system, kernel, architecture, CPU and memory information, DMI system vendor and product name, uptime, metro configuration and local listen addresses
RequestsCounts, outcomes, response latency and forwarding results
ConnectionsEdge latency, metro changes and connection failures, local connection counts and client activity counters
Updates and logsRelease changes, failed updates, warning and error log lines with their fields

The agent hashes the machine ID on the host; the raw ID does not leave it. When the machine ID is unavailable, the agent uses a fallback ID, which may be shared by multiple hosts. The host name is reported separately.

Logs also go to standard output. With the example service, read them using journalctl -u zerocopy-agent.

Excluded transaction data

Telemetry does not include transaction bytes, signatures, bundle contents or request bodies. It does not include the IPC socket path or the full contents of your configuration file.

Troubleshooting

Startup errors

Read journalctl -u zerocopy-agent or the terminal's error: lines. Run --check to separate configuration and edge connectivity failures from listener failures.

ErrorAction
GLIBC_2.39' not foundUse a supported platform with glibc 2.39 or newer
unknown argument or --config requires a pathPass --config /etc/zerocopy/agent.toml, optionally followed by --check
read configCheck the path and make the file readable by zerocopy
parse config, unknown field or the customer binary does not accept the config optionUse supported options; keep upstreams above table headers
upstreams entry ... is not host:port with a host under sol.zerocopy.shUse a metro hostname and port
invalid log filterFix log.level or the overriding RUST_LOG environment variable
Address already in useStop the other process or give each agent different listener ports
bind <address>: Operation not permittedMatch the service port restrictions to listen.http and listen.quic
TPU client: I/O error: Operation not permittedKeep SocketBindAllow=ipv4:udp:0 for outgoing QUIC sockets
bind IPC ... No such file or directoryCreate the socket directory or use the example service
bind IPC ... Permission deniedMake the socket directory writable by zerocopy
another instance holds the IPC socket lock or another instance is listening on the IPC socketStop the other agent or choose another IPC path
IPC path exists and is not a socket owned by this userInspect the path; remove it only if it belongs to a stopped instance, or choose a new path

Keep IPC paths shorter than 108 bytes. For no valid executable license data, no valid release slot or this build has no API key compiled in, verify the checksum and contact support for the correct licensed file.

The connectivity check fails

For no region answered in time, check that metro hostnames resolve to IPv4 addresses, outbound UDP 443 reaches them, the system clock is correct and any pinned metros are available.

If the connection is refused despite correct network access, contact support to check the license and API key.

Sends fail

RejectionAction
not_ready, waiting_for: upstreamCheck /health, the service log and network access
not_ready, waiting_for: tip_vaultsFetch tip accounts again shortly
not_ready, waiting_for: token_price or lookup_tableRetry shortly, or tip in SOL to a static tip account
missing_tipMeet the returned minimum with a live tip account, a token tip or an enabled declared tip. Agent releases that predate token tips refuse token and lookup-table tips locally
payment_requiredResolve the outstanding payment through Billing or support
forward_failedCheck the signature before retrying
unsupported for tip_floorQuery the tip floor on a hosted endpoint
unsupported for bundlesBundles are turned off for the key; contact support to discuss access

Use requests with replies to diagnose problems. A request without a reply cannot report its rejection. See Errors for other refusals and Confirmation before resubmitting.

Local clients cannot connect

SymptomAction
HTTP connection refusedWait for startup and check the address against listen.http
QUIC handshake failsUse ALPN zerocopy-swqos/1 and the local certificate settings
IPC ENOENT or connect: No such file or directoryCheck listen.ipc and that the agent is running
IPC EACCES or connect: Permission deniedGive the application socket access and restart it after a group change
IPC ECONNREFUSED or connect: Connection refusedCheck that an agent is listening, rather than a socket left by a stopped instance

IPC sessions end or replies are missing

After a stop or update, reconnect and repeat the handshake. If a session closes immediately after a submission, compare your client with the record and ring rules.

For missing completions, make sure each submission requests a reply, uses a distinct request ID and that your client keeps draining completions. See submission flags. Set a timeout for every request. For no completion within 5 seconds, check the signature and service log before retrying.

One CPU core stays busy

With ipc_busy_poll = true, one core stays busy while any IPC client is connected, even an idle one. Set it to false, disconnect idle clients or restrict the agent's CPUs. See busy polling.

Contact support

Give support your team name, the --check output and the settings relevant to the problem. Include the error: lines and their site= codes. Remove credentials from anything you share, including URLs in logs or configuration. Never send the licensed executable.