Open cmoad opened 9 years ago
Windows is throwing an error when trying to create the Zabbix folder which already exists because it was created by chocolatey.
Recipe: zabbix::common * directory[C:/Program Files/Zabbix Agent] action create[2015-02-18T18:04:17+00:00] INFO: Processing directory[C:/Prog ram Files/Zabbix Agent] action create (zabbix::common line 19) * Cannot create directory[C:/Program Files/Zabbix Agent] at C:/Program Files/Zabbix Agent due to insufficient permis sions ================================================================================ Error executing action `create` on resource 'directory[C:/Program Files/Zabbix Agent]' ================================================================================ Chef::Exceptions::InsufficientPermissions ----------------------------------------- Cannot create directory[C:/Program Files/Zabbix Agent] at C:/Program Files/Zabbix Agent due to insufficient permissi ons Resource Declaration: --------------------- # In c:/chef/cache/cookbooks/zabbix/recipes/common.rb 19: directory dir do 20: owner 'Administrator' 21: rights :read, 'Everyone', :applies_to_children => true 22: recursive true 23: end 24: end Compiled Resource: ------------------ # Declared in c:/chef/cache/cookbooks/zabbix/recipes/common.rb:19:in `block in from_file' directory("C:/Program Files/Zabbix Agent") do action :create retries 0 retry_delay 2 default_guard_interpreter :default path "C:/Program Files/Zabbix Agent" recursive true declared_type :directory cookbook_name "zabbix" recipe_name "common" owner "Administrator" rights [{:permissions=>:read, :principals=>"Everyone", :applies_to_children=>true}] end [2015-02-18T18:04:17+00:00] INFO: Running queued delayed notifications before re-raising exception Running handlers: [2015-02-18T18:04:17+00:00] ERROR: Running exception handlers Running handlers complete [2015-02-18T18:04:17+00:00] ERROR: Exception handlers complete [2015-02-18T18:04:17+00:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out Chef Client failed. 3 resources updated in 86.560313 seconds [2015-02-18T18:04:17+00:00] INFO: Sending resource update report (run-id: 897903f6-e4c0-42cb-9576-5d7a025faabf) [2015-02-18T18:04:17+00:00] FATAL: Chef::Exceptions::InsufficientPermissions: directory[C:/Program Files/Zabbix Agent] ( zabbix::common line 19) had an error: Chef::Exceptions::InsufficientPermissions: Cannot create directory[C:/Program File s/Zabbix Agent] at C:/Program Files/Zabbix Agent due to insufficient permissions
Windows is throwing an error when trying to create the Zabbix folder which already exists because it was created by chocolatey.