windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

windows_exporter service failed to start on reboot

Open Abhishek-Kraj opened this issue 4 years ago • 4 comments

Hi,

After updates and rebooting the server, the windows_exporter service was not running

The windows_exporter service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

image

Delayed start sc config windows_exporter start= delayed-auto

Restart option sc failure windows_exporter actions= restart/60000/restart/60000/""/60000 reset= 86400

No Help on above configuration

Abhishek-Kraj avatar Sep 21 '21 09:09 Abhishek-Kraj

Try setting WMI as a dependency on the service, and up the 'Restart service after' to 5 minutes. This worked for me.

daveaowen avatar Sep 30 '21 14:09 daveaowen

This issues is very anoying, I had the same and finally I created a scheduled task "start-service" every hour to be sure it runs.

There is no log, no crash event, nothing to troubleshoot...

gillg avatar Feb 01 '22 11:02 gillg

I upgraded all my test systems to 0.18.1 on Monday in preparation for patch Tuesday. There is no real change in the inconsistent restart behavior after Windows update related reboots. This is consistent with prior releases. Service delay start was enabled around 0.16.1 timeframe which improved it from almost 100% failure to 50-60% success.

1 - 2008R2 - started 4 - 2012R2 - 3 started, 1 failed 1 - 2016 - started 1 - 2019 Core - failed 3 - 2019 Standard - 1 started, 2 failed

tbiles avatar Feb 09 '22 18:02 tbiles

Based on another thread, I switched all my windows_exporter test systems to depend on Winmgmt instead of the WMI service. After patch Tuesday reboots overnight, I had similar results, so the dependency service setting doesn't seem to have any affect on reliability from what I can see.

1 - 2008R2 - failed 4 - 2012R2 - 3 started, 1 failed 1 - 2016 - started 1 2019 Core - started 3 - 2019 Standard - 1 started, 2 failed

tbiles avatar May 11 '22 13:05 tbiles

In theory should be solved by https://github.com/prometheus-community/windows_exporter/pull/1047 But I'm not 100% sure.

I have the feeling to always experience some issues after reboot on servers with a high load at boot.

gillg avatar Dec 19 '22 17:12 gillg

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Nov 25 '23 02:11 github-actions[bot]