~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A failed `migrateActivate` leaves the group off with no way to retry

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

opensocial migrate calls migrateActivate right after migrateComplete. If activate fails, the command exits with an error after the group has been handed over and switched off at the old host. The failure can be NotYet while the directory lags, a network error, or a 5xx. Running the command again fails at migratePrepare with NotController, because the old host no longer holds a rotation key. The command has no way to call only migrateActivate, so the group stays switched off on both hosts until someone posts that XRPC by hand. The identity's document is read fresh (identity.rs:97), so NotYet is rare against plc.directory, but any failure at this step strands the group. No test covers it: commands.rs only runs the happy path and a prepare failure.

How to see it

Read against docs/fresh at 4636e6d, the code at: crates/opensocial/src/lib.rs:485-489. Paths are under crates/group-host/src unless they say otherwise. Severity: medium.

What you expected

Retry migrateActivate on NotYet for a short while, with a wait. On failure, print the step that is left. Give migrate a way to only activate, such as --activate or detecting that the group is already handed over.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.