return'Geo database configuration file is missing.'unlessGitlab::Geo.geo_database_configured?
return'An existing tracking database cannot be reused.'ifreusing_existing_tracking_database?
return'Geo node has a database that is writable which is an indication it is not configured for replication with the primary node.'unlessGitlab::Database.db_read_only?
return'Geo node does not appear to be replicating the database from the primary node.'ifreplication_enabled?&&!replication_working?
return"Geo database version (#{database_version}) does not match latest migration (#{migration_version}).\nYou may have to run `gitlab-rake geo:db:migrate` as root on the secondary."unlessdatabase_migration_version_match?