Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana_datasource resource returning nil error #76

Closed
domofactor opened this issue Aug 19, 2015 · 3 comments

Comments

@domofactor
Copy link

commented Aug 19, 2015

I'm seeing some weird results when trying to use the grafana_datasource resource.

The converge finishes, but throws the following nil error and I don't see a datasource in grafana. :\

Any help with this would be greatly appreciated, thanks!

test-kitchen 1.4.2
chef 12.4.1 running chef zero

recipe:

include_recipe "grafana::default"

grafana_datasource 'graphite2' do
  port node['grafana']['ini']['server']['http_port']
  source(
    type: 'Graphite',
    url: 'http://127.0.0.1:8080',
    access: 'proxy',
    isdefault: true
  )
  action :create
end

grafana_dashboard 'basic-health' do
  port node['grafana']['ini']['server']['http_port']
  source "basic-health"
  overwrite false
end

converge:

         * grafana_datasource[graphite2] action create[2015-08-19T02:08:42+00:00] ERROR: nil

           - Creating data source graphite2

       Running handlers:
       Running handlers complete
       Chef Client finished, 3/51 resources updated in 17.68031387 seconds
       Finished converging <grafana-ubuntu-1404> (0m40.85s).
-----> Kitchen is finished. (0m41.37s)
@domofactor domofactor changed the title grafana_dashboard resource returning nil error grafana_datasource resource returning nil error Aug 19, 2015
@domofactor domofactor changed the title grafana_datasource resource returning nil error grafana_datasource and grafana_dashboard resources returning nil error Aug 19, 2015
@domofactor domofactor changed the title grafana_datasource and grafana_dashboard resources returning nil error grafana_datasource resource returning nil error Aug 19, 2015
@domofactor domofactor closed this Aug 19, 2015
@domofactor

This comment has been minimized.

Copy link
Author

commented Aug 19, 2015

Looks like updating to release 2.1 fixed my issue, thanks!

@JonathanTron

This comment has been minimized.

Copy link
Contributor

commented Aug 19, 2015

Great, I'm adding better debug messages in some cases where we previously would have this kind of unhelpful Error: nil.

Thanks for reporting it and following up on it.

JonathanTron added a commit that referenced this issue Aug 19, 2015
@lock

This comment has been minimized.

Copy link

commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.