Skip to content

Geo: database.yml template does not check whether primary or secondary

Overview

The database.yml template always append the geo: database section if Geo is enabled. This should only happen on a secondary site.

Impacted categories

The following categories relate to this issue:

Steps to replicate (optional)

  1. Follow the instructions from the Advanced Installation.
  2. Try to access the primary site
  3. Get the error below
Geo::TrackingBase::SecondaryNotConfigured at /admin

Geo secondary database is not configured

primary_error

Proposal (optional)

Include an extra check in the database.yml to verify whether we are on the primary or secondary

Environment (optional)

  • Operating system name: <!-- output of `uname -a` command -->
  • Architecture: <!-- output of `arch` command -->
  • The contents of your gdk.yml (if any)
  • Ruby version: <!-- output of `ruby --version` command -->
  • GDK version: <!-- output of `git rev-parse --short HEAD` command -->
Edited by Gabriel Mazetto