---
owner_slack: "#govuk-pubworkflow-dev"
title: content-publisher app healthcheck not ok
section: Icinga alerts
layout: manual_layout
parent: "/manual.html"
last_reviewed_on: 2020-02-24
review_in: 6 months
---

There are a few things that this alert can be, you'll need to click on the alert to find out more details on what's gone wrong. There are more details and common fixes listed below.

## Government Data Check

This means that Content Publisher is having trouble updating the data it holds on current and previous governments. Ordinarily it reloads this data from the Publishing API every fifteen minutes and seeing this error means it hasn't happened in at least 6 hours. After 24 hours the cache of government data will clear and the app will stop working as expected. The following suggestions should help to isolate the problem.

- Check [Sentry][] for any recent errors that indicate reasons the job is failing
- Ensure there aren't alerts indicating the Content Publisher sidekiq process isn't running
- Run `PopulateBulkDataJob.perform_now` manually in the [Content Publisher console][console] to see if issues occur. [Link to job][data job]

## Sidekiq Redis

This is a [standard GovukHealthcheck][sidekiq health] that checks content publisher has a connection to Redis via Sidekiq.

## ActiveRecord

This is a [standard GovukHealthcheck][activerecord health] that checks content publisher has a connection to its database via ActiveRecord.

[Sentry]: [https://sentry.io/organizations/govuk/issues/?project=1242052]
[data job]: [https://github.com/alphagov/content-publisher/blob/master/app/jobs/populate_bulk_data_job.rb]
[console]: [https://docs.publishing.service.gov.uk/manual/get-ssh-access.html#running-a-console]
[sidekiq health]: [https://github.com/alphagov/govuk_app_config/blob/master/docs/healthchecks.md#sidekiqredis]
[activerecord health]: [https://github.com/alphagov/govuk_app_config/blob/master/docs/healthchecks.md#activerecord]

Introduce document for content publisher healthcheck alerts
Introduce document for content publisher healthcheck alerts

Trello - https://trello.com/c/FaHAEajH/1318-alert-2ndline-when-we-have-no-cached-data-on-governments

https://github.com/alphagov/content-publisher/pull/1748 introduces extra checks to the content publisher healthcheck endpoint. This introduces documentation for 2nd line to look at in the event that one of these new checks causes an alert.
