Closed ncostis closed 10 years ago
This message mostly mean you did not upload the cookbook to your server
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]
Well downloading the coockbook from here it came with that name !!!
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.
Oh, i have test the download as zip feature of github and it do that. Your right !
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
do i need to create the user zabbix before installing? And if yes with what credentials?
cookbook should create one for you.
hmmm strangely it does not. My run list is "recipe[database::mysql]", "recipe[mysql::server]", "recipe[zabbix]", "recipe[zabbix::database]", "recipe[zabbix::server]"
I think we have bug,i have make a quick patch you can update the cookbook.
Thank you I have updated the cookbook but the same results. In which file is the patch to compare it?
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
can you past here the /var/chef/cache/chef-stacktrace.out ?
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:in
resource_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:in
method_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:in
instance_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:in
run_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:in
block (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:in
block 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:in
call'
/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:in
step'
/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:in
each_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:in
converge'
/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:in
run'
/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:in
loop'
/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:in
run'
/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:in
load'
/usr/bin/chef-client:19:in `
please update your chef-client.
thank you that solves it. The install was perfect, No i am struggling to see the first page of zabbix hahaha
Okay nice :)
@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
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