We just changed our server’s configuration on the network, and listening tentacles are no longer an option. I am in the process of changing all our tentacles to polling tentacles. While changing 3 machines at once, two of them failed, while the third succeeded. The error is below:
Creating empty configuration file: C:\Octopus\Tentacle\Tentacle.config
Saving instance: Tentacle
A new certificate has been generated and installed. Thumbprint:
THUMB
Generating a new SQUID for the Tentacle…
The new SQUID of this Tentacle is: SQUID
Removing all trusted Octopus servers…
Home directory set to: C:\Octopus
Application directory set to: C:\Octopus\Applications
Services listen port: 10933
Adding certificate to store
Checking connectivity on the server communications port 10943…
A fatal exception occurred
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at Octopus.Tentacle.Commands.RegisterMachineCommand.CheckServerCommunicationsPortIsOpen(Uri serverAddress) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Commands\RegisterMachineCommand.cs:line 157
at Octopus.Tentacle.Commands.RegisterMachineCommand.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Commands\RegisterMachineCommand.cs:line 86
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
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” register-with --instance=“Tentacle” --server=“http://IP:8787” --environment=“QA” --name=“NAME” --username=“USERNAME” --password="********" --comms-style=“TentacleActive” --force --role=“client” --role="interface"
Deleted instance: Tentacle
The below is from the Octopus Server:
ERROR Invalid request
System.Net.ProtocolViolationException: Request syntax was invalid