chef-boneyard / opscode-pushy-client

Client API for Pushy
Apache License 2.0
12 stars 14 forks source link

while running chef-client, i am getting checksum mismatch error #196

Closed AnamikaN closed 4 years ago

AnamikaN commented 4 years ago

Running handlers complete [2020-02-14T04:17:44+00:00] ERROR: Exception handlers complete Chef Infra Client failed. 0 resources updated in 08 seconds [2020-02-14T04:17:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2020-02-14T04:17:44+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2020-02-14T04:17:44+00:00] FATAL: Chef::Exceptions::ChecksumMismatch: remote_file[/var/chef/cache/push-jobs] (push-jobs::package line 34) had an error: Chef::Exceptions::ChecksumMismatch: Checksum on resource (f318c7) does not match checksum on content (057ad3)

if i download the file, and check its checksum i get below value- default['push_jobs']['package_url'] = 'https://supermarket.chef.io/cookbooks/push-jobs' default['push_jobs']['package_checksum'] = 'f318c7bc794d71e73679f73eaaa38952b598a5fec898e6dae5dd36899692ee86' default['push_jobs']['package_version'] = '5.3.0'

if i check sha checksum on client node, i get below which is exactly same as i mentioned in push jobs -> default.rb file

[root@ip-xx-xxx-xxx-xxx ~]# ls push-jobs-5.3.0.tar.gz [root@ip-xx-xxx-xxx-xxx ~]# sha256sum push-jobs-5.3.0.tar.gz f318c7bc794d71e73679f73eaaa38952b598a5fec898e6dae5dd36899692ee86 push-jobs-5.3.0.tar.gz

AnamikaN commented 4 years ago

i found the solution. I updated values as below-

default['push_jobs']['package_url'] = 'https://packages.chef.io/files/stable/push-jobs-client/2.5.6/el/7/push-jobs-client-2.5.6-1.el7.x86_64.rpm' default['push_jobs']['package_checksum'] = '72f38f3e370532224c25f39cebe9c787bea89508673caef10dc7dc6c2769b795' default['push_jobs']['package_version'] = nil