From b73685efab549e0a6b324b6fe359f783c13569c7 Mon Sep 17 00:00:00 2001 From: Leon <82407168+sed-i@users.noreply.github.com> Date: Fri, 20 Feb 2026 00:53:10 -0500 Subject: [PATCH 1/2] troubleshoot grafana admin password --- docs/how-to/troubleshooting/index.rst | 1 + .../troubleshoot-grafana-admin-password.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md diff --git a/docs/how-to/troubleshooting/index.rst b/docs/how-to/troubleshooting/index.rst index ad04db8..16efe88 100644 --- a/docs/how-to/troubleshooting/index.rst +++ b/docs/how-to/troubleshooting/index.rst @@ -12,3 +12,4 @@ Troubleshooting Troubleshoot integrations Troubleshoot "no data" in Grafana panels Troubleshoot firing alert rules + Troubleshoot grafana admin password diff --git a/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md b/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md new file mode 100644 index 0000000..9af80a3 --- /dev/null +++ b/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md @@ -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 pebble env: `juju run graf/0 get-admin-password` From 653c0bab1827389a241a4ffcb0ca4e2ce7fb511c Mon Sep 17 00:00:00 2001 From: Leon <82407168+sed-i@users.noreply.github.com> Date: Fri, 20 Feb 2026 00:56:34 -0500 Subject: [PATCH 2/2] Update troubleshooting steps for Grafana admin password Clarified the command description for updating the pebble service environment variable. Signed-off-by: Leon <82407168+sed-i@users.noreply.github.com> --- .../troubleshooting/troubleshoot-grafana-admin-password.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md b/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md index 9af80a3..11b6e1d 100644 --- a/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md +++ b/docs/how-to/troubleshooting/troubleshoot-grafana-admin-password.md @@ -11,4 +11,4 @@ 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 pebble env: `juju run graf/0 get-admin-password` +3. Run the action so the charm updates the pebble service environment variable: `juju run graf/0 get-admin-password`