Error in make geo-setup on new secondary site
Overview
When following https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/geo.md at the step where you run make geo-setup
on the new secondary site, it raises an error in support/bootstrap-geo
.
Steps to replicate (optional)
- Follow https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/geo.md
- On the
make geo-setup
step, get:
➜ gdk-geo git:(main) make geo-setup
geo-cursor: exec /usr/bin/env RAILS_ENV=development RAILS_RELATIVE_URL_ROOT=$relative_url_root support/geo-logcursor
ok: run: /home/user/sources/gitlab/gitlab-org/gdk-geo/services/postgresql-geo: (pid 1164127) 107s, normally down
Created database 'gitlabhq_geo_development'
DEPRECATION WARNING: Using `bin/rails geo:db:create` is deprecated and will be removed in Gitlab 15.0. Please run `bin/rails db:create:geo` instead.
Database 'gitlabhq_geo_development' already exists
rake aborted!
ActiveRecord::NoDatabaseError: FATAL: database "gitlabhq_development" does not exist
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:111:in `block in read_write'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:95:in `method_missing'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/ee/lib/tasks/geo.rake:86:in `block (3 levels) in <main>'
/home/user/.asdf/installs/ruby/2.7.5/bin/bundle:23:in `load'
/home/user/.asdf/installs/ruby/2.7.5/bin/bundle:23:in `<main>'
Caused by:
PG::ConnectionBad: FATAL: database "gitlabhq_development" does not exist
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:111:in `block in read_write'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:125:in `write_using_load_balancer'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/lib/gitlab/database/load_balancing/connection_proxy.rb:95:in `method_missing'
/home/user/sources/gitlab/gitlab-org/gdk-geo/gitlab/ee/lib/tasks/geo.rake:86:in `block (3 levels) in <main>'
/home/user/.asdf/installs/ruby/2.7.5/bin/bundle:23:in `load'
/home/user/.asdf/installs/ruby/2.7.5/bin/bundle:23:in `<main>'
Tasks: TOP => db:abort_if_pending_migrations
(See full trace by running task with --trace)
support/bootstrap-geo failed
make: *** [support/makefiles/Makefile.postgresql-geo.mk:21: postgresql/geo/seed-data] Error 1
Proposal (optional)
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 Matt Kasa