私は、社内環境での展開にVSTS WindowsMachineFileCopyタスクを使用しています。この構内環境では、接続先のコンピュータに接続できません。なぜ私は理解できないのですか...私はホスト名とマシンIPの両方を使ってみました。さらに、それは私が10 *アドレスに接続しようとしていますエラー情報に「23.102.153.83:443」を報告しているある奇妙な何VSTS WindowsMachineFileCopyがサーバーに接続できません
...ここ
は展開から、例外ログです:
2017-09-11T12:00:07.5928347Z Executing the powershell script:
C:\agent\_work\_tasks\WindowsMachineFileCopy_731004d4-1d66-4f70-8c05-638018b22210\1.0.41\WindowsMachineFileCopy.ps1
2017-09-11T12:03:56.2892363Z ##[error]System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 23.102.153.83:443
2017-09-11T12:03:56.2892363Z at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
2017-09-11T12:03:56.2892363Z at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
2017-09-11T12:03:56.2892363Z --- End of inner exception stack trace ---
2017-09-11T12:03:56.2892363Z at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
2017-09-11T12:03:56.2892363Z at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
2017-09-11T12:03:56.2892363Z --- End of inner exception stack trace ---
2017-09-11T12:03:56.2892363Z at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.MoveNext()
2017-09-11T12:03:56.2892363Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:03:56.2892363Z at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
2017-09-11T12:03:56.2892363Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:03:56.2892363Z at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__46`1.MoveNext()
2017-09-11T12:03:56.2892363Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:03:56.2892363Z at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext()
2017-09-11T12:03:56.2892363Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:03:56.2892363Z at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>d__41.MoveNext()
2017-09-11T12:03:56.2892363Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:03:56.2892363Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:03:56.3048364Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:03:56.3048364Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.TaskContextHelper.GetConnection(Uri serverUri, VssCredentials credentials)
2017-09-11T12:03:56.3048364Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.TaskContextHelper.GetVssConnection(ITaskContext context)
2017-09-11T12:03:56.3048364Z at Microsoft.TeamFoundation.DistributedTask.Task.Internal.GetVssConnectionCmdlet.ProcessRecord()
2017-09-11T12:03:56.3048364Z at System.Management.Automation.CommandProcessor.ProcessRecord()
2017-09-11T12:10:29.3339268Z ##[error]System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 23.102.153.83:443
2017-09-11T12:10:29.3339268Z at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
2017-09-11T12:10:29.3339268Z at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
2017-09-11T12:10:29.3339268Z --- End of inner exception stack trace ---
2017-09-11T12:10:29.3339268Z at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
2017-09-11T12:10:29.3339268Z at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
2017-09-11T12:10:29.3339268Z --- End of inner exception stack trace ---
2017-09-11T12:10:29.3339268Z at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.MoveNext()
2017-09-11T12:10:29.3339268Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:10:29.3339268Z at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
2017-09-11T12:10:29.3339268Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:10:29.3339268Z at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__46`1.MoveNext()
2017-09-11T12:10:29.3339268Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:10:29.3339268Z at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext()
2017-09-11T12:10:29.3339268Z --- End of stack trace from previous location where exception was thrown ---
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2017-09-11T12:10:29.3339268Z at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2017-09-11T12:10:29.3339268Z at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>d__41.MoveNext()
2017-09-11T12:10:29.3339268Z ##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Environment' because it is null.
2017-09-11T12:10:29.3339268Z at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
2017-09-11T12:10:29.3339268Z at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
2017-09-11T12:10:29.3339268Z at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
2017-09-11T12:10:29.3339268Z at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2017-09-11T12:10:29.3339268Z at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2017-09-11T12:10:29.3651269Z ##[error]System.Management.Automation.RuntimeException: No machine exists under environment: '10.XXXXXXXXXX' for deployment ---> System.Management.Automation.RuntimeException: No machine exists under environment: '10.XXXXXXXXXX' for deployment
2017-09-11T12:10:29.3651269Z --- End of inner exception stack trace ---
2017-09-11T12:10:29.3651269Z at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-09-11T12:10:29.3651269Z at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList`1 output, PSInvocationSettings settings)
2017-09-11T12:10:29.3651269Z at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args)
2017-09-11T12:10:29.3807269Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1.
誰かが問題の可能性や考えていることを知っていますか?
デプロイメントグループを使用していますか? –
いいえ、[展開グループ]タブは空です。また、私はサーバアドレスでpingを使うファイルコピーの直前にコマンドラインタスクを持っています。 pingは成功します。これで私はそんなに困ってしまった。 – dayneo
新しい情報が明らかになりました: このエラーはRemote Powershellタスクでも発生しています。だから、私は宛先にWinRMの設定に問題があると思う。以前はターゲットマシンにセットアップされていたので、証明書が期限切れになっている可能性があるという疑いがあります。追加の調査結果を確認して元に戻します。 – dayneo