Riff Connect won't connect
In Riff Home › Models, the Riff Connect card stays on Waiting for Hermes., says Riff can't reach your connector, or pairing fails.
For anyone whose Riff Connect Connect Hermes through Riff Connect doesn't reach Connected. The card names the part that's missing.
The card says
| The card says | What to do |
|---|---|
| Riff can’t reach your connector at and its address | Check the address: it's the Worker's, ending in workers.dev, and the Worker is deployed. Click Edit to fix it |
| Waiting for Hermes. | The plugin hasn't linked yet. Run the two commands on the Hermes computer, then paste the message into Hermes Connect Hermes through Riff Connect |
| Riff couldn’t get a code from your connector. Press Check again. | Riff couldn't reach the connector for a one-time code. Click Connect on the card to try again |
| Your connector is an older version without one-time codes. Redeploy it (npx wrangler deploy), or use the manual setup in its README. | Deploy the current connector: push a change to your copy of the code, or run npx wrangler deploy in its worker folder |
| Hermes is connected to your connector but didn’t answer. | The plugin is linked, but Hermes's API server didn't answer. On the Hermes computer, check that ~/.hermes/.env has API_SERVER_ENABLED=true, run hermes gateway restart, then click Connect |
| Your connector doesn’t know this Riff any more. Press Edit and type its pairing code again. | The connector no longer accepts Riff's key. Click Edit, type the pairing code you set as PAIRING_CODE, and click Save and connect |
The two codes
Riff Connect uses two codes, and they're easy to mix up:
| Code | Comes from | Goes to |
|---|---|---|
| The pairing code, 20 characters in groups of five | Make and copy a code in Riff | Cloudflare, as PAIRING_CODE. Riff uses it once to pair, and doesn't keep it |
The one-time code, like K7QM-3XRA | The message on the Waiting for Hermes. card | Hermes, inside that message. It works once, for 15 minutes |
If Hermes says Riff Connect refused the code, the one-time code was used already or is older than 15 minutes. Click New code, then Copy for Hermes, and paste the new message.
Pairing Riff fails
- That address doesn’t look right. It is your Worker’s address and starts with https://: paste the whole address Cloudflare showed.
- Riff needs permission to reach and the address: the browser asked and the answer was no. Click Save and connect again and allow it.
- That pairing code is not right.: the code in Riff isn't the one on the Worker. Type the one you pasted on Cloudflare, or set the Worker's
PAIRING_CODEagain, in the Worker's settings on Cloudflare or withnpx wrangler secret put PAIRING_CODEin your copy, and pair with that. - Too many wrong codes. Wait 15 minutes and try again.: after 8 wrong codes, pairing locks for 15 minutes.
- This Worker has no pairing code yet. Set the PAIRING_CODE secret (12 characters or more), then try again.: the Worker was made without the code. Set it as above.
Cloudflare lost your place
Cloudflare asks you to connect GitHub before it deploys. If that sign-in takes you away, you can end up on a page to pick a repository instead of back on the deploy page, and the Worker may already be made.
- Look in your Cloudflare dashboard, under Workers.
- If a Worker for the connector is there, open it and copy its
workers.devaddress into Riff's Connector address. - If none is there, click 1-click install on Cloudflare again.
If the Worker was made before you pasted the code, set PAIRING_CODE on it as above.
Hermes says it's paired, but the card still waits
- The gateway hasn't linked. If Hermes says it paired but the gateway hasn't linked within 30 seconds, check that the gateway runs with
hermes gateway status. If it does, restart it once withhermes gateway restart, from a plain terminal: asking Hermes to restart its own gateway ends the session it's in. - Leftover settings.
RIFF_CONNECT_URLorRIFF_CONNECT_CODElines in~/.hermes/.env, from an earlier setup or a Worker you deleted, send the plugin to that address until it's paired, and a wrong code there counts toward the lock-out. Delete both lines, runhermes gateway restart, and paste a fresh message. - A wrong memory. If Hermes remembers something untrue from an earlier try, like a version mismatch, ask it to forget that.
Right after pairing, no hermes gateway command is needed: Riff shows Connected on its own within a few seconds.