Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/how-to/troubleshooting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Troubleshooting
Troubleshoot integrations <troubleshoot-integrations>
Troubleshoot "no data" in Grafana panels <troubleshoot-no-data-in-grafana-panels>
Troubleshoot firing alert rules <troubleshoot-firing-alert-rules>
Troubleshoot grafana admin password <troubleshoot-grafana-admin-password>
14 changes: 14 additions & 0 deletions docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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](https://grafana.com/docs/grafana/latest/administration/cli/#reset-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`