Chef-client windows service start hanging


#1

Hi,

I am having mixed success with setting up the chef-client service. I have
about 20% of my machines on which it is failing.

I get the following error:

[2013-09-13T17:45:24+02:00] FATAL: SystemCallError: service[chef-client]
(chef-client::winsw_service line 46) had an error: SystemCallError: The
service did not respond to the start or control request in a timely fashion.

  • StartService: The service did not respond to the start or control request
    in a timely fashion.

. I have the problem if I try to do it through “knife winrm”

. I have the same problem if I pexec onto the machine.

. I have tried to delete the service with "sc delete chef-client"
and then re-run chef client but that only occasionally helps.

. If I jump onto one of the machines with the problem and reinstall
locally as an administrator and install the service as part of the wizard
install then it seems to work fine. I am using the same account

Cheers,

Flo


#2

Florian,

I have seen this happen if the Chef run fails for some reason. You can
look at the logs in C:\chef\log and see what is happening.

Alternately, if you are on Chef >= 11.6, I invite you to try out the
new windows_service recipe, which will use Chef’s new built-in service
manager on Windows. It has not been released yet in the chef-client
cookbook but it is committed to master.

  • Julian

On Fri, Sep 13, 2013 at 12:57 PM, Florian Hehlen
florian.hehlen@gmail.com wrote:

Hi,

I am having mixed success with setting up the chef-client service. I have
about 20% of my machines on which it is failing.

I get the following error:

[2013-09-13T17:45:24+02:00] FATAL: SystemCallError: service[chef-client]
(chef-client::winsw_service line 46) had an error: SystemCallError: The
service did not respond to the start or control request in a timely fashion.

  • StartService: The service did not respond to the start or control request
    in a timely fashion.

· I have the problem if I try to do it through “knife winrm”

· I have the same problem if I pexec onto the machine.

· I have tried to delete the service with “sc delete chef-client”
and then re-run chef client but that only occasionally helps.

· If I jump onto one of the machines with the problem and reinstall
locally as an administrator and install the service as part of the wizard
install then it seems to work fine. I am using the same account

Cheers,

Flo


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]