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:
Steps to reproduce
- Stood up a self-managed 17.0.2 Ultimate instance
- Do not configure a product analytics provider
- Navigate to a project's analytics dashboard: Project => Analytics => Analytics dashboards
- 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 500
s on the GraphQL endpoint:
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)