Failure with gdk install and reset-data
Overview
Doing a gdk install in Ubuntu 20.04 (running on Windows 10 WSL 2) or gdk reset-data fails:
== Seed from /home/epirat/gitlab-development-kit/gitlab/db/fixtures/development/07_milestones.rb
........................................
OK
== Seed from /home/epirat/gitlab-development-kit/gitlab/db/fixtures/development/09_issues.rb
Seeding issues for the 'gitlab-org/gitlab-test' project
rake aborted!
Gitlab::Git::CommandError: 2:accessor call: route repository accessor: get synced node: get shard for "default": primary is not healthy.
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/git/repository.rb:94:in `rescue in root_ref'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/git/repository.rb:89:in `root_ref'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:516:in `root_ref'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:92:in `block (2 levels) in cache_method_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:44:in `fetch_without_caching_false'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:187:in `block (2 levels) in cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/null_request_store.rb:34:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/safe_request_store.rb:12:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:25:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:186:in `block in cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:200:in `block in memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:209:in `no_repository_fallback'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:199:in `memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:185:in `cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:91:in `block in cache_method_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:645:in `head_commit'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:656:in `tree'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:1009:in `file_on_head'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:568:in `block in avatar'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client.rb:321:in `allow_n_plus_1_calls'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:567:in `avatar'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:21:in `block (2 levels) in cache_method'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:25:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:160:in `block in cache_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:200:in `block in memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:209:in `no_repository_fallback'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:199:in `memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:159:in `cache_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:20:in `block in cache_method'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1392:in `avatar_in_git'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1396:in `avatar_url'
/home/epirat/gitlab-development-kit/gitlab/app/models/concerns/avatarable.rb:31:in `avatar_url'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1557:in `hook_attrs'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/hook_data/issuable_builder.rb:15:in `build'
/home/epirat/gitlab-development-kit/gitlab/app/models/concerns/issuable.rb:471:in `to_hook_data'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/base_service.rb:8:in `hook_data'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/base_service.rb:55:in `execute_hooks'
/home/epirat/gitlab-development-kit/gitlab/app/services/issuable_base_service.rb:160:in `create'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/create_service.rb:15:in `execute'
/home/epirat/gitlab-development-kit/gitlab/ee/app/services/ee/issues/create_service.rb:17:in `execute'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:33:in `block (2 levels) in seed'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:22:in `times'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:22:in `block in seed'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:21:in `loop'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:21:in `seed'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:33:in `block (4 levels) in <main>'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:30:in `each'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:30:in `block (3 levels) in <main>'
(eval):4:in `block (3 levels) in run_file'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:91:in `block in quiet'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:122:in `without_statement_timeout'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:90:in `quiet'
(eval):3:in `block (2 levels) in run_file'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:36:in `setup_db'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:7:in `block (2 levels) in <main>'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/dev.rake:9:in `block (2 levels) in <main>'
/home/epirat/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `load'
/home/epirat/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `<main>'
Caused by:
GRPC::Unknown: 2:accessor call: route repository accessor: get synced node: get shard for "default": primary is not healthy. debug_error_string:{"created":"@1614853579.694163700","description":"Error received from peer unix:/home/epirat/gitlab-development-kit/praefect.socket","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"accessor call: route repository accessor: get synced node: get shard for "default": primary is not healthy","grpc_status":2}
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client.rb:177:in `execute'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client/call.rb:18:in `block in call'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client/call.rb:55:in `recording_request'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client/call.rb:17:in `call'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client.rb:167:in `call'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client/ref_service.rb:39:in `default_branch_name'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/git/repository.rb:90:in `root_ref'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:516:in `root_ref'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:92:in `block (2 levels) in cache_method_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:44:in `fetch_without_caching_false'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:187:in `block (2 levels) in cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/null_request_store.rb:34:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/safe_request_store.rb:12:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:25:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:186:in `block in cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:200:in `block in memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:209:in `no_repository_fallback'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:199:in `memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:185:in `cache_method_output_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:91:in `block in cache_method_asymmetrically'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:645:in `head_commit'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:656:in `tree'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:1009:in `file_on_head'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:568:in `block in avatar'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/gitaly_client.rb:321:in `allow_n_plus_1_calls'
/home/epirat/gitlab-development-kit/gitlab/app/models/repository.rb:567:in `avatar'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:21:in `block (2 levels) in cache_method'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache.rb:25:in `fetch'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:160:in `block in cache_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/utils/strong_memoize.rb:30:in `strong_memoize'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:200:in `block in memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:209:in `no_repository_fallback'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:199:in `memoize_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:159:in `cache_method_output'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/repository_cache_adapter.rb:20:in `block in cache_method'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1392:in `avatar_in_git'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1396:in `avatar_url'
/home/epirat/gitlab-development-kit/gitlab/app/models/concerns/avatarable.rb:31:in `avatar_url'
/home/epirat/gitlab-development-kit/gitlab/app/models/project.rb:1557:in `hook_attrs'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/hook_data/issuable_builder.rb:15:in `build'
/home/epirat/gitlab-development-kit/gitlab/app/models/concerns/issuable.rb:471:in `to_hook_data'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/base_service.rb:8:in `hook_data'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/base_service.rb:55:in `execute_hooks'
/home/epirat/gitlab-development-kit/gitlab/app/services/issuable_base_service.rb:160:in `create'
/home/epirat/gitlab-development-kit/gitlab/app/services/issues/create_service.rb:15:in `execute'
/home/epirat/gitlab-development-kit/gitlab/ee/app/services/ee/issues/create_service.rb:17:in `execute'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:33:in `block (2 levels) in seed'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:22:in `times'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:22:in `block in seed'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:21:in `loop'
/home/epirat/gitlab-development-kit/gitlab/lib/quality/seeders/issues.rb:21:in `seed'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:33:in `block (4 levels) in <main>'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:30:in `each'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/seed.rake:30:in `block (3 levels) in <main>'
(eval):4:in `block (3 levels) in run_file'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:91:in `block in quiet'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:122:in `without_statement_timeout'
/home/epirat/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:90:in `quiet'
(eval):3:in `block (2 levels) in run_file'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:36:in `setup_db'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:7:in `block (2 levels) in <main>'
/home/epirat/gitlab-development-kit/gitlab/lib/tasks/dev.rake:9:in `block (2 levels) in <main>'
/home/epirat/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `load'
/home/epirat/.asdf/installs/ruby/2.7.2/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:seed:issues
(See full trace by running task with --trace)
support/bootstrap-rails failed
make: *** [Makefile:731: postgresql-seed-rails] Error 1
❌️ ERROR: Failed to reset data.
-------------------------------------------------------
You can try the following that may be of assistance:
- Run 'gdk doctor'.
- Visit the troubleshooting documentation:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/master/doc/troubleshooting.md.
- Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to
see if there are known issues.
- Run 'gdk reset-data' if appropriate.
- Run 'gdk pristine' which will restore your GDK to a pristine state.
-------------------------------------------------------
Environment (optional)
- Operating System: Windows 10 Host with Ubuntu 20.04 in WSL 2
- The contents of your
gdk.yml
: Empty - Ruby version:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
- GDK version:
006adc13