laradji / zabbix

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

Not able to found source locations #218

Open kmayer10 opened 8 years ago

kmayer10 commented 8 years ago

Hi,

I am new to chef and trying to learn the same. If you can help me out to understand where you have mentioned the links in cookbook that are used to download zabbix tar file and or any other installer.

Also, how we can add database recipe to this...

Thanks in advance for your support.

kmayer10 commented 8 years ago

Getting below error while running the cookbook:

       Error executing action `create` on resource 'remote_file[/opt/zabbix-ZABBIX-Latest-Stable-2.0.3.tar.gz]'
       ================================================================================

       Chef::Exceptions::ContentLengthMismatch
       ---------------------------------------
       Response body length 524547 does not match HTTP Content-Length header 12329606.
       This error is most often caused by network issues (proxies, etc) outside of chef-client.

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/zabbix/providers/source.rb

         6:     remote_file tar_path do
         7:       source new_resource.source_url
         8:       mode '0644'
         9:       action :create
        10:     end
        11:     new_resource.updated_by_last_action(true)

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/zabbix/providers/source.rb:6:in `block in class_from_file'

       remote_file("/opt/zabbix-ZABBIX-Latest-Stable-2.0.3.tar.gz") do
         provider Chef::Provider::RemoteFile
         action [:create]
         retries 0
         retry_delay 2
         default_guard_interpreter :default
         source ["http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.3/zabbix-2.0.3.tar.gz"]
         use_etag true
         use_last_modified true
         declared_type :remote_file
         cookbook_name "zabbix"
         atomic_update true
         path "/opt/zabbix-ZABBIX-Latest-Stable-2.0.3.tar.gz"
         mode "0644"
       end

       Platform:
       ---------
       x86_64-linux

   Recipe: zabbix::_agent_common_service
     * service[zabbix_agentd] action start (up to date)
     * service[zabbix_agentd] action enable (up to date)

   Running handlers:
   [2016-05-19T19:37:19+02:00] ERROR: Running exception handlers
   Running handlers complete
   [2016-05-19T19:37:19+02:00] ERROR: Exception handlers complete
   Chef Client failed. 23 resources updated in 52 minutes 27 seconds
   [2016-05-19T19:37:19+02:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2016-05-19T19:37:19+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2016-05-19T19:37:19+02:00] ERROR: remote_file[/opt/zabbix-ZABBIX-Latest-Stable-2.0.3.tar.gz] (/tmp/kitchen/cache/cookbooks/zabbix/providers/source.rb line 6) had an error: Chef::Exceptions::ContentLengthMismatch: Response body length 524547 does not match HTTP Content-Length header 12329606.
   This error is most often caused by network issues (proxies, etc) outside of chef-client.

   [2016-05-19T19:37:20+02:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Converge failed on instance . Please see .kitchen/logs/default-centos7.log for more details ------Exception------- Class: Kitchen::ActionFailed Message: SSH exited (1) for command: [sh -c '

sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889 ']


zlib(finalizer): the stream was freed prematurely.