Gitlab dashboard 500 after upgrade 12.5.4

After upgrade gitlab CE omnibus 12.0.9 to 12.5.4, the dashboard (only that) get 500:

Completed 500 Internal Server Error in 214ms (ActiveRecord: 37.6ms | Elasticsearch: 0.0ms)

ActionView::Template::Error (object not found - no match for id (80312e84e1af7271380dec9340f4e28ad67a66f3)):
34:
35: .js-projects-list-holder{ data: { qa_selector: ‘projects_list’ } }
36: - if any_projects?(projects)
37: - load_pipeline_status(projects) if pipeline_status
38: %ul.projects-list{ class: css_classes }
39: - projects.each_with_index do |project, i|
40: - css_class = (i >= projects_limit) || project.pending_delete? ? ‘hide’ : nil

lib/gitlab/git/rugged_impl/commit.rb:105:in parents' lib/gitlab/git/rugged_impl/commit.rb:105:in init_from_rugged’
lib/gitlab/git/rugged_impl/commit.rb:62:in init_commit' lib/gitlab/git/commit.rb:190:in initialize’
lib/gitlab/metrics/instrumentation.rb:161:in block in initialize' lib/gitlab/metrics/method_call.rb:36:in measure’
lib/gitlab/metrics/instrumentation.rb:161:in initialize' lib/gitlab/git/commit.rb:142:in new’
lib/gitlab/git/commit.rb:142:in decorate' lib/gitlab/metrics/instrumentation.rb:161:in block in decorate’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:161:in decorate’
lib/gitlab/git/commit.rb:68:in find' lib/gitlab/metrics/instrumentation.rb:161:in block in find’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:161:in find’
app/models/repository.rb:1120:in find_commit' lib/gitlab/metrics/instrumentation.rb:161:in block in find_commit’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:161:in find_commit’
app/models/repository.rb:114:in commit' lib/gitlab/metrics/instrumentation.rb:161:in block in commit’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:161:in commit’
app/models/project.rb:755:in commit' lib/gitlab/metrics/instrumentation.rb:161:in block in commit’
lib/gitlab/metrics/method_call.rb:36:in measure' lib/gitlab/metrics/instrumentation.rb:161:in commit’
lib/gitlab/cache/ci/project_pipeline_status.rb:118:in block in commit' lib/gitlab/utils/strong_memoize.rb:30:in strong_memoize’
lib/gitlab/cache/ci/project_pipeline_status.rb:117:in commit' lib/gitlab/cache/ci/project_pipeline_status.rb:52:in load_status’
lib/gitlab/cache/ci/project_pipeline_status.rb:23:in block in load_in_batch_for_projects' lib/gitlab/cache/ci/project_pipeline_status.rb:21:in load_in_batch_for_projects’
app/helpers/projects_helper.rb:208:in load_pipeline_status' app/views/shared/projects/_list.html.haml:37:in _app_views_shared_projects__list_html_haml__1532895739887572692_69985461545560’
app/views/dashboard/projects/_projects.html.haml:1:in _app_views_dashboard_projects__projects_html_haml__1733044313620565933_69985461501080' app/views/dashboard/projects/index.html.haml:15:in _app_views_dashboard_projects_index_html_haml___1835038743570843610_69985460107580’
app/controllers/application_controller.rb:108:in render' app/controllers/dashboard/projects_controller.rb:60:in block in render_projects’
lib/gitlab/gitaly_client.rb:298:in allow_n_plus_1_calls' app/controllers/dashboard/projects_controller.rb:59:in render_projects’
app/controllers/dashboard/projects_controller.rb:19:in block (2 levels) in index' app/controllers/dashboard/projects_controller.rb:17:in index’
app/controllers/root_controller.rb:20:in block in index' lib/gitlab/gitaly_client.rb:298:in allow_n_plus_1_calls’
app/controllers/root_controller.rb:19:in index' lib/gitlab/session.rb:11:in with_session’
app/controllers/application_controller.rb:450:in set_session_storage' lib/gitlab/i18n.rb:55:in with_locale’
lib/gitlab/i18n.rb:61:in with_user_locale' app/controllers/application_controller.rb:444:in set_locale’
lib/gitlab/middleware/rails_queue_duration.rb:27:in call' lib/gitlab/metrics/rack_middleware.rb:17:in block in call’
lib/gitlab/metrics/transaction.rb:62:in run' lib/gitlab/metrics/rack_middleware.rb:17:in call’
lib/gitlab/request_profiler/middleware.rb:17:in call' lib/gitlab/middleware/go.rb:20:in call’
lib/gitlab/etag_caching/middleware.rb:13:in call' lib/gitlab/middleware/correlation_id.rb:16:in block in call’
lib/gitlab/middleware/correlation_id.rb:15:in call' lib/gitlab/middleware/multipart.rb:117:in call’
lib/gitlab/middleware/read_only/controller.rb:48:in call' lib/gitlab/middleware/read_only.rb:18:in call’
lib/gitlab/middleware/basic_health_check.rb:25:in call' lib/gitlab/request_context.rb:32:in call’
config/initializers/fix_local_cache_middleware.rb:9:in call' lib/gitlab/metrics/requests_rack_middleware.rb:49:in call’
lib/gitlab/middleware/release_env.rb:12:in `call’
Started GET “/-/metrics” for 127.0.0.1 at 2019-12-19 22:53:44 +0100
Processing by MetricsController#index as HTML
Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)

/admin, /explore, /group is 200,OK.

Hi,

please upgrade to 12.5.5 and if the problem persists, create a new issue over at https://gitlab.com/gitlab-org/gitlab/issues - sounds like a bug to me.

Cheers,
Michael

It seems project.commit is having an error that the commit is not found in repository. Please make sure that repository exists and gitaly is operational in general.

1 Like

I had the same issue upgrading to 12.5.4.

In order to solve the issue I downgraded to 12.5.3 and the upgraded again:

sudo apt-get install -y gitlab-ee=12.5.3-ce.0
sudo apt-get upgrade -y

Thanks for the replies!

The situation is that, only with my user have a problem. Or other users, who has the same projects in the “projects/your projects” option.
So I think one of my repo has problem. In the explore projects option, I get 500 in the fifth page of the project list too. Order by last updated, so the wrong repo is relatively old, this is the good news…:slight_smile:
/dashboard/groups OK, every other page of my site OK.
How can i find out what project has error?
The downgrade or the upgrade is not option now.