{"action":"created","issue":{"url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/81","labels_url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/81/comments","events_url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/81/events","html_url":"https://github.com/JonathanTron/chef-grafana/issues/81","id":103471598,"number":81,"title":"undefined method `each' for nil:NilClass","user":{"login":"kemra102","id":1282143,"avatar_url":"https://avatars.githubusercontent.com/u/1282143?v=3","gravatar_id":"","url":"https://api.github.com/users/kemra102","html_url":"https://github.com/kemra102","followers_url":"https://api.github.com/users/kemra102/followers","following_url":"https://api.github.com/users/kemra102/following{/other_user}","gists_url":"https://api.github.com/users/kemra102/gists{/gist_id}","starred_url":"https://api.github.com/users/kemra102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemra102/subscriptions","organizations_url":"https://api.github.com/users/kemra102/orgs","repos_url":"https://api.github.com/users/kemra102/repos","events_url":"https://api.github.com/users/kemra102/events{/privacy}","received_events_url":"https://api.github.com/users/kemra102/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JonathanTron/chef-grafana/labels/2.x","name":"2.x","color":"bfd4f2"},{"url":"https://api.github.com/repos/JonathanTron/chef-grafana/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"lanyonm","id":748947,"avatar_url":"https://avatars.githubusercontent.com/u/748947?v=3","gravatar_id":"","url":"https://api.github.com/users/lanyonm","html_url":"https://github.com/lanyonm","followers_url":"https://api.github.com/users/lanyonm/followers","following_url":"https://api.github.com/users/lanyonm/following{/other_user}","gists_url":"https://api.github.com/users/lanyonm/gists{/gist_id}","starred_url":"https://api.github.com/users/lanyonm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanyonm/subscriptions","organizations_url":"https://api.github.com/users/lanyonm/orgs","repos_url":"https://api.github.com/users/lanyonm/repos","events_url":"https://api.github.com/users/lanyonm/events{/privacy}","received_events_url":"https://api.github.com/users/lanyonm/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-08-27T09:56:55Z","updated_at":"2015-09-03T13:06:16Z","closed_at":"2015-09-03T13:06:16Z","body":"```\r\n* grafana_datasource[influxdb] action create_if_missing\r\n    \r\n    ================================================================================\r\n    Error executing action `create_if_missing` on resource 'grafana_datasource[influxdb]'\r\n    ================================================================================\r\n    \r\n    NoMethodError\r\n    -------------\r\n    undefined method `each' for nil:NilClass\r\n    \r\n    Cookbook Trace:\r\n    ---------------\r\n    /var/chef/cache/cookbooks/grafana/providers/datasource.rb:31:in `create'\r\n    /var/chef/cache/cookbooks/grafana/providers/datasource.rb:16:in `block in class_from_file'\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/azsb_graphing/recipes/default.rb\r\n    \r\n     53: grafana_datasource 'influxdb' do\r\n     54:   source(\r\n     55:     type: 'influxdb_09',\r\n     56:     url: 'http://127.0.0.1:8086',\r\n     57:     access: 'proxy',\r\n     58:     database: 'grafana',\r\n     59:     isdefault: true\r\n     60:   )\r\n     61:   action :create_if_missing\r\n     62: end\r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/azsb_graphing/recipes/default.rb:53:in `from_file'\r\n    \r\n    grafana_datasource(\"influxdb\") do\r\n      action [:create_if_missing]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      declared_type :grafana_datasource\r\n      cookbook_name \"azsb_graphing\"\r\n      recipe_name \"default\"\r\n      source {:type=>\"influxdb_09\", :url=>\"http://127.0.0.1:8086\", :access=>\"proxy\", :database=>\"grafana\", :isdefault=>true, :name=>\"influxdb\"}\r\n      source_name \"influxdb\"\r\n      host \"localhost\"\r\n      port 3000\r\n      user \"admin\"\r\n      password \"admin\"\r\n    end\r\n```\r\n\r\nThe above worked in our testing on Vagrant but not when we pushed it out to Azure.\r\n\r\n```\r\n$ sudo chef-client --version\r\nChef: 12.4.1\r\n```\r\n\r\nRunning on CentOS 6.6 with the latest version of the cookbook from the supermarket."},"comment":{"url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/comments/137434804","html_url":"https://github.com/JonathanTron/chef-grafana/issues/81#issuecomment-137434804","issue_url":"https://api.github.com/repos/JonathanTron/chef-grafana/issues/81","id":137434804,"user":{"login":"lanyonm","id":748947,"avatar_url":"https://avatars.githubusercontent.com/u/748947?v=3","gravatar_id":"","url":"https://api.github.com/users/lanyonm","html_url":"https://github.com/lanyonm","followers_url":"https://api.github.com/users/lanyonm/followers","following_url":"https://api.github.com/users/lanyonm/following{/other_user}","gists_url":"https://api.github.com/users/lanyonm/gists{/gist_id}","starred_url":"https://api.github.com/users/lanyonm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanyonm/subscriptions","organizations_url":"https://api.github.com/users/lanyonm/orgs","repos_url":"https://api.github.com/users/lanyonm/repos","events_url":"https://api.github.com/users/lanyonm/events{/privacy}","received_events_url":"https://api.github.com/users/lanyonm/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T13:06:16Z","updated_at":"2015-09-03T13:06:16Z","body":"We've seen a few tickets where folks have seen Grafana fail to start on the initial install. We'll keep an eye out for whether this is happen on one OS or many."}}