Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Authentication failed on step Prepare environments for workload installation #158

@mmoalla

Description

@mmoalla

When i try to Prepare environments for workload installation i can an authentication failed

I use UseSingleOneBox and 2 ADD app one for InterAOSAADConfiguration and second for both hub and scale

i also specify ip address 127.0.0.20 and 127.0.0.21 for the both hub and scale

i test the authenticaion with postman and successfully get token but not in the configuration

Could you help me please ?

Writing scale unit configuration failed with exception: {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"}
Find complete error output in C:\SCMScaleUnitDevTools\src\CLI\bin\x64\Debug\netcoreapp3.1\error.log
Unhandled exception: ScaleUnitManagement.WorkloadSetupOrchestrator.Utilities.AOSClientError: {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"}
at ScaleUnitManagement.WorkloadSetupOrchestrator.Utilities.AOSClient.SendRequest(String path, String payload) in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\Utilities\AOSClient.cs:line 216
at ScaleUnitManagement.WorkloadSetupOrchestrator.Utilities.AOSClient.WriteScaleUnitConfiguration(ScaleUnitEnvironmentConfiguration config) in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\Utilities\AOSClient.cs:line 64
at ScaleUnitManagement.WorkloadSetupOrchestrator.HubConfigurationManager.<>c__DisplayClass3_0.<b__0>d.MoveNext() in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\HubConfigurationManager.cs:line 41
--- End of stack trace from previous location where exception was thrown ---
at ScaleUnitManagement.WorkloadSetupOrchestrator.Utilities.ReliableRun.Execute(Func1 command, String commandName) in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\Utilities\ReliableRun.cs:line 24 at ScaleUnitManagement.WorkloadSetupOrchestrator.HubConfigurationManager.ConfigureHub() in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\HubConfigurationManager.cs:line 41 at ScaleUnitManagement.WorkloadSetupOrchestrator.HubConfigurationManager.Configure() in C:\SCMScaleUnitDevTools\src\ScaleUnitManagement\WorkloadSetupOrchestrator\HubConfigurationManager.cs:line 31 at CLI.Actions.ConfigureEnvironmentAction.ExecuteInScaleUnitContext() in C:\SCMScaleUnitDevTools\src\CLI\Actions\ConfigureEnvironmentAction.cs:line 16 at CLI.ContextualAction.Execute() in C:\SCMScaleUnitDevTools\src\CLI\ContextualAction.cs:line 18 at CLI.Menus.ConfigureEnvironment.ConfigureScaleUnit(Int32 input, String selectionHistory) in C:\SCMScaleUnitDevTools\src\CLI\Menus\ConfigureEnvironment.cs:line 21 at CLIFramework.CLIScreen.RunCommand(List1 options, Int32 number) in C:\SCMScaleUnitDevTools\src\CLIFramework\CLIScreen.cs:line 30
at CLIFramework.SingleSelectScreen.PerformAction(String input) in C:\SCMScaleUnitDevTools\src\CLIFramework\SingleSelectScreen.cs:line 23
at CLIFramework.CLIController.ShowScreen(CLIScreen screen) in C:\SCMScaleUnitDevTools\src\CLIFramework\CLIController.cs:line 40
at CLI.Menus.ConfigureEnvironment.Show(Int32 input, String selectionHistory) in C:\SCMScaleUnitDevTools\src\CLI\Menus\ConfigureEnvironment.cs:line 14
at CLIFramework.CLIScreen.RunCommand(List`1 options, Int32 number) in C:\SCMScaleUnitDevTools\src\CLIFramework\CLIScreen.cs:line 30
at CLIFramework.SingleSelectScreen.PerformAction(String input) in C:\SCMScaleUnitDevTools\src\CLIFramework\SingleSelectScreen.cs:line 23
at CLIFramework.CLIController.ShowScreen(CLIScreen screen) in C:\SCMScaleUnitDevTools\src\CLIFramework\CLIController.cs:line 40
at CLI.Menus.RootMenu.Show(Int32 input, String selectionHistory) in C:\SCMScaleUnitDevTools\src\CLI\Menus\RootMenu.cs:line 24
at CLIFramework.CLIController.Run(CLIMenu rootMenu) in C:\SCMScaleUnitDevTools\src\CLIFramework\CLIController.cs:line 21
at CLI.Program.Main(Boolean singleBoxDeploy, Boolean hubDeploy, Boolean spokeDeploy, Boolean cleanStorage, Boolean drainPipelines, Boolean startPipelines) in C:\SCMScaleUnitDevTools\src\CLI\Program.cs:line 41
at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass18_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass20_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__19_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__6_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass9_0.<b__0>d.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions