TF400813: 资源不可用于匿名访问。需要进行客户端身份验证。
Polecenie usuń agenta potoku:
Jeśli okaże się, że usunięcie nie może się powiodować, błąd zostanie zgłoszony jak powyżej. Szczegółowy dziennik błędów wygląda następująco:
[2020-09-08 13:11:34Z WARN VisualStudioServices] Instancja dostawcy tokenów w Basic wymaga 6503226 interaktywnego komunikatu, który nie jest dozwolony przez obecne ustawienia [2020-09-08 13:11:34Z ERR VisualStudioServices] GET request tohttps://xx.itsvse.com/_apis/conn ... mp;lastChangeId64=8nie jest autoryzowany. Szczegóły: TF400813: Zasoby nie są dostępne dla anonimowego dostępu. Wymagane jest uwierzytelnianie klienta. [2020-09-08 13:11:34Z INFO VisualStudioServices] Zakończono operację Location.GetConnectionData [2020-09-08 13:11:34Z INFO Terminal] LINIA ZAPISU: Niepowodzenie: Agent jest usuwany z serwera [2020-09-08 13:11:34Z Agent ERR] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Zasoby nie są dostępne do anonimowego dostępu. Wymagane jest uwierzytelnianie klienta. at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task'1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancelToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancelToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.LocationServer.ConnectAsync(VssConnection jobConnection) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.IsHostedServer(String serverUrl, VssCredentials credentials) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.UnconfigureAsync(CommandSettings command) at Microsoft.VisualStudio.Services.Agent.Listener.Agent.ExecuteCommand(CommandSettings) [2020-09-08 13:11:34Z ERR Terminal] BŁĄD ZAPISU: TF400813: Zasób nie jest dostępny dla anonimowego dostępu. Wymagane jest uwierzytelnianie klienta. Użyj vsts-agent, aby połączyć się z Azure DevOps Server 2020 i skonfigurować klienta proxy, a możesz logować się przez PAT, Negotiate, Integrated i Alternate.
Powodem błędu jestInterfejs API dostępu nie przeszedł uwierzytelnienia, przez co agent potoku nie mógł normalnie usunąć。
rozwiązanie
Otwórz Menedżera Konfiguracji IIS, znajdź stronę "Azure DevOps Server", znajdź funkcję uwierzytelniania, wybierz Windows Authentication, otwórz "Provider" po prawej i wybierz Negocjuj-> Dodaj jeden z dostępnych programów, OK, jak pokazano na poniższym rysunku:
Uruchom ponownie polecenie Delete Pipeline Agent, wpisz "Negotiate" jako metodę uwierzytelniania, wpisz konto administratora i hasło, a możesz skutecznie usunąć urządzenie, jak pokazano na poniższym rysunku:
(Koniec)
|