Developer Portal postgres Master and Standby replication error

in the process of switching Master and Standby replication our Production and DR when I execute master replication in DR getting below error. help us how to fix the recovery in-progress issue to make it successfully DR postgres as Master and Prod postgres as Standby?

0 1 851
1 REPLY 1

# /opt/apigee/apigee-service/bin/apigee-service apigee-postgresql setup-replication-on-master -f /tmp/install-master-slave-pg.txt updated property conf_pg_hba_replication.connection in file /mount0/token/application/postgresql.properties apigee-service: apigee-postgresql: OK apigee-configutil: apigee-postgresql: # OK apigee-service: apigee-postgresql: Not running (NO_LOCKFILE) apigee-service: apigee-postgresql: status=2, continuing apigee-service: apigee-postgresql: OK apigee-service: apigee-postgresql: apigee-postgresql is running Waiting for postgres to finish start postgres successfully started ERROR: recovery is in progress HINT: WAL control functions cannot be executed during recovery. ERROR: postgres server is down or does not seem be 'master'