Skip to content

Re-order the `--homepath` option for Grafana 6.3.5

David Wilkins requested to merge fix-grafana-cli-flag-order into master

It seems that grafana-cli changed the way it accepts flags (https://github.com/grafana/grafana/pull/17617) breaking our ability to configure the grafana password.

On omnibus:

root@gitlab:/opt/gitlab/embedded/service/omnibus-ctl# /opt/gitlab/embedded/bin/grafana-cli admin reset-admin-password --homepath /var/opt/gitlab/grafana NEWPASS
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...]
root@gitlab:/opt/gitlab/embedded/service/omnibus-ctl# 
root@gitlab:/opt/gitlab/embedded/service/omnibus-ctl# 
root@gitlab:/opt/gitlab/embedded/service/omnibus-ctl# /opt/gitlab/embedded/bin/grafana-cli --homepath /var/opt/gitlab/grafana admin reset-admin-password NEWPASS
INFO[11-04|22:57:11] Connecting to DB                         logger=sqlstore dbtype=sqlite3
INFO[11-04|22:57:11] Starting DB migration                    logger=migrator

Admin password changed successfully ✔

root@gitlab:/opt/gitlab/embedded/service/omnibus-ctl#

Merge request reports