Chat relay versions
TL;DR
- Each app's chat runs its own relay version. Upgrading one app never changes another, so you can move your development app first and production later.
- Nothing changes until you upgrade. Re-applying chat, resizing it or restarting it keeps the version the app runs. New chats start on the current version.
- Upgrades go one version at a time. Each one is planned first. It backs up the app's database when needed, restarts the chat for about 20 seconds, and watches it for up to 5 minutes. If the new version is not healthy, the chat goes back to the version it ran before, when that can be done without losing data.
- Rolling back is your decision when it would lose data. Going back is automatic only when it keeps everything. When it needs the backup restored, nothing happens until an admin confirms it.
- Three versions are supported at a time. These are the current version and the two before it. An old version shows its end date, and stays supported for 60 days after it becomes old.
See your version
In Cockpit, open the app, go to Add-ons and open Chat. The card shows:
- Version: the version the chat runs, and whether it is Current, Supported or an Old version with the date its support ends.
- New version: the next version the chat can move to, and what it adds.
- Recent changes: the last upgrades and rollbacks.
The same facts come from the workflow apphost.addon.versions (featured, read only). Give it site_uuid for one app, or nothing to list every app of the organization with a chat. This lets you line up your development, staging and production apps side by side.
Upgrade
On the Chat card, choose Upgrade…. Cockpit first asks the platform for a plan, which changes nothing. Then it shows you what will happen:
| Downtime | About 20 seconds without chat, 80 at most |
| Backup | When the new version changes how the chat stores its data, the app's database is backed up first. The backup is kept for 30 days |
| What's new | The new version's features, in your language |
| Watch | For up to 5 minutes, the chat must run the new version, stay ready for a full minute and not restart |
| If it is not healthy | The chat goes back to the version it ran before by itself, when that keeps your data. Otherwise it stays on the new version and your admins get a ticket explaining how to go back |
Upgrades go one version at a time. An app two versions behind upgrades twice, and each upgrade is watched on its own.
An upgrade only runs when the plan's checks pass.
- The chat must be healthy now.
- No other version change may be running on it.
- When the app has staging environments, they must already run the new version and be healthy. That way production upgrades only after staging has proven the version. The checks say which of these is missing.
Without Cockpit, run apphost.addon.upgrade with site_uuid and to_version.
plandefaults totrue, which only shows the plan and its checks. Setplan: falseto upgrade.require_healthy_onnames another app that must already run the version healthily.skip_staging_check: trueupgrades without waiting for the staging environments.approved_byandrequest_refare recorded in the app's history. Use them when someone upgrades an app on its owner's behalf.
Only organization admins can upgrade or roll back.
Roll back
On the Chat card, choose Roll back… to return to the version the chat ran before its last upgrade. The sheet tells you what stops working. For example, announcement channels stop being enforced, so guests can write in them again.
There are two kinds of rollback:
- Without data loss. The older version runs on the chat's current data. The rollback runs as soon as you confirm it.
- With a restore. The older version cannot read what the newer one changed. Going back restores the database backup taken before the upgrade, so messages and changes written since that backup are lost. You must type the app's name to confirm. Orkestia never does this by itself.
Without Cockpit, run apphost.addon.rollback with site_uuid.
plandefaults totrue.- A rollback that needs a restore also takes
restore_backup_uuid(the upgrade's backup, shown in the app's history) andconfirm_data_loss: true.
How long a version is supported
- Orkestia supports the current version and the two versions before it.
- When a fourth version arrives, the oldest one becomes old, and its support ends 60 days later. The Chat card shows that date.
- At the end of a version's support, Orkestia upgrades the apps still on it by one version, in a window announced beforehand. This is the only time Orkestia upgrades an app without being asked.
- A security fix can shorten the 60 days. When it does, you are told beforehand.
- New chats always start on the current version.
Features that need a newer version
Some chat features need a newer relay. A workflow that needs one refuses with relay_version_too_old and does nothing. For example, buzz.channel.set-posting refuses on a relay without announcement channels. Upgrade the app's chat, then try again.
Errors
| Error | Meaning |
|---|---|
relay_version_too_old | The feature needs a newer chat version than this app runs. Upgrade it first |
relay_upgrade_one_step | Upgrades go one version at a time. The message names the version to upgrade to first |
use_addon_upgrade | Applying chat keeps the app's version. To change it, use apphost.addon.upgrade |
use_addon_rollback | Going to an older version is a rollback: apphost.addon.rollback |
relay_change_refused | A check did not pass. Run with plan: true to see each check |
relay_change_in_progress | Another upgrade or rollback is running on this chat. Wait for it to finish |
relay_no_previous | The app has no earlier version on record to roll back to |
relay_version_retired | The version is no longer supported. Upgrade to the version the message names |
Connect your WhatsApp number
Put your app's actor on your own WhatsApp number through Meta's official WhatsApp Cloud API. Your end users link their phone from the chat, and the same conversation shows up on WhatsApp and in the web chat
What is DGI
Orkestia is Orkestia.dev. DGI is Orkestia's decision layer. It turns what a person asks into your organization's own workflows, and answers with live cards (forms, confirms, tables, charts) instead of prose. Where you can use it, what it does, and what it never does
