Repository navigation
Migrating from corten matrix 1.3.x
An existing corten-matrix 1.3.x login and database can be used by macoun-matrix without logging in again, provided the login's hardware key came from the Mac that will run the relay. macoun keeps the upstream database owner name, state directory name and file formats for this reason.
Work on a copy first.
- Set up the relay on the Mac (Setup, steps 1 and 2) and check
/healthfrom the bridge host. - Stop the old bridge.
- Copy the database (with any
-waland-shmfiles) and the wholecorten-matrix/state directory.keystore.plistmust come along: without it the bridge clears the login. - Back up
corten-matrix/anisette/state.plistseparately. macoun does not use it; keeping it makes a rollback clean. - Do not re-extract or edit the hardware key. Point the bridge at the relay with
MACOUN_NAC_RELAY_URL,MACOUN_NAC_RELAY_TOKENandMACOUN_NAC_RELAY_CERT_FP. - Start macoun-matrix on the copy with the same
config.yaml. Have the relay up before this first start: if the stored registration needs refreshing, the bridge registers at once. - Check the log for
macoun-matrix startingandHardware key: validation data from NAC relay. If the second line is missing, the relay settings were not picked up.
- Apple sees the Mac's own anisette identity at the next Apple ID token refresh. A 2FA prompt, or iCloud features asking for a new login, are possible. Messaging does not depend on it.
- The first start reads the CloudKit attachment zone and the recycle bin in full once, to build the local index and copy. On an account with a long history this start takes longer than later ones.
- Each iMessage group room receives one power-level event, which lets you invite and remove contacts in it (see Groups).
- Tables:
macoun_outbound_limiter,macoun_attachment_index,macoun_attachment_index_state,macoun_recycle_bin_record,macoun_recycle_bin_zone. - Key files in the state directory:
macoun-limiter.key,macoun-attachment-index.key. - Rows named
macoun_rehydrate_empty:<portal>andmacoun_local_delete:<portal>in the existingcloud_maintenancetable.
Existing tables and files are not changed in format.
Stop macoun-matrix and start the old bridge on the data you kept from step 3. If you ran macoun on the original data instead of a copy, the additions listed above are not used by corten-matrix 1.3.x, so the old bridge can be started on it as well; restore anisette/state.plist from the backup first.
Then the relay's Mac and the registered identity do not match. Log out, extract a key on the relay's Mac and log in again.