Skip to content
Latchkey

Grafana "dashboard provisioning" failed in CI

Grafana provisioning reads dashboard files from disk on startup; when a file is invalid JSON, references a missing folder, or the provisioning path is wrong, Grafana logs "failed to load dashboard" and the dashboard never appears.

What this error means

Grafana logs show "failed to load dashboard from ..." or "Dashboard provisioning error", and the expected dashboard is missing after a provisioned deploy.

Grafana
logger=provisioning.dashboard type=file name=default
  level=error msg="failed to load dashboard from " file=/etc/grafana/provisioning/dashboards/app.json
  error="invalid character '}' looking for beginning of object key string"

Common causes

Invalid dashboard JSON

A trailing comma or malformed object in the exported dashboard JSON makes Grafana fail to parse and load it.

A wrong provisioning path or missing folder

The provider path points at a directory that does not exist in the container, or the target folder is not created, so nothing loads.

How to fix it

Validate the JSON and the provider path

  1. Lint each dashboard JSON file so parse errors are caught in CI.
  2. Confirm the provider path matches where the files are mounted.
  3. Restart Grafana and check the provisioning logs are clean.
Terminal
for f in provisioning/dashboards/*.json; do
  jq empty "$f" || { echo "invalid JSON: $f"; exit 1; }
done

Point the provider at the mounted directory

Ensure the dashboards provider path is the same directory the dashboards are copied into.

provisioning/dashboards/provider.yaml
apiVersion: 1
providers:
  - name: default
    folder: App
    type: file
    options:
      path: /etc/grafana/provisioning/dashboards

How to prevent it

  • Lint dashboard JSON in CI before deploying.
  • Keep the provider path aligned with where files are mounted.
  • Review provisioning logs after each Grafana restart.

Frequently asked questions

What causes "Grafana dashboard provisioning failed"?
A trailing comma or malformed object in the exported dashboard JSON makes Grafana fail to parse and load it.
How do I fix Grafana dashboard provisioning failed?
Validate the JSON and the provider path

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card