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