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, IEnumerable
1 shouldRetryExceptionPredicates, IEnumerable1 shouldRetryResultPredicates, Func
1 policyStateFactory)
at Polly.RetrySyntax.<>c__DisplayClass12_1.b__0(Action2 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute(Action
2 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