Critical exception while creating a Tentacle instance

Hi,

I am getting below exception while trying to install the tentacle instance on a Win 2008 R2 box. Tried this one couple other Win 2008 R2 boxes and found them working as expected.

Error details:
Creating empty configuration file: E:\Octopus\Tentacle\Tentacle.config
Saving instance: Tentacle

A fatal exception occurred
System.IO.FileNotFoundException: Could not load file or assembly ‘Octopus.Shared.XmlSerializers’ or one of its dependencies. The system cannot find the file specified.
File name: 'Octopus.Shared.XmlSerializers’
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.LoadWithPartialNameInternal(AssemblyName an, Evidence securityEvidence, StackCrawlMark& stackMark)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Octopus.Shared.Security.CertificateGenerator.Generate(String fullName, Boolean exportable) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Security\CertificateGenerator.cs:line 27
at Octopus.Shared.Configuration.TentacleConfiguration.GenerateNewCertificate() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Configuration\TentacleConfiguration.cs:line 158
at Octopus.Tentacle.Commands.NewCertificateCommand.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Commands\NewCertificateCommand.cs:line 35
at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\ConsoleHost.cs:line 36

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Error: The previous command returned a non-zero exit code of: 100
Error: The command that failed was: “C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” new-certificate --instance=“Tentacle” --if-blank
Deleted instance: Tentacle

The steps script shown by the Install tentacle wizard is as below:

“C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” create-instance --instance=“Tentacle” --config=“E:\Octopus\Tentacle\Tentacle.config”
“C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” new-certificate --instance=“Tentacle” --if-blank
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" new-squid --instance=“Tentacle”
“C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” configure --instance=“Tentacle” --reset-trust
"C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe" configure --instance=“Tentacle” --home=“E:\Octopus” --app=“E:\Octopus\Applications” --port=“10933"
“C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” configure --instance=“Tentacle” --trust=”{server thumbprint}"
“C:\Program Files\Octopus Deploy\Tentacle\Tentacle.exe” service --instance=“Tentacle” --install --start

I have used Octopus.Tentacle.2.3.6.1385-x64 installter to install the tentacle.

Any help to resolve this would be highly appreciated.

Thanks,
Siva

Hi Sivakumar,

Thanks for getting in touch! It looks like your server is missing a Windows patch, which results in errors being masked with that serialization error - it’s something we’ve seen a few times. Can you try installing the latest Windows updates, and if that doesn’t work, install this hotfix:

http://support.microsoft.com/kb/2683913/en-us

Paul

Thank you Paul for the quick response. We will try this and see if this works.

On May 15, 2014, at 1:02 PM, “Paul Stovell” <tender2+dedb5b2d0747eea32ede1d29fc3f53cd95191affb@tenderapp.commailto:tender2+dedb5b2d0747eea32ede1d29fc3f53cd95191affb@tenderapp.com> wrote: