laradji / zabbix

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

automatic chef-client runs fails with "NoMethodError: undefined method `full_name' for nil:NilClass" #203

Closed okram999 closed 9 years ago

okram999 commented 9 years ago

Using this cookbook to install the agent only.

Manual chef-client triggered on the node completes just fine. But the ones initiated by the chef daemon fails. Below is the error:

[2015-03-25T19:53:39+00:00] INFO: Processing package[redhat-lsb] action install (123ZX_tomcat::zabbix line 1) [2015-03-25T19:53:39+00:00] INFO: Processing directory[/opt/mount1/zabbix] action create (123ZX_tomcat::zabbix line 5) [2015-03-25T19:53:39+00:00] INFO: Processing group[zabbix] action create (zabbix::_agent_common_user line 4) [2015-03-25T19:53:39+00:00] INFO: Processing user[zabbix] action create (zabbix::_agent_common_user line 10) [2015-03-25T19:53:39+00:00] INFO: Processing directory[/opt/mount1/zabbix/etc] action create (zabbix::common line 27) [2015-03-25T19:53:39+00:00] INFO: Processing directory[/opt/mount1/zabbix/var/log/zabbix] action create (zabbix::common line 44) [2015-03-25T19:53:39+00:00] INFO: Processing directory[/var/run/zabbix] action create (zabbix::common line 44) [2015-03-25T19:53:39+00:00] INFO: Processing directory[/opt/mount1/zabbix/agent_include] action create (zabbix::_agent_common_directories line 7) [2015-03-25T19:53:39+00:00] INFO: Processing template[/etc/init.d/zabbix_agentd] action create (zabbix::_agent_common_service line 4) [2015-03-25T19:53:39+00:00] INFO: Processing service[zabbix_agentd] action nothing (zabbix::_agent_common_service line 12) [2015-03-25T19:53:39+00:00] INFO: Processing package[fping] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[curl-devel] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[iksemel-devel] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[iksemel-utils] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[net-snmp-libs] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[net-snmp-devel] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[openssl-devel] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing package[redhat-lsb] action install (zabbix::agent_source line 23) [2015-03-25T19:53:39+00:00] INFO: Processing zabbix_source[install_zabbix_agent] action install_agent (zabbix::agent_source line 36) [2015-03-25T19:53:39+00:00] INFO: Processing chef_gem[zabbixapi] action install (zabbix::_providers_common line 1) [2015-03-25T19:54:43+00:00] INFO: Running queued delayed notifications before re-raising exception [2015-03-25T19:54:43+00:00] ERROR: Running exception handlers [2015-03-25T19:54:43+00:00] ERROR: Exception handlers complete [2015-03-25T19:54:43+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2015-03-25T19:54:43+00:00] INFO: Sending resource update report (run-id: 620fafe3-c3dc-4761-b1aa-0b784c75f31c) [2015-03-25T19:54:43+00:00] ERROR: zabbix_source[install_zabbix_agent](zabbix::agent_source line 36) had an error: NoMethodError: chef_gem[zabbixapi](zabbix::_providers_common line 1) had an error: NoMethodError: undefined method `full_name' for nil:NilClass [2015-03-25T19:54:43+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

okram999 commented 9 years ago

Appears to a localization issue on the nodes.. Monitoring the status of the chef-runs and if all okay - will close this issue as a non-issue

laradji commented 9 years ago

ok tks @okram999