Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
sles11sp3
Description
STR:
1. Deploy using blueprint with custom data directory for grafana.
{ "ams-grafana-env": { "properties": { "metrics_grafana_username": "admin", "metrics_grafana_password": "admin", "metrics_grafana_log_dir": "/var/opt/teradata/log/ambari-metrics-grafana", "metrics_grafana_data_dir": "/var/opt/teradata/lib/ambari-metrics-grafana" } } },
2. Grafana start fails.
2016/04/14 17:31:52 [I] Starting Grafana 2016/04/14 17:31:52 [I] Version: 2.6.0, Commit: v2.6.0, Build date: 2015-12-14 09:18:01 -0500 EST 2016/04/14 17:31:52 [I] Configuration Info Config files: [0]: /usr/lib/ambari-metrics-grafana/conf/defaults.ini [1]: /etc/ambari-metrics-grafana/conf/ams-grafana.ini Command lines overrides: [0]: default.paths.data=/var/opt/teradata/lib/ambari-metrics-grafana [1]: default.paths.logs=/var/opt/teradata/log/ambari-metrics-grafana Paths: home: /usr/lib/ambari-metrics-grafana data: /var/lib/ambari-metrics-grafana logs: /var/opt/teradata/log/ambari-metrics-grafana 2016/04/14 17:31:52 [I] Database: sqlite3 2016/04/14 17:31:52 [I] Migrator: Starting DB migration 2016/04/14 17:31:52 [log.go:75 Fatal()] [E] fail to initialize orm engine: Sqlstore::Migration failed err: unable to open database file