InfoGrab Docs

Geo 페일오버 문제 해결

Geo 페일오버 문제 해결에 대해 설명합니다.

페일오버 중 또는 보조 사이트를 기본 사이트로 승격할 때 오류 수정 # 다음은 페일오버 중 또는 보조 사이트를 기본 사이트로 승격할 때 발생할 수 있는 오류 메시지와 해결 전략입니다. 메시지: ActiveRecord::RecordInvalid: Validation failed: Name has already been taken # 보조 사이트를 승격 할 때 다음 오류 메시지가 발생할 수 있습니다: Running gitlab-rake geo:set_secondary_as_primary... rake aborted! ActiveRecord::RecordInvalid: Validation failed: Name has already been taken /opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/geo.rake:236:in `block (3 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/geo.rake:221:in `block (2 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in `load' /opt/gitlab/embedded/bin/bundle:23:in `<main>' Tasks: TOP => geo:set_secondary_as_primary (See full trace by running task with --trace) You successfully promoted this node! gitlab-rake geo:set_secondary_as_primary 또는 gitlab-ctl promote-to-primary-node 를 실행할 때 이 메시지가 나타나면 Rails 콘솔을 열고 다음을 실행합니다: Rails .application.load_tasks; nil Gitlab : :Geo .expire_cache! Rake : :Task [ 'geo:set_secondary_as_primary' ].invoke 메시지: NoMethodError: undefined method `secondary?' for nil:NilClass # 보조 사이트를 승격 할 때 다음 오류 메시지가 발생할 수 있습니다: sudo gitlab-rake geo:set_secondary_as_primary rake aborted! NoMethodError: undefined method `secondary?' for nil:NilClass /opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/geo.rake:232:in `block (3 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/ee/lib/tasks/geo.rake:221:in `block (2 levels) in &#x