Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15898

Grafana fails to start when using custom data directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.4.0
    • ambari-metrics
    • 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
      

      Attachments

        1. AMBARI-15898.patch
          4 kB
          Aravindan Vijayan
        2. grafana-logs.tar.gz
          0.8 kB
          Michael Harp

        Activity

          People

            avijayan Aravindan Vijayan
            miharp Michael Harp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: