I’m looking for insight on why the tentacle service might fail to start. A handful of times, we’ve observed these back-to-back errors in our event logs:
A timeout was reached (30000 milliseconds) while waiting for the Octopus Tentacle service to connect.
followed by
The Octopus Tentacle service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.
It’s possible that in the instances where we see these errors, the server was trying an automatic start-up of the service, following a system reboot. The thing is, several other servers experience the system reboot and automatic start-up of the service, yet we don’t see these errors on all such servers.
When we realize the offline status, we manually start the Octopus Tentacle service on the respective server. In these instances, the service starts up just fine.
Is there action we can take, so that we don’t encounter those error messages?
This error occurs if the service takes too long to start up. A couple of things can cause this:
The event log on the machine might be full, or the disk is full
The machine may just be very busy during startup
I’ll modify the Tentacle code to automatically request extra time during startup, but for now you can try modifying the registry to make the error go away. The default timeout is 30 seconds, but you can make it 60 seconds with the instructions below:
Start Registry Editor (Regedit.exe).
To change the value data for the ServicesPipeTimeout DWORD value to 60000 in the Control key, follow these steps:
Locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
Click the Control subkey
Right-click the ServicesPipeTimeout DWORD value, and then click Modify.
Click Decimal.
Type 60000, and then click OK.
If the ServicesPipeTimeout value is not available, add the new DWORD value, and then set its value data to 60000 in the Control key. To do so, follow these steps:
Locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
Click the Control subkey.
On the Edit menu, point to New, and then click DWORD Value.
Type ServicesPipeTimeout, and then press ENTER.
Right-click the ServicesPipeTimeout DWORD value, and then click Modify.
Click Decimal.
Type a value of 60000, and then click OK.
The value is 60000 milliseconds and is equivalent to 60 seconds or to one minute.
Note This change does not take effect until the computer is restarted.
Wow. Thanks, again, for the thorough guidance. We might hold off on making the registry changes until we see the issue occur more frequently, but it’s good to know about that option.