laradji / zabbix

Zabbix chef cookbook
Apache License 2.0
91 stars 124 forks source link

Chef::Exceptions::CookbookNotFound: Cookbook zabbix not found. If you're loading zabbix from another cookbook, make sure you configure the dependency in your metadata #124

Closed ncostis closed 10 years ago

ncostis commented 10 years ago

I am trying to install the cookbook in ubuntu 12.10 and i get root@cyclops:~# chef-client [Mon, 16 Dec 2013 12:36:38 +0200] INFO: * Chef 10.12.0 * [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Run List is [recipe[zabbix-master]] [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Run List expands to [zabbix-master] [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Starting Chef Run for cyclops.gt.central [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Running start handlers [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Start handlers complete. [Mon, 16 Dec 2013 12:36:39 +0200] INFO: Loading cookbooks [apache2, apt, ark, aws, bluepill, build-essential, chef_handler, chocolatey, database, firewall, mysql, nginx, ohai, openssl, php-fpm, postgresql, powershell, rsyslog, runit, ufw, windows, xfs, yum, zabbix-master] [Mon, 16 Dec 2013 12:36:41 +0200] INFO: Powershell light-weight provider already initialized -- overriding! [Mon, 16 Dec 2013 12:36:41 +0200] INFO: Powershell light-weight resource already initialized -- overriding! [Mon, 16 Dec 2013 12:36:42 +0200] ERROR: Running exception handlers [Mon, 16 Dec 2013 12:36:42 +0200] FATAL: Saving node information to /var/chef/cache/failed-run-data.json [Mon, 16 Dec 2013 12:36:42 +0200] ERROR: Exception handlers complete [Mon, 16 Dec 2013 12:36:42 +0200] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [Mon, 16 Dec 2013 12:36:42 +0200] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook zabbix not found. If you're loading zabbix from another cookbook, make sure you configure the dependency in your metadata

in the chef-stacktrace.out i get Chef::Exceptions::CookbookNotFound: Cookbook zabbix not found. If you're loading zabbix from another cookbook, make sure you configure the dependency in your metadata and lot more.

Can anyone help?

Thanks Nick

laradji commented 10 years ago

This message mostly mean you did not upload the cookbook to your server

laradji commented 10 years ago

why is it named zabbix-master here ? INFO: Loading cookbooks [apache2, apt, ark, aws, bluepill, build-essential, chef_handler, chocolatey, database, firewall, mysql, nginx, ohai, openssl, php-fpm, postgresql, powershell, rsyslog, runit, ufw, windows, xfs, yum, zabbix-master]

ncostis commented 10 years ago

Well downloading the coockbook from here it came with that name !!!

laradji commented 10 years ago

i don't think so, your git client must have done that. Rename the cookbook to zabbix and upload it to your chef server and change run_list with the good name.

laradji commented 10 years ago

Oh, i have test the download as zip feature of github and it do that. Your right !

ncostis commented 10 years ago

i have changed the cookbook in zabbix and i re install it now i get /usr/bin/chef-client:19:in load' /usr/bin/chef-client:19:in

' [Mon, 16 Dec 2013 12:59:07 +0200] ERROR: Running exception handlers [Mon, 16 Dec 2013 12:59:07 +0200] FATAL: Saving node information to /var/chef/cache/failed-run-data.json [Mon, 16 Dec 2013 12:59:07 +0200] ERROR: Exception handlers complete [Mon, 16 Dec 2013 12:59:07 +0200] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [Mon, 16 Dec 2013 12:59:07 +0200] FATAL: Chef::Exceptions::UserIDNotFound: directory[/var/log/zabbix](zabbix::common line 44) had an error: Chef::Exceptions::UserIDNotFound: cannot determine user id for 'zabbix', does the user exist on this system?

ncostis commented 10 years ago

do i need to create the user zabbix before installing? And if yes with what credentials?

laradji commented 10 years ago

cookbook should create one for you.

ncostis commented 10 years ago

hmmm strangely it does not. My run list is "recipe[database::mysql]", "recipe[mysql::server]", "recipe[zabbix]", "recipe[zabbix::database]", "recipe[zabbix::server]"

laradji commented 10 years ago

I think we have bug,i have make a quick patch you can update the cookbook.

ncostis commented 10 years ago

Thank you I have updated the cookbook but the same results. In which file is the patch to compare it?

ncostis commented 10 years ago

Got it change the server-source.rb and the agent... It worked up to a point Now i got [Mon, 16 Dec 2013 14:02:35 +0200] ERROR: Running exception handlers [Mon, 16 Dec 2013 14:02:38 +0200] FATAL: Saving node information to /var/chef/cache/failed-run-data.json [Mon, 16 Dec 2013 14:02:38 +0200] ERROR: Exception handlers complete [Mon, 16 Dec 2013 14:02:38 +0200] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [Mon, 16 Dec 2013 14:02:38 +0200] FATAL: NameError: zabbix_database[zabbix](zabbix::database line 42) had an error: NameError: Cannot find a resource for converge_by on ubuntu version 12.10

laradji commented 10 years ago

can you past here the /var/chef/cache/chef-stacktrace.out ?

ncostis commented 10 years ago

Yes of course Here it goes

NameError: zabbix_database[zabbix](zabbix::database line 42) had an error: NameError: Cannot find a resource for converge_by on ubuntu version 12.10 /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_platform_map.rb:126:in get' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:667:inresource_for_platform' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:684:in resource_for_node' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/mixin/recipe_definition_dsl_core.rb:58:inmethod_missing' /var/chef/cache/cookbooks/zabbix/providers/database_my_sql.rb:42:in block in class_from_file' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/provider.rb:106:ininstance_eval' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/provider.rb:106:in block in action' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:454:inrun_action' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:49:in run_action' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:inblock (2 levels) in converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in each' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:inblock in converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:94:in block in execute_each_resource' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:incall' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:85:instep' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:92:in execute_each_resource' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:80:inconverge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:330:in converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:163:inrun' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:254:in block in run_application' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:241:inloop' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:241:in run_application' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application.rb:70:inrun' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/bin/chef-client:26:in <top (required)>' /usr/bin/chef-client:19:inload' /usr/bin/chef-client:19:in `

'

laradji commented 10 years ago

please update your chef-client.

ncostis commented 10 years ago

thank you that solves it. The install was perfect, No i am struggling to see the first page of zabbix hahaha

laradji commented 10 years ago

Okay nice :)

ee10b083 commented 9 years ago

@ncostis Can you tell me how you were able to solve this problem, as i was using zabbix 0.8.0 and still facing the same UserId not found problem