After I upgraded all our tentacles to 3.15.6, the tentacle on one of our machines became completely unusable. All commands failed with roughly the same error. I could not start the service, nor reinstall it. I force removed the service and reinstalled, it made no difference. Neither did rebooting.
In the end I downgraded the tentacle to 3.15.2, and that solved the problem. Tried reinstalling 3.15.6 and the same problem immediately appeared.
On other servers, 3.15.6 runs without any problems.
The error that I get is as follows:
Error: Unhandled Exception: System.Exception: Invalid logging configuration: missing target 'stdout'
Error: at Octopus.Shared.Startup.OctopusProgram.AssertLoggingConfigurationIsCorrect()
Error: at Octopus.Shared.Startup.OctopusProgram.Run()
Error: at Octopus.Tentacle.Program.Main(String[] args)
The previous command returned a non-zero exit code of: -532462766
The command that failed was: "C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" service --instance "Tentacle" --stop
I saw the same issues on a couple of our tentacles this morning. The issue seems to not be version related, but related to cruft left over from previous Tentacle version pre-upgrade. The non-functional Tentacle dir (C:\Program Files\Octopus Deploy\Tentacle) contained the following files:
Note for instance the presence of Raven.Smuggler.exe - there seems to be a lot of stuff left over from earlier versions.
A working 3.15.6 Tentacle on a different machine contained a lot fewer files:
Replacing the contents of the Tentacle folder (which, presumably ends up the same place as uninstalling/deleting the folder and reinstalling 3.15.6) made the faulty Tentacle work again.