Hi All, I am facing the following issue and below is the context:
- I am the space manager and have created my API keys.
- I launched an EC2 instance and installed tentacle on it.
- I have created an environment named “test” in Octopus.
- Since I have tried manually registering tentacle from the GUI however that did not work so I am now trying it from the cli using the below command:
.\Tentacle.exe register-with --instance Tentacle --server https://xxxxxx --apiKey API-XXXXXX --force --console --comms-style TentaclePassive --environment test --role testrole --tenant test - I am getting the following error message:
Could not find the environment named test on the Octopus Server. Ensure the environment exists and you have permission to access it.
System.ArgumentException
at Octopus.Client.Operations.RegisterMachineOperation.GetEnvironments
at Octopus.Client.Operations.RegisterMachineOperation.ExecuteAsync
at Octopus.Tentacle.Commands.RegisterMachineCommandBase1.RegisterMachine at Octopus.Tentacle.Commands.RegisterMachineCommandBase
1.StartAsync
at Octopus.Tentacle.Commands.RegisterMachineCommandBase1.Start() at Octopus.Shared.Startup.AbstractCommand.Start(String[] commandLineArguments, ICommandRuntime commandRuntime, OptionSet commonOptions) at Octopus.Shared.Startup.ConsoleHost.Run(Action
1 start, Action shutdown)
at Octopus.Shared.Startup.OctopusProgram.RunHost(ICommandHost host)
at Octopus.Shared.Startup.OctopusProgram.Run()
-------------------------------------------------------------------------------
Terminating process with exit code 100
Full error details are available in the log files at:
C:\Users\Administrator\AppData\Local\Octopus\Logs
D:\Octopus\Logs
If you need help, please send these log files to https://octopus.com/support
- Checked the logs @ D:\Octopus\Logs and they have the same error message as mentioned above with nothing additionally useful.
- I checked my VPC flow logs and it shows the bidirectional traffic between my Octopus server and the tentacle EC2 instance however the traffic is only between TCP 80 and 443 (Should I see the traffic between some other ports as well, e.g. tentacle listening port 10933 and 10943)? BTW, I have allowed all kind of TCP traffice between EC2 and Octpus server in the security groups.
- Please suggest. Thanks in advance!