Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 917
    • Issues 917
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 57
    • Merge requests 57
  • Requirements
    • Requirements
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Issues
  • #5618

Closed
Open
Created Sep 02, 2020 by Nick Nguyen@nhxnguyen🌴Developer

Account for seed project in replicate-geo-database

Summary

Recently, we added a self-monitoring seed project for fresh GitLab installs (gitlab#208454 (closed)).

When replicate-geo-database is run, we check gitlab_is_active?, which checks whether the primary database exists with a non-empty projects table. If it detects a projects table with records, it will raise a warning. Users can pass --force to the command to proceed even when gitlab_is_active? returns true.

Now that there is a seed project, whenever a user runs replicate-geo-database with a fresh install on the secondary, they will always encounter this message, which could be confusing.

Steps to reproduce

Follow the instructions to set up a single-node Geo primary and secondary instance with Omnibus.

What is the current bug behavior?

When running replicate-geo-database, it will incorrectly warn the user that data was found inside the database. Yes, there is data, but it is the seeded project.

What is the expected correct behavior?

Replication should be allowed to continue without displaying the warning or exiting the program.

Relevant logs

Relevant logs

Details of package version

Provide the package version installation details

Edited Sep 04, 2020 by Nick Nguyen
Assignee
Assign to
Time tracking