Troubleshooting
I can’t find a matching offer
Run weft offers find --service chat-completion --json (or use vector-embeddings). If there are no providers, check Peers in weft info, confirm both nodes use the same network, and retry after the provider announces. If only the filters eliminated matches, copy the model and interface from an unfiltered result. If result.errors includes Forbidden, give the provider operator your consumer’s Peer ID.
I can find a provider on my LAN but can’t list its offers
If weft offers list --peer '<provider peer ID>' reports network unavailable,
ask the operator to check weft info on the provider. If LISTENING includes
its LAN address but ADVERTISED shows only the router’s public IP, discovery
can succeed while the direct request fails. Reaching that public IP from inside
the LAN requires router support for NAT loopback (also called hairpin NAT).
Give the consumer a direct LAN route to the same peer:
-
Get the provider’s Peer ID, LAN IP, and UDP port from the operator. For a bridged Compose provider, use the host’s LAN IP and published UDP port.
-
In the consumer’s
weftdconfig.yaml, add the provider toseed_peersundernetwork:. An explicit list replaces the default, so keep any seeds you already use. This example keeps the public bootstrap; replace the second entry’s placeholder, IP, and port with your provider’s values:seed_peers: - peer_id: "12D3KooWM4MZZqH9pAWSuMM1CtJ9o77to3oBvPuYUWfrTBeMadkw" addresses: - "/dns4/bootstrap.weftai.eu/udp/4001/quic-v1" - peer_id: "<provider peer ID>" addresses: - "/ip4/192.168.1.20/udp/4001/quic-v1" -
Restart the consumer with
systemctl --user restart weftd.service, or rundocker compose up -d --force-recreatefrom the consumer project directory. Then retryweft offers list --peer '<provider peer ID>'. Without--peer, the command requests the consumer’s own inventory.
If the request still reports network unavailable, check that the provider’s
firewall allows that UDP port from the consumer’s subnet. For several consumers
on the same LAN, the operator can advertise one hostname with split DNS.
My session won’t start
| Error | What to do |
|---|---|
Busy |
The backend already has a reservation or lease. Wait, stop your own session if finished, or choose another backend. |
InvalidDuration |
Request a positive whole number of seconds within the provider’s reported maximum. |
UnsupportedConfiguration |
Retrieve the provider’s current offers and check the peer/offer pair. Ask whether the provider bound that configuration to a backend; discovery-only offers cannot be leased. |
Forbidden |
Ask the provider to check its allow list against your current peer ID. |
If the listen port is already in use, inspect weft sessions list before starting another session. A Compose consumer using the bundled relay needs port 18080 free inside the container.
My application can’t get a response
- Run
weft sessions inspect '<session ID>'. For an expired, stopped, or lost session, start a new lease and update the app’s endpoint. - For an active session, check the URL from the machine running the app. Native clients use the returned endpoint; a Compose host uses the published host port. Include
/v1in the base URL if the app expects an OpenAI-compatible API root. - Check your application’s configuration, retry the request, and inspect the session again. A Last connection error can tell you the provider could not dial its backend. If the backend returned an HTTP error, read its response and check the API path and backend model name with the provider.