ServicesPipeTimeout validity on windows 2012

Elizabeth Riggins 1 Reputation point
2020-10-21T14:12:42.047+00:00

I have been working with a program that runs as a windows service on Windows 2012. In order to simulate a long startup, I added code to sleep for a second in a loop and delay setting dwServiceStatus to SERVICE_RUNNING. dwCheckPoint is updated every time through the loop by calling SetServiceStatus with the updated checkpoint value. All works well as long as I set the service status to SERVICE_RUNNING before two minutes. If I delay longer than 2 minutes, 1053 error occurs (The service did not respond in a timely fashion).

Documentation suggests that ServicesPipeTimeout should allow me to increase the time so I modified HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServicesPipeTimeout and set its value to 300000 decimal (5 minutes) and rebooted. I still get 1053 after 2 minutes so I wonder if this registry value is what controls the service state timeout value in Windows 2012 or if something else needs to be configured ? Is there some hard limit for a maximum timeout value? If this should work, any suggestions how I can investigate why it isn't working for me ?

Thanks.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,912 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fan Fan 15,326 Reputation points Microsoft Vendor
    2020-10-22T07:28:36.133+00:00

    Hi,

    Based on my research ,ServicesPipeTimeout value is not the only reason can cause this error.
    Here are some suggestions for troubleshooting , hope it would be helpful:

    https://appuals.com/how-to-fix-error-1053-the-service-did-not-respond-to-the-start-or-control-request-in-a-timely-fashion/

    Please note: The given technical support contact information belongs to a third party and may vary without notice. Microsoft does not guarantee the information accuracy.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.