How to Restart an Analytics Dashboard After an Abrupt Server Restart?

Article ID:218134827
1 minute readKnowledge base

Issue

After restarting your Jenkins server or a crash, the analytics dashboard is not showing. The error shows something like this:

com.cloudbees.opscenter.elasticsearch.ElasticsearchInitializer onStarted
SEVERE: Failed to initialize Elasticsearch
java.io.IOException: Failed to load dashboards

or

java.lang.IllegalStateException: Tried to set value from future which is not done

Environment

  • CloudBees Operations Center

  • CloudBees Jenkins Enterprise

  • Linux

Resolution

  1. Stop Elasticsearch

  2. Deleted the old /opt/vgi/analytics/data

  3. Create a new "data" folder

  4. Stop CJOC

  5. Restarted Elasticsearch

  6. Restarted CJOC

  7. Reenable Analytics reporting.