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

Service resource not found #61

Open
dieend opened this issue Aug 31, 2015 · 5 comments
Open

Service resource not found #61

dieend opened this issue Aug 31, 2015 · 5 comments

Comments

@dieend
Copy link

dieend commented Aug 31, 2015

Chef::Exceptions::ResourceNotFound
----------------------------------
resource template[/etc/td-agent/conf.d/application.conf] is configured to notify resource service[td-agent] with action reload, but service[td-agent] cannot be found in the resource collection. template[/etc/td-agent/conf.d/application.conf] is defined in /some/path/to/cookbooks/td-agent/providers/source.rb:27:in `block in class_from_file'

I am using the td_agent_source in deploy's deployment hooks. I'm sure this was working but with new version it's now doesn't works.

@yyuu
Copy link
Member

yyuu commented Aug 31, 2015

What version of Chef are you using?

@dieend
Copy link
Author

dieend commented Aug 31, 2015

$> chef-solo --version
Chef: 11.10.4

@yyuu
Copy link
Member

yyuu commented Aug 31, 2015

Umm. Currently all tests are running on both Chef 11.18.12 and 12.x, and all passed. I've not yet reproduced the error on my VMs for now.

- name: ubuntu-14.04-chef-11.x
driver_config:
image: ubuntu:14.04
require_chef_omnibus: 11.18.12
attributes:
td_agent:
version: 2

@dieend
Copy link
Author

dieend commented Aug 31, 2015

Ah... I am using chef with amazon opsworks, and they uses chef 11.10.4. I guess I'll just locked chef-td-agent for version 2.1.0 then. Thanks!

@yyuu
Copy link
Member

yyuu commented Aug 31, 2015

Actually I didn't test with OpsWorks and there might be something there. As far as I could test with our installations of 11.x, it just worked fine without such error. If you find something wrong with it, please let me know then I'll try to fix it.

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