Cannot start service OctopusDeploy Tentacle on computer

I’ve got two Windows 7 workstations here where we can’t launch the Tentacle service. We’re running Tentacle 6.3.305.

Background
-Tentacle was working fine on these machines. However, our infrastrucutre-wide software monitoring system wasn’t detecting Tentacle on these machines for some reason.
-So we uninstalled Tentacle (was 6.3.305) on these two machines.
-Then rebooted.
-Then reinstalled Tentacle 6.3.305.
-Then rebooted.
-Opened Tentacle Manager. It shows service STOPPED. Tried starting service. Get the message below.

What I’ve tried
-I tried restarting service multiple times from Tentacle Manager.
-I tried restarting service from Services.msc. It fails with “Error 2: the system cannot find the file specified”
-Workstation service is running
-We have Powershell 5.1 installed and .NET Framework 2.0, 3.0, 3,5, 4.0, and 4.8 installed
-We are using Octopus Server 2023.1 (Build 9767) self-hosted

From OctopusTentacle.txt:

2023-09-27 12:26:14.6529 4536 1 INFO ================================================================================
2023-09-27 12:26:14.6689 4536 1 INFO Changed log folder from C:\Users<user redacted>\AppData\Local\Octopus\Logs to C:\Octopus\Logs
2023-09-27 12:26:14.6829 4536 1 INFO Tentacle version 6.3.305 (6.3.305) instance Tentacle
2023-09-27 12:26:14.6829 4536 1 INFO Environment Information:
OperatingSystem: Microsoft Windows 6.1.7601 S
OsBitVersion: x64
Is64BitProcess: True
CurrentUser: <user redacted>
MachineName:
ProcessorCount: 4
CurrentDirectory: C:\Program Files\Octopus Deploy\Tentacle
TempDirectory: C:\Users<user redacted>\AppData\Local\Temp
HostProcessName: Tentacle
PID: 4536
2023-09-27 12:26:14.7490 4536 1 INFO ==== ServiceCommand ====
2023-09-27 12:26:14.7630 4536 1 INFO CommandLine: C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe service --instance Tentacle --start
2023-09-27 12:26:14.7900 4536 1 WARN Failed to start the windows service. Trying again in…00:00:04
2023-09-27 12:26:18.8158 4536 1 WARN Failed to start the windows service. Trying again in…00:00:09
2023-09-27 12:26:27.8306 4536 1 WARN Failed to start the windows service. Trying again in…00:00:16
2023-09-27 12:26:43.8438 4536 1 WARN Failed to start the windows service. Trying again in…00:00:25
2023-09-27 12:27:08.8568 4536 1 WARN Failed to start the windows service. Trying again in…00:00:36
2023-09-27 12:27:44.8890 4536 1 ERROR ===============================================================================
2023-09-27 12:27:45.0880 4536 1 FATAL Cannot start service OctopusDeploy Tentacle on computer ‘.’.
System.InvalidOperationException
at System.ServiceProcess.ServiceController.Start(String args)
at Polly.Policy.<>c__DisplayClass25_0.b__0(Context ctx, CancellationToken ct)
at Polly.RetrySyntax.<>c__DisplayClass12_0.b__1(Context ctx, CancellationToken ct)
at Polly.Retry.RetryEngine.Implementation[TResult](Func3 action, Context context, CancellationToken cancellationToken, IEnumerable1 shouldRetryExceptionPredicates, IEnumerable1 shouldRetryResultPredicates, Func1 policyStateFactory)
at Polly.RetrySyntax.<>c__DisplayClass12_1.b__0(Action2 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute(Action2 action, Context context, CancellationToken cancellationToken)
at Polly.Policy.Execute(Action action)
at Octopus.Tentacle.Startup.WindowsServiceConfigurator.StartService(String thisServiceName, ServiceController controller) in WindowsServiceConfigurator.cs:line 304
at Octopus.Tentacle.Startup.WindowsServiceConfigurator.ConfigureService(String thisServiceName, String exePath, String instance, String configPath, String serviceDescription, ServiceConfigurationState serviceConfigurationState) in WindowsServiceConfigurator.cs:line 115
at Octopus.Tentacle.Startup.WindowsServiceConfigurator.ConfigureServiceByInstanceName(String thisServiceName, String exePath, String instance, String serviceDescription, ServiceConfigurationState serviceConfigurationState) in WindowsServiceConfigurator.cs:line 43
at Octopus.Tentacle.Startup.ServiceCommand.Start() in ServiceCommand.cs:line 117
at Octopus.Tentacle.Startup.AbstractCommand.Start(String commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) in AbstractCommand.cs:line 80
at Octopus.Tentacle.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in ConsoleHost.cs:line 34
at Octopus.Tentacle.Startup.OctopusProgram.RunHost(ICommandHost host) in OctopusProgram.cs:line 204
at Octopus.Tentacle.Startup.OctopusProgram.Run() in OctopusProgram.cs:line 155

–Inner Exception–
The system cannot find the file specified
System.ComponentModel.Win32Exception
2023-09-27 12:27:45.1120 4536 1 FATAL -------------------------------------------------------------------------------
Terminating process with exit code 100
Full error details are available in the log files at:
C:\Octopus\Logs
C:\Users<user redacted>\AppData\Local\Octopus\Logs
If you need help, please send these log files to Help & Support - Octopus Deploy

Hi @rjhansen,

Thanks for reaching out, and I am sorry to hear you are having some trouble getting the Tentacle service started on your Windows 7 workstations, but I’m happy help!

As an initial step towards resolving this quickly, you might try running through our complete Tentacle uninstall guide to see if this cleans up any stale/old records present on the server:

After running through the guide, I would try installing Tentacle again to see if this changes the service startup behavior.

If this doesn’t resolve things, you might try inspecting Windows Event Viewer for any messages/errors relevant to Octopus Deploy/Tentacle, which may shed some more light on what’s happening here.

Lastly, even though this was working before, it would be good to ensure that no AV solutions are impacting the service’s startup. If it helps, we also have an AV whitelisting guide which I will link for your review/reference:

I hope this initial information helps, but let me know what you find out in investigating things further.

Regards,

Britton

Deleting the Tentacle instance from the Tentacle Manager before uninstalling and reinstalling the Tentacle resolved this for me. Thanks for the fast response!

1 Like

Hi @rjhansen,

You’re welcome - thanks for the update, and I’m glad to hear you were able to resolve this!

Cheers,

Britton

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.