Troubleshoot grafana admin passwordΒΆ

Compare the output of:

  • Charm action: juju run graf/0 get-admin-password

  • Pebble plan: juju ssh --container grafana graf/0 /charm/bin/pebble plan | grep GF_SECURITY_ADMIN_PASSWORD

  • Secret content: Obtain secret id from juju secrets and then juju show-secret d6buvufmp25c7am9qqtg --reveal

All 3 should be identical. If they are not identical,

  1. Manually reset the admin password, juju ssh --container grafana graf/0 grafana cli --config /etc/grafana/grafana-config.ini admin reset-admin-password pa55w0rd

  2. Update the secret with the same: juju update-secret d6buvufmp25c7am9qqtg password=pa55w0rd

  3. Run the action so the charm updates the pebble service environment variable: juju run graf/0 get-admin-password