Chef-client updater fails on first converge

I get the following error when i try to upgrade chef client , Could somebody answer ?

Recipe: chef_client_updater::default

  • chef_client_updater[update chef-client] action update[2017-09-06T15:13:23-05:00] INFO: Processing chef_client_updater[update chef-client] action update (chef_client_updater::default line 20)

    • upgrade rubygems 2.6.8 to latest[2017-09-06T15:13:27-05:00] INFO: mixlib-install gem not found. Installing now
    • chef_gem[mixlib-install] action install[2017-09-06T15:13:27-05:00] INFO: Processing chef_gem[mixlib-install] action install (/var/chef/cache/cookbooks/chef_client_updater/providers/default.rb line 32)
      [2017-09-06T15:13:28-05:00] INFO: chef_gem[mixlib-install] installed mixlib-install at >= 3.3.4

      • install version >= 3.3.4 of package mixlib-install
    • move all files under /opt/chef to /opt/chef.upgrade
    • upgrade chef-client 12.16.42 to 13.3.42[2017-09-06T15:13:37-05:00] WARN: Chef client is running forked with a supervisor. Sending TERM to parent process!
      [2017-09-06T15:13:37-05:00] WARN: New chef-client installed. Forcing chef exit!

    ================================================================================
    Error executing action update on resource 'chef_client_updater[update chef-client]'

    SystemExit

    exit

    Cookbook Trace:

    /var/chef/cache/cookbooks/chef_client_updater/providers/default.rb:171:in exit' /var/chef/cache/cookbooks/chef_client_updater/providers/default.rb:171:in run_post_install_action'
    /var/chef/cache/cookbooks/chef_client_updater/providers/default.rb:256:in block (2 levels) in class_from_file' /var/chef/cache/cookbooks/chef_client_updater/providers/default.rb:255:in block in class_from_file'

    Resource Declaration:

    In /var/chef/cache/cookbooks/chef_client_updater/recipes/default.rb

    20: chef_client_updater 'update chef-client' do
    21: channel node['chef_client_updater']['channel']
    22: version node['chef_client_updater']['version']
    23: prevent_downgrade node['chef_client_updater']['prevent_downgrade']
    24: post_install_action node['chef_client_updater']['post_install_action']
    25: download_url_override node['chef_client_updater']['download_url_override'] if node['chef_client_updater']['download_url_override']
    26: checksum node['chef_client_updater']['checksum'] if node['chef_client_updater']['checksum']
    27: end

    Compiled Resource:

    Declared in /var/chef/cache/cookbooks/chef_client_updater/recipes/default.rb:20:in `from_file'

    chef_client_updater("update chef-client") do
    action [:update]
    updated true
    updated_by_last_action true
    retries 0
    retry_delay 2
    default_guard_interpreter :default
    declared_type :chef_client_updater
    cookbook_name "chef_client_updater"
    recipe_name "default"
    channel "stable"
    version "latest"
    post_install_action "kill"
    end

    Platform:

    x86_64-linux

[2017-09-06T15:13:37-05:00] FATAL: SIGTERM received, stopping
[2017-09-06T15:13:37-05:00] INFO: Running queued delayed notifications before re-raising exception

Running handlers:
[2017-09-06T15:13:37-05:00] ERROR: Running exception handlers
Running handlers complete

Sanju,

This depends on the operating system and init system you are using but this is explained here. That is to say, it’s normal that it throws an exit because that’s the only way in which the new files can be utilized by the next run.

Cheers,