Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart chef-client.service after upgrade #248

Open
TimRots opened this issue Apr 26, 2023 · 0 comments
Open

Restart chef-client.service after upgrade #248

TimRots opened this issue Apr 26, 2023 · 0 comments

Comments

@TimRots
Copy link

TimRots commented Apr 26, 2023

While upgrading Chef infra client 17.x to 18.2.7 chef-client.service is not restarted.
This will result in failing chef-client runs as shown below, until the service is restarted

chef-client[748]: [2023-04-26T07:49:43+00:00] INFO: SIGUSR1 received, will run now or after the current run
chef-client[748]: [2023-04-26T07:49:43+00:00] INFO: Forking Chef Infra Client instance to converge...
chef-client[715809]: [2023-04-26T07:49:43+00:00] ERROR: Running exception handlers
chef-client[715809]: [2023-04-26T07:49:43+00:00] ERROR: Exception handlers complete
chef-client[715809]: [2023-04-26T07:49:43+00:00] ERROR: undefined method `URI' for Chef::DataCollector::RunStartMessage:Module
chef-client[748]: [2023-04-26T07:49:43+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef Infra Client run process exited unsuccessfully (exit code 1)

I would expect the chef-client.service to be restarted during the upgrade flow.
Can be reproduced by running kill -USR1 $(pidof ruby):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant