Message Text
Database has duplicate foreign replica databases: variable1
Cause
Local master database might have already been attached to the foreign replica database that you are trying to attach to.
Response
Remove database replication configuration on both master and replica.