You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grafana CLI global options _must_ come before command and command options. Currently we are seeing the following error in `less /var/vcap/sys/log/grafana/post-start.stdout.log`:
```
[Wed Nov 20 14:30:12 UTC 2019] Resetting grafana admin password ...
Waiting for grafana to listen on port 3000 (0/60)
Grafana is ready
Incorrect Usage: flag provided but not defined: -homepath
NAME:
Grafana cli admin reset-admin-password - reset-admin-password <new password>
USAGE:
Grafana cli admin reset-admin-password [arguments...]
```
This is because the `grafana-admin-password` script was passing the `-homepath` and `-config` global options _after_ the `admin reset-admin-password` command, which is not supported. I have verified this fix works by manually updating `/var/vcap/jobs/grafana/bin/grafana-admin-password` to fix the argument ordering on a running prometheus deployment and verifying that the script no longer fails.
0 commit comments