Error in the standby postgres server.

Not applicable

Can someone let me know why I am getting this error? This instance is actually a standby postgres server

/opt/apigee/apigee-service/bin/apigee-service apigee-postgresql postgres-check-standby

pg_last_xlog_receive_location ------------------------------- (1 row) OK

Error: Postgres-Server reports being 'master' while postgres db is in 'slave' mode

0 1 809
1 REPLY 1

Did you check your original master? Is it still running as a master?

Is this a new install? Have you been running this for a while? Did someone promote standby to a master during an outage?

The error you are seeing is not necessarily a problem if the original master was down and someone promoted the standby to master.

If both servers report being master, check for the server which has correct data and then reconfigure the other one as a slave.