Troubleshooting
Run the CLI on the provider unless a step specifies the consumer.
Peers can’t reach my provider
Run weft info. Check Server: Enabled and compare LISTENING and ADVERTISED with your public endpoint configuration. Under REACHABILITY, use the result to narrow down the problem:
| Result | What to check |
|---|---|
| UPnP: Gateway not found | Enable UPnP IGD on the router. With Compose, use Linux host networking so the provider can discover the router. If UPnP is unavailable, use a manual forward. |
| UPnP: Gateway has no public IP address | If you control both routers, forward UDP through both and advertise the outer router’s public endpoint. For carrier-grade NAT, ask the ISP for a public address or use a host with public UDP connectivity. |
| Last dial-back: Untested or Not attempted | Check that an AutoNAT-capable probe peer outside your network is reachable. Run weft info again after the next probe. |
| Last dial-back: Failed | Read the reason. If the peer couldn’t dial back, check the public IP or DNS record, the external UDP port, the firewall, and any router forward. With bridged Compose, the forward must target the published host port. |
External consumers can connect but LAN consumers can’t
If the router lacks NAT loopback, give one consumer a direct LAN route. For several consumers, use split DNS: configure one hostname to resolve to the provider host’s LAN IP inside the network and to the router’s public IP outside. Advertise that hostname under network::
advertised_addresses:
- "/dns4/weft.example.com/udp/4001/quic-v1"
Replace weft.example.com with your hostname. Both routes must accept the advertised UDP port because DNS changes only the IP. Restart the provider with systemctl --user restart weftd.service. For Compose, run docker compose up -d --force-recreate from server/, or docker compose -f compose.yaml -f compose.host.yaml up -d --force-recreate for host networking. Check the hostname under ADVERTISED, then try weft offers list --peer '<provider peer ID>' from a consumer on each network.
Consumers can’t see my offer
- Run
weft offers listlocally. If your model is missing, check the offer file’s location and format and confirmweftdhas started since the last edit. If the daemon failed to start, the logs identify invalid YAML or backend bindings. - Check SERVICE ANNOUNCEMENTS in
weft info. If the service is only registered locally, check the bootstrap connection and allow time for publication. - Ask the consumer to run
weft offers find --service chat-completion --json(orvector-embeddings) without a model filter. If your peer appears withForbiddeninresult.errors, compare the consumer’s current Peer to your allow list. A network error points instead to the advertised path.
Requests don’t reach my backend
Ask the consumer whether sessions start failed or a request through an active session failed:
- Start rejected: For
UnsupportedConfiguration, check that the offer hasexecution.backendand names the intended backend. ForBusy, another reservation or lease holds that backend. A model listing alone does not establish capacity. - Active session, connection fails: Ask the consumer to run
weft sessions inspect '<session ID>'after a failed request. Check the provider logs (journalctl --user -u weftd.serviceordocker compose logs weft) for the backend address and dial error. Verify the model server is running at that address from the provider’s network. In a bridge container,127.0.0.1refers to the container. - Backend returns an HTTP error: Check the request path, model name, and backend authentication. If
api_key_envis set, confirm that the service or container receives that variable. Apply corrected settings and repeat the consumer request using a fresh lease after the restart.