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

Cannot find a resource matching service[redis6379] #28

Open
runningman84 opened this issue Sep 23, 2014 · 1 comment
Open

Cannot find a resource matching service[redis6379] #28

runningman84 opened this issue Sep 23, 2014 · 1 comment

Comments

@runningman84
Copy link

The monitor master recipe doesn't work even if I try to put sensu::redis in front of it.

Starting Chef Client, version 11.16.2
resolving cookbooks for run list: ["sensu::redis", "sensu::rabbitmq", "monitor::master"]
Synchronizing Cookbooks:
  - apt
  - sensu
  - yum
  - chef_handler
  - windows
  - rabbitmq
  - yum-erlang_solutions
  - erlang
  - yum-epel
  - build-essential
  - redisio
  - ulimit
  - sudo
  - monitor
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/sensu/recipes/redis.rb
================================================================================

Chef::Exceptions::ResourceNotFound
----------------------------------
Cannot find a resource matching service[redis6379] (did you define it first?)

Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/redisio/recipes/enable.rb:25:in `block in from_file'
  /var/chef/cache/cookbooks/redisio/recipes/enable.rb:23:in `each'
  /var/chef/cache/cookbooks/redisio/recipes/enable.rb:23:in `from_file'
  /var/chef/cache/cookbooks/sensu/recipes/redis.rb:23:in `from_file'

Relevant File Content:
----------------------
/var/chef/cache/cookbooks/redisio/recipes/enable.rb:

 18:  # limitations under the License.
 19:  #
 20:  
 21:  redis = node['redisio']
 22:  
 23:  redis['servers'].each do |current_server|
 24:    server_name = current_server["name"] || current_server["port"]
 25>>   resource = resources("service[redis#{server_name}]")
 26:    resource.action Array(resource.action)
 27:    resource.action << :start
 28:    resource.action << :enable
 29:  end
 30:  


Running handlers:
[2014-09-23T14:43:43+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-09-23T14:43:43+00:00] ERROR: Exception handlers complete
[2014-09-23T14:43:43+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 5.382873795 seconds
[2014-09-23T14:43:43+00:00] ERROR: Cannot find a resource matching service[redis6379] (did you define it first?)
[2014-09-23T14:43:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@danrex
Copy link

danrex commented Oct 6, 2014

This seems to be an issue with the 2.x version of the redisio cookbook. Version 1.7.1 seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants