Skip to content

Unclear error "Response not successful: Received status code 500" when trying to view group's analytics dashboard

Summary

When trying to view the Analytics Dashboard of a project on an instance that does not have a product analytics provider configured, a vague error appears in the UI:

Response not successful: Received status code 500

Image:

Screenshot_2024-06-17_at_14.44.59

Steps to reproduce

  1. Stood up a self-managed 17.0.2 Ultimate instance
  2. Do not configure a product analytics provider
  3. Navigate to a project's analytics dashboard: Project => Analytics => Analytics dashboards
  4. Observe error Response not successful: Received status code 500 returned in the UI

Example Project

What is the current bug behavior?

We see an unclear 500 error in the UI

What is the expected correct behavior?

The error message should inform the user that the analytics dashboard requires further configuration

Relevant logs and/or screenshots

In exceptions_json.log we see "exception.message": "No such file or directory @ rb_check_realpath_internal - ee/app/validators/json_schemas/analytics_visualization.json"

One can also see 500s on the GraphQL endpoint:

8818

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Brad Sevy