503 error found after setting repository

Replace this template with your information

Hello,
I am using gitlab installed on my own server. However, at some point I get a 503 error and I can’t access the repository.

There are three questions.

  1. Can I repair a particular project in the repository that displays a 503 error?
    The following error log appears in production.log.
    Gitlab :: Git :: CommandError (13: HasLocalBranches: cmd wait: exit status 128):
    lib / gitlab / git / repository.rb: 1454: in rescue in gitaly_migrate ' lib / gitlab / git / repository.rb: 1447: in gitaly_migrate ’
    lib / gitlab / git / repository.rb: 1606: in uncached_has_local_branches? ' lib / gitlab / git / repository.rb: 237: in block in has_local_branches? ’
    lib / gitlab / utils / strong_memoize.rb: 26: in strong_memoize ' lib / gitlab / git / repository.rb: 236: in has_local_branches? ’
    app / models / repository.rb: 517: in has_visible_content? ' lib / gitlab / metrics / instrumentation.rb: 159: in block in _uncached_has_visible_content? ’
    lib / gitlab / metrics / method_call.rb: 36: in measure ' lib / gitlab / metrics / instrumentation.rb: 159: in _uncached_has_visible_content? ’
    lib / gitlab / repository_cache_adapter.rb: 17: in block (2 levels) in cache_method ' lib / gitlab / repository_cache.rb: 22: in fetch ’
    lib / gitlab / repository_cache_adapter.rb: 54: in cache_method_output ' lib / gitlab / repository_cache_adapter.rb: 16: in block in cache_method ’
    lib / gitlab / metrics / instrumentation.rb: 159: in block in has_visible_content? ' lib / gitlab / metrics / method_call.rb: 36: in measure ’
    lib / gitlab / metrics / instrumentation.rb: 159: in has_visible_content? ' app / models / repository.rb: 491: in empty? ’
    lib / gitlab / metrics / instrumentation.rb: 159: in block in empty? ' lib / gitlab / metrics / method_call.rb: 36: in measure ’
    lib / gitlab / metrics / instrumentation.rb: 159: in empty? ' app / models / project.rb: 496: in empty_repo? ’
    app / controllers / projects_controller.rb: 371: in repo_exists? ' lib / gitlab / i18n.rb: 50: in with_locale ’
    lib / gitlab / i18n.rb: 56: in with_user_locale ' app / controllers / application_controller.rb: 350: in set_locale ’
    lib / gitlab / middleware / multipart.rb: 95: in call ' lib / gitlab / request_profiler / middleware.rb: 14: in call ’
    lib / gitlab / middleware / go.rb: 17: in call ' lib / gitlab / etag_caching / middleware.rb: 11: in call ’
    lib / gitlab / middleware / rails_queue_duration.rb: 22: in call ' lib / gitlab / metrics / rack_middleware.rb: 15: in block in call ’
    lib / gitlab / metrics / transaction.rb: 53: in run ' lib / gitlab / metrics / rack_middleware.rb: 15: in call ’
    lib / gitlab / middleware / read_only / controller.rb: 28: in call ' lib / gitlab / middleware / read_only.rb: 16: in call ’
    lib / gitlab / request_context.rb: 18: in call ' lib / gitlab / metrics / requests_rack_middleware.rb: 27: in call ’
    lib / gitlab / middleware / release_env.rb: 10: in `call ’

2 . I have a repositories directory. Can I migrate the directory to run on another gitlab server?

  1. Can I extract the source code for a particular project from within the repositories directory?

** Kor

gitlab 503 에러에 대한 문의 사항이 있습니다.

자체 서버에 gitlab을 설치하여 사용하고 있습니다. 그런데 어느 순간 503 에러가 뜨면서 repository에 접근이 안됩니다.

문의 사항은 3 가지 입니다.

1 . 503 에러가 표시되는 repository의 특정 프로젝트를 복구가 가능할까요?
production.log에 다음과 같은 에러 로그가 찍힙니다.
Gitlab::Git::CommandError (13:HasLocalBranches: cmd wait: exit status 128):
lib/gitlab/git/repository.rb:1454:in rescue in gitaly_migrate' lib/gitlab/git/repository.rb:1447:in gitaly_migrate’
lib/gitlab/git/repository.rb:1606:in uncached_has_local_branches?' lib/gitlab/git/repository.rb:237:in block in has_local_branches?’
lib/gitlab/utils/strong_memoize.rb:26:in strong_memoize' lib/gitlab/git/repository.rb:236:in has_local_branches?’
app/models/repository.rb:517:in has_visible_content?' lib/gitlab/metrics/instrumentation.rb:159:in block in _uncached_has_visible_content?’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:159:in _uncached_has_visible_content?’
lib/gitlab/repository_cache_adapter.rb:17:in block (2 levels) in cache_method' lib/gitlab/repository_cache.rb:22:in fetch’
lib/gitlab/repository_cache_adapter.rb:54:in cache_method_output' lib/gitlab/repository_cache_adapter.rb:16:in block in cache_method’
lib/gitlab/metrics/instrumentation.rb:159:in block in has_visible_content?' lib/gitlab/metrics/method_call.rb:36:in measure’
lib/gitlab/metrics/instrumentation.rb:159:in has_visible_content?' app/models/repository.rb:491:in empty?’
lib/gitlab/metrics/instrumentation.rb:159:in block in empty?' lib/gitlab/metrics/method_call.rb:36:in measure’
lib/gitlab/metrics/instrumentation.rb:159:in empty?' app/models/project.rb:496:in empty_repo?’
app/controllers/projects_controller.rb:371:in repo_exists?' lib/gitlab/i18n.rb:50:in with_locale’
lib/gitlab/i18n.rb:56:in with_user_locale' app/controllers/application_controller.rb:350:in set_locale’
lib/gitlab/middleware/multipart.rb:95:in call' lib/gitlab/request_profiler/middleware.rb:14:in call’
lib/gitlab/middleware/go.rb:17:in call' lib/gitlab/etag_caching/middleware.rb:11:in call’
lib/gitlab/middleware/rails_queue_duration.rb:22:in call' lib/gitlab/metrics/rack_middleware.rb:15:in block in call’
lib/gitlab/metrics/transaction.rb:53:in run' lib/gitlab/metrics/rack_middleware.rb:15:in call’
lib/gitlab/middleware/read_only/controller.rb:28:in call' lib/gitlab/middleware/read_only.rb:16:in call’
lib/gitlab/request_context.rb:18:in call' lib/gitlab/metrics/requests_rack_middleware.rb:27:in call’
lib/gitlab/middleware/release_env.rb:10:in `call’

2 . repositories 디렉토리를 갖고 있습니다. 해당 디렉토리를 다른 gitlab 서버에서 구동가능하도록 이전이 가능할까요?

3 . repositories 디렉토리 내에서 특정 프로젝트의 소스코드를 추출할 수 있을까요?