Got a HA solution running, was messing around to make sure everything works and the backup:create
rake command is fine.
Now the problem is when i attempt a restore, i followed the guide: https://docs.gitlab.com/ee/raketasks/backup_restore.html
After the rake restore command i get the following error if i don’t skip the DB backup:
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "projects" does not exist
LINE 5: AND cons.conrelid = '"projects"'::regclass
^
: SELECT attr.attname
FROM pg_attribute attr
INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = any(cons.conkey)
WHERE cons.contype = 'p'
AND cons.conrelid = '"projects"'::regclass
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb:176:in `restore'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:87:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:60:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Caused by:
PG::UndefinedTable: ERROR: relation "projects" does not exist
LINE 5: AND cons.conrelid = '"projects"'::regclass
^
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/repository.rb:176:in `restore'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:87:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:60:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Can someone share some knowledge with me? Thanks