Restore site replication service account
In rare circumstances, you may need to restore site replication service account information to a peer in the cluster.
Seeing AccessDenied for site replication calls either in logs or with mc admin trace indicates a need to restore service account information to a peer.
This error typically results when the service accounts for site replication of one of the peer sites have been lost or corrupted.
Procedure
To restore the required information, export the service account information from an existing healthy peer site and import it to the site with the missing account information.
-
Export information from a healthy peer site.
mc admin cluster iam export healthysiteThe command saves the information to
healthysite-iam-info.zip. -
Unzip the contents of the downloaded information.
For example, on Linux, run something resembling the following:
unzip healthysite-iam-info.zipThe service account information is in
iam-assets/svcaccts.json. -
Zip
svcaccts.json, keeping itsiam-assets/path.For example, on Linux, run something resembling the following:
zip svcaccts.zip iam-assets/svcaccts.jsonThe import reads only
iam-assets/svcaccts.json. -
Import service account information to the unhealthy peer site.
mc admin cluster iam import unhealthysite svcaccts.zip