VSTS Deploy Test Agent Warning: 'Failed to start service VisualStudioRemoteDeployer' - automated-tests

I am trying to run automated coded UI/selenium tests on a virtual machine through VSTS. The test assemblies are successfully copied over to the virtual machine.
However, when I use the "Visual Studio Test Agent Deployment" task, I am receiving this series of errors:
2018-04-26T23:56:18.0956226Z testMachineInput = SIT-WEB.corp.com
2018-04-26T23:56:18.1112475Z adminUserName = AMR\abbie
2018-04-26T23:56:18.1112475Z winRmProtocal = Http
2018-04-26T23:56:18.1112475Z testCertificate = true
2018-04-26T23:56:18.1112475Z machineUserName =
2018-04-26T23:56:18.1112475Z runAsProcess = true
2018-04-26T23:56:18.1112475Z logonAutomatically = true
2018-04-26T23:56:18.1112475Z disableScreenSaver = true
2018-04-26T23:56:18.1112475Z isDataCollectionOnly = false
2018-04-26T23:56:18.1112475Z testPlatform = 15.0
2018-04-26T23:56:18.1112475Z agentLocation =
2018-04-26T23:56:18.1112475Z updateTestAgent = false
2018-04-26T23:56:18.1112475Z ****************************************************************
2018-04-26T23:56:18.6112524Z Starting to deploy and configure test agent on test machines.
2018-04-26T23:56:18.6112524Z Inputs provided are:
2018-04-26T23:56:18.6112524Z Use HTTP Port: True
2018-04-26T23:56:18.6112524Z Username: AMR\abbie
2018-04-26T23:56:18.6112524Z Disable Screen saver: True
2018-04-26T23:56:18.6112524Z Login Automatically: True
2018-04-26T23:56:18.6112524Z Run as process: True
2018-04-26T23:56:18.6112524Z Agent would be downloaded from https://go.microsoft.com/fwlink/?LinkId=615472
2018-04-26T23:56:18.6112524Z Update test agent: False
2018-04-26T23:56:18.6112524Z Run test agent as DataCollection only : False
2018-04-26T23:56:19.0643890Z Task 'VerifyTestAgentInstalled' on machine 'SIT-WEB.corp.com:5985' is being run
2018-04-26T23:56:22.7831688Z Task 'VerifyTestAgentInstalled' on machine 'SIT-WEB.amr.corp.com:5985' completed.
2018-04-26T23:56:22.7831688Z ##[warning]Task 'VerifyTestAgentInstalled' for machine SIT-WEB.com:5985's Error : System.AggregateException: Failed to start service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097'. Consult the logs below:
2018-04-26T23:56:22.7831688Z Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7831688Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-04-26T23:56:22.7831688Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-04-26T23:56:22.7831688Z ---> System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7831688Z --- End of inner exception stack trace ---
2018-04-26T23:56:22.7831688Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable) in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\PowershellExecutor.cs:line 178
2018-04-26T23:56:22.7831688Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.StartService(String serviceName) in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\RemoteDeploymentHelper.cs:line 97
2018-04-26T23:56:22.7831688Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__24.MoveNext() in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\DeploymentClient.cs:line 367
2018-04-26T23:56:22.7987958Z ---> (Inner Exception #0) System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.<---
2018-04-26T23:56:22.7987958Z
2018-04-26T23:56:22.7987958Z ##[warning]Task 'VerifyTestAgentInstalled' for machine SIT-WEB.corp.com:5985's Log : System.AggregateException: Failed to start service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097'. Consult the logs below:
2018-04-26T23:56:22.7987958Z Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7987958Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-04-26T23:56:22.7987958Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-04-26T23:56:22.7987958Z ---> System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7987958Z --- End of inner exception stack trace ---
2018-04-26T23:56:22.7987958Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable) in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\PowershellExecutor.cs:line 178
2018-04-26T23:56:22.7987958Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.StartService(String serviceName) in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\RemoteDeploymentHelper.cs:line 97
2018-04-26T23:56:22.7987958Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__24.MoveNext() in E:\v2.0\A5\_work\1\s\DevTestLabs\Client\Deployment\Deployment\DeploymentClient.cs:line 367
2018-04-26T23:56:22.7987958Z ---> (Inner Exception #0) System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.<---
2018-04-26T23:56:22.7987958Z
2018-04-26T23:56:22.7987958Z ##[error]Error occurred on 'SIT-WEB.com:5985'. Details : 'Failed to start service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097'. Consult the logs below:
2018-04-26T23:56:22.7987958Z Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7987958Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-04-26T23:56:22.7987958Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-04-26T23:56:22.7987958Z '. For troubleshooting, refer https://aka.ms/remotevstest.
2018-04-26T23:56:22.7987958Z Service 'VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 (VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployerd538408c-9353-4a01-9acc-e8df4acf2097 on computer '.'.
2018-04-26T23:56:22.7987958Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-04-26T23:56:22.7987958Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-04-26T23:56:22.7987958Z '. For troubleshooting, refer https://aka.ms/remotevstest.
2018-04-26T23:56:22.8769311Z ##[error]Exception calling "Start" with "1" argument(s): "Deploy Test Agent task has failed on all machines. Check the logs for more details."
2018-04-26T23:56:22.9081625Z ##[section]Finishing: Deploy TestAgent on
I realize that this is the deprecated series of test tasks, but we are having trouble actually getting the newer version to work with a hosted agent because UNC paths are not accepted as search folder options.
Update:
After downloading the test agent to my machine, I am getting a new set of errors:
Below are my build definitions as well as my new error log.
Copy definition/ Deploy Test Agent definition/ Run Test Definition
2018-05-10T17:01:30.1946693Z ##[section]Starting: Deploy TestAgent on SIT-WEB.com
2018-05-10T17:01:30.1960462Z ==============================================================================
2018-05-10T17:01:30.1960794Z Task : Visual Studio Test Agent Deployment
2018-05-10T17:01:30.1961001Z Description : Deploy and configure Test Agent to run tests on a set of machines
2018-05-10T17:01:30.1961202Z Version : 1.0.42
2018-05-10T17:01:30.1961369Z Author : Microsoft Corporation
2018-05-10T17:01:30.1961552Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=625976)
2018-05-10T17:01:30.1961751Z ==============================================================================
2018-05-10T17:01:30.2036732Z Preparing task execution handler.
2018-05-10T17:01:31.1771823Z Executing the powershell script: C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\DeployTestAgent.ps1
2018-05-10T17:01:33.3696416Z ##[error]Unable to process command '##vso[task.setvariable variable=DTA:cd7fb3c2-465a-40d0-9cae-b9fa87fc4215;issecret=true;]{"TestMachineProps":{"_machinePropertyMap":{"dta://env/Cut/_apis/3117/201805101001333378":"Microsoft-AgentsForVS"}},"TestUriDetails":{"_environmentMap":{"dta://env/Cut/_apis/3117/201805101001333378":"SIT-WEB.com"}},"TestDeploymentEnvDetails":{"_testEnvironmentMap":{"SIT-WEB.com":{"Id":0,"Url":null,"Revision":0,"Project":{"Id":"Cut","Name":"Cut"},"ModifiedBy":{"Name":"7e665146-2d3c-6194-8b85-fa4143db4342"},"Resources":[{"Id":1,"Name":"SIT-WEB.com","Properties": {%0D%0A "Microsoft-Vslabs-MG-Resource-FQDN": {%0D%0A "IsSecure": false,%0D%0A "Data": "SIT-WEB.com"%0D%0A },%0D%0A "WinRM_Http": {%0D%0A "IsSecure": false,%0D%0A "Data": "5985"%0D%0A }%0D%0A }%0D%0A }%0D%0A ],%0D%0A "Properties": {%0D%0A "Microsoft-Vslabs-MG-Resource-Username": {%0D%0A "IsSecure": false,%0D%0A "Data": "AMR\\abbiejon"%0D%0A },%0D%0A "Microsoft-Vslabs-MG-Resource-Password": {%0D%0A "IsSecure": true,%0D%0A "Data": "***"%0D%0A },%0D%0A "Microsoft-Vslabs-MG-WinRMProtocol": {%0D%0A "IsSecure": false,%0D%0A "Data": "HTTP"%0D%0A },%0D%0A "Microsoft-Vslabs-MG-SkipCACheck": {%0D%0A "IsSecure": false,%0D%0A "Data": "False"%0D%0A }%0D%0A },%0D%0A "Name": "SIT-WEB.com",%0D%0A "IsReserved": false,%0D%0A "CreatedBy": {%0D%0A "Name": "7e665146-2d3c-6194-8b85-fa4143db4342"%0D%0A },%0D%0A "CreatedDate": "2018-05-10T17:01:33.2753626Z",%0D%0A "ModifiedDate": "0001-01-01T00:00:00"%0D%0A }%0D%0A }%0D%0A }%0D%0A}' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
2018-05-10T17:01:33.3710621Z ##[error]Secrets cannot contain multiple lines
2018-05-10T17:01:33.8621018Z DistributedTests: Starting to deploy and configure test agent on test machines.
2018-05-10T17:01:33.8621317Z DistributedTests: Inputs provided are:
2018-05-10T17:01:33.8621502Z DistributedTests: Username: AMR\abbiejon
2018-05-10T17:01:33.8621986Z DistributedTests: Use HTTP Port: True
2018-05-10T17:01:33.8622157Z DistributedTests: Run as process: True
2018-05-10T17:01:33.8622342Z DistributedTests: Login Automatically: True
2018-05-10T17:01:33.8622514Z DistributedTests: Disable Screen saver: True
2018-05-10T17:01:33.8622716Z DistributedTests: Agent would be downloaded from https://go.microsoft.com/fwlink/?LinkId=615472
2018-05-10T17:01:33.8622924Z DistributedTests: Update test agent: False
2018-05-10T17:01:33.8623105Z DistributedTests: Run test agent as DataCollection only : False
2018-05-10T17:01:33.8623393Z DistributedTests: Path to script that installs test agent on remote machine: C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\TestAgentInstall.ps1
2018-05-10T17:01:33.8625199Z DistributedTests: Path to script that configures test agent on remote machine: C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\TestAgentConfiguration.ps1
2018-05-10T17:01:33.8625606Z DistributedTests: Path to script that downloads test agent on Azure remote machines : C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\DownloadTestAgent.ps1
2018-05-10T17:01:33.8625995Z DistributedTests: Path to script that checks if test agent is installed on remote machine: C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\CheckTestAgentInstallation.ps1
2018-05-10T17:01:33.8626400Z DistributedTests: Path to script that checks if test agent is already running on remote machine: C:\Windows\SysWOW64\agent\_work\_tasks\DeployVisualStudioTestAgent_52a38a6a-1517-41d7-96cc-73ee0c60d2b6\1.0.42\VerifyTestMachinesAreInUse.ps1
2018-05-10T17:01:33.8626713Z DistributedTests: Path to script that helps to download and configure test agent :
2018-05-10T17:01:33.8626951Z DistributedTests: Task 'PopulatingMachinesPresentState' on machine 'SIT-WEB.com:5985' is being run
2018-05-10T17:01:35.3156824Z DistributedTests: Task 'PopulatingMachinesPresentState' on machine 'SIT-WEB.com:5985' completed.
2018-05-10T17:01:35.3209546Z ##[warning]DistributedTests: Task 'PopulatingMachinesPresentState' for machine SIT-WEB.com:5985's Error : System.AggregateException: Failed to start service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff'. Consult the logs below:
2018-05-10T17:01:35.3210707Z Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3213811Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-05-10T17:01:35.3214259Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-05-10T17:01:35.3214742Z ---> System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3215153Z --- End of inner exception stack trace ---
2018-05-10T17:01:35.3215626Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable)
2018-05-10T17:01:35.3216024Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.StartService(String serviceName)
2018-05-10T17:01:35.3216698Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__24.MoveNext()
2018-05-10T17:01:35.3218150Z ---> (Inner Exception #0) System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.<---
2018-05-10T17:01:35.3218472Z
2018-05-10T17:01:35.3219184Z ##[warning]DistributedTests: Task 'PopulatingMachinesPresentState' for machine SIT-WEB.com:5985's Log : System.AggregateException: Failed to start service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff'. Consult the logs below:
2018-05-10T17:01:35.3221150Z Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3221658Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-05-10T17:01:35.3222157Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-05-10T17:01:35.3222701Z ---> System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3223208Z --- End of inner exception stack trace ---
2018-05-10T17:01:35.3223659Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable)
2018-05-10T17:01:35.3224196Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.StartService(String serviceName)
2018-05-10T17:01:35.3224645Z at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__24.MoveNext()
2018-05-10T17:01:35.3225206Z ---> (Inner Exception #0) System.Management.Automation.RemoteException: Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.<---
2018-05-10T17:01:35.3225684Z
2018-05-10T17:01:35.3226401Z ##[error]Error occurred on 'SIT-WEB.com:5985'. Details : 'Failed to start service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff'. Consult the logs below:
2018-05-10T17:01:35.3228948Z Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3229455Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-05-10T17:01:35.3229893Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-05-10T17:01:35.3231484Z '. For troubleshooting, refer https://aka.ms/remotevstest.
2018-05-10T17:01:35.3240548Z ##[error]System.Exception: Error occurred on 'SIT-WEB.com:5985'. Details : 'Failed to start service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff'. Consult the logs below:
2018-05-10T17:01:35.3241695Z Service 'VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff (VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff)' cannot be started due to the following error: Cannot start service VisualStudioRemoteDeployer08bb67c0-170e-4bd9-9d07-094bbf5cacff on computer '.'.
2018-05-10T17:01:35.3242509Z CategoryInfo :OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
2018-05-10T17:01:35.3242924Z FullyQualifiedErrorId :CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
2018-05-10T17:01:35.3243296Z '. For troubleshooting, refer https://aka.ms/remotevstest.
2018-05-10T17:01:35.3728128Z DistributedTests: Update test agent is disabled. Skipping test agent updates.
2018-05-10T17:01:35.3773380Z ##[warning]For troubleshooting, refer https://aka.ms/remotevstest.
2018-05-10T17:01:35.3785766Z ##[error]System.InvalidOperationException: Deploy Test Agent task has failed on all machines. Check the logs for more details.
2018-05-10T17:01:35.3786705Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DtlMachineDeploymentHelper.ThrowIfNumberOfTargetMachinesAreZero(String exceptionMessage)
2018-05-10T17:01:35.3787228Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DtlMachineDeploymentHelper.ConfigureTestAgent(String username, String password, String collectionUrl, Boolean runAsProcess, Boolean disableScreenSaver, Boolean logonAutomatically, String environmentUrl, String configureTestAgentScriptPath, String personalAccessToken, String capabilities, List`1 machinesToBeExcluded, Boolean keepConnectionAlive)
2018-05-10T17:01:35.3787696Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DeployTestAgent.Run()
2018-05-10T17:01:35.3787980Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.TaskRunner.Run(Dictionary`2 arguments, VssConnection connection, TaskType taskType)
2018-05-10T17:01:35.3788286Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.InvokeDeployTestAgentCmdlet.ProcessRecord()
2018-05-10T17:01:35.3978130Z ##[error]PowerShell script completed with 2 errors.
2018-05-10T17:01:35.3987644Z ##[section]Finishing: Deploy TestAgent on SIT-WEB.com
Any insight into what could be causing this error?
Thanks!

Task Deploy Visual Studio Test Agent Task requires:
.NET 4.6.1 on Windows7 or Windows 2K8R2
PowerShell 3 or newer
Test machines should have PSRemoting enabled (run 'Enable-PSRemoting'
on Windows Powershell)
You need to check whether your environment meets the requirement.

This could be a logon issue with the admin account running the VisualStudioRemoteDeployer service. This will be the same admin account provided in the PowerShell on Target Machines.
When running the PowerShell on Target Machines task it will connect to the remote machine and then proceed with setting up and starting VisualStudioRemoteDeployer as a temporary Windows service with the provided admin account in the PowerShell on Target Machines task before running the provided PowerShell script. So if it fails installing VisualStudioRemoteDeployer as a service, it will tell you that the service wasn't installed. But in your case the service is actually installed and the log is telling us "Failed to start service". This means that the service isn't starting and the Powershell on Target Machines will fail.
You can try to setup a random service on the remote machine with the admin account you provided in the PowerShell on Target Machines and try to start it. If this fails then there´s something wrong with the account you provided and you´re more likley to get a better error message from the services.msc than from PowerShell.
Two things you can check that has solved this issue for us when encountering this problem is to check:
Is the account allowed to log on as a service. Check this using
"Local Security Policy" and navigate to Local Policies -> User Rights
Assignment here you should check that the account you provided in the
PowerShell on Target Machines is a part of the "Log on as a service"
policy and also that your account isn´t a part of the "Deny log on as
a service" policy.
Is there something wrong with the admin account We´ve encounterd
problems with the account being member of over 1000 groups which
will make us pass the token size limit making the account unable
to logon then you´ll get the "Failed to start service" message on
the PowerShell on Target Machines task. Resolve this by removing
membership in all unnecessary groups. Read more about max token size
here
https://blogs.technet.microsoft.com/shanecothran/2010/07/16/maxtokensize-and-kerberos-token-bloat/
Hope this helps, might not be the problem in your case but this is how we fixed our problems with "Failed to start service" with the PowerShell on Target Machines task.

Related

Dotnet core S2i build error ssl connection reset

I am trying to build my solution and create docker image using OpenShift S2i pattern.
Using the below command to build the repository
oc new-app dotnet:3.1~http://azureserver.abc.com:8080/tfs/_git/Emp-WebServices --name employeewebservice
I am able to pull the repository but during the build it fails with below error log
/opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.111/NuGet.targets(123,5):
error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
[/opt/app-root/src/Employee.WebServices/Employee.WebServices.csproj]
/opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.111/NuGet.targets(123,5):
error : The SSL connection could not be established, see inner exception.
[/opt/app-root/src/Employee.WebServices/Employee.WebServices.csproj] /opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.111/NuGet.targets(123,5):
error : Unable to read data from the transport connection: Connection reset by peer.
[/opt/app-root/src/Employee.WebServices/Employee.WebServices.csproj] /opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.111/NuGet.targets(123,5):
error : Connection reset by peer [/opt/app-root/src/employee.WebServices/Employee.WebServices.csproj] error: build error:
error building at STEP "RUN /tmp/scripts/assemble": error while running runtime: exit status 1
Below is the environment file that I created in the root of my repository
ASPNETCORE_ENVIRONMENT=Production
DOTNET_STARTUP_PROJECT=emp.WebServices/emp.WebServices.csproj
DOTNET_RESTORE_CONFIGFILE=Nuget/NuGet.Config
DOTNET_CONFIGURATION=Release
HTTP_PROXY=http://proxy-web.abc.com:80
HTTPS_PROXY=https://proxy-web.abc.com:80
NO_PROXY=.abc.com
DOTNET_SSL_DIRS=certificates
Have the certificates folder with .p7b file

Getting this error Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

I am new to Oracle, installed oracle SQL developer but each time I try to connect, I get the error:
Status: Failure -Test failed: IO Error: The Network Adapter could not
establish the connection
and the oracleTNSlistener service turns off on its own. Each time I start the service, it turns off immediately on its own.

Maximo Anywhere - Cannot deploy apps remotely to mobilefirst server( Rest Exceptions)

I am trying to deploy Maximo Anywhere apps from MacOS X system using ./build.sh command. It is always failing with:
Resexception: unexpected response, Not able to access <an URL>
I am not able to understand what is causing this issue.
The mobile first server is deployed in a Cloud server.
Please let me know if you have faces this issue.
Below is the error log I can see:
8/7/18 16:32:45:610 AEST] 000000bc WASRuntimeMBe I SOAP connection with port number 8879
[8/7/18 16:32:45:610 AEST] 000000bc WASRuntimeMBe I Establishing SOAP connection on *actualserverName* with port number 8879
[8/7/18 16:32:57:985 AEST] 00000096 WorklightILMT I com.worklight.core.ilmt.WorklightILMTLogger dumpLicense FWLSE0277I: Creating an ILMT record in the file 'D:\IBM\WebSphere\AppServer\profiles\ctgAppSrv01\logs\worklight\caffeda003ba82a720f5f584f060728a.slmtag'. [project MaximoAnywhere]
[8/7/18 16:32:59:126 AEST] 0000005a ProjectManage I com.worklight.core.jmx.ProjectManagementMXBeanImpl logTransactionDetails FWLSE0275I: Starting transaction with ID 14 for 'deployAdapter'. [project MaximoAnywhere]
[8/7/18 16:33:00:891 AEST] 0000005a StatusMessage E StatusMessage createStatusMessage Preparation to deploy adapter failed: HTTP/1.1 404 Not Found while accessing MobileFirst artifact URL: https://*aliashostName*:443/wladmin/otu/1.0/28656effffffd52effffff871bffffffc759ffffffc4ffffffb3ffffffee70377b3f/runtimes/MaximoAnywhere/downloads/adapters/Temporary317569284
java.io.IOException: HTTP/1.1 404 Not Found while accessing MobileFirst artifact URL: https://*aliashostName*:443/wladmin/otu/1.0/28656effffffd52effffff871bffffffc759ffffffc4ffffffb3ffffffee70377b3f/runtimes/MaximoAnywhere/downloads/adapters/Temporary317569284
at com.worklight.common.util.HttpUtil.getBytesFromURL(HttpUtil.java:630)
at com.worklight.integration.services.impl.AdapterManagementServiceBean.readAdapterContent(AdapterManagementServiceBean.java:181)
at com.worklight.integration.services.impl.AdapterManagementServiceBean.deployAdapter(AdapterManagementServiceBean.java:112)
at com.worklight.mgmt.impl.AdapterManagementImpl.deployAdapter(AdapterManagementImpl.java:52)
at com.worklight.core.jmx.ProjectManagementMXBeanImpl.deployAdapter(ProjectManagementMXBeanImpl.java:1488)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:292)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:206)
at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:188)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:130)
at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:67)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:250)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:151)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:265)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:832)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:814)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$QueuedWork.run(SSLReadServiceContext.java:1987)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
Caused by: java.io.IOException: HTTP/1.1 404 Not Found
at com.worklight.common.util.HttpUtil.getBytesFromURL(HttpUtil.java:627)
... 32 more
[8/7/18 16:33:00:970 AEST] 000000af BaseTransacti E Result: MaximoAnywhere: worklight/ctgCell01/ctgNode01/172.23.100.7: HTTP/1.1 404 Not Found while accessing MobileFirst artifact URL: https://*aliashostName*:443/wladmin/otu/1.0/28656effffffd52effffff871bffffffc759ffffffc4ffffffb3ffffffee70377b3f/runtimes/MaximoAnywhere/downloads/adapters/Temporary317569284
[8/7/18 16:33:01:001 AEST] 0000005a ProjectManage I com.worklight.core.jmx.ProjectManagementMXBeanImpl logTransactionDetails FWLSE0275I: Starting transaction with ID 14 for 'reject'. [project MaximoAnywhere]
[8/7/18 16:33:01:079 AEST] 000000af BaseTransacti I Result: MaximoAnywhere: worklight/ctgCell01/ctgNode01/172.23.100.7: Rollback
I've read somewhere that you're not supposed to deploy the apps to the real server from a local, remote environment. Is there a team administrating the server on the Cloud? If so, I would recommend providing the Cloud Team with your (perhaps) updated application folders and asking them to perform the deploy for you, from the server itself.

openstack: Failed to launch instance from the glance

We have setup OpenStack using conjure-up on a (Ubuntu LTS server 16.04.3) single machine. All are services are up and running, and successfully I am able to upload images to the glance.
We wanted to save these glance images created by "glance image-create" in remote machine which have nfs server. So we have configured glance-api.conf file as below.
My glance-api.conf looks like this:
[glance_store]
filesystem_store_datadir = /var/lib/glance/images
default_store = file
And in glance controller node, I have mounted
remote machine Ip/home/glance/images/ in this directory path
/var/lib/glance/images
and have mentioned the same mounted directory path inside the glance-api.conf file.
I have created the two sample private network with some ip (192.168.1.0 and 10.221.50.0) but have not created a public network as at this moment I don't want to access this VM instance from outside.
When I am trying to launch the instance from dashboard UI as well as through CLI, I am getting below error.
Error: Failed to perform requested operation on instance "Ubuntu_Hawkbit", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.].
Note: I have tried by associating Instance with different private network ,thinking that it may be network IP address issue but facing the same error.
When I check /var/log/nova/nova-compute.log logs, I see below error.
ERROR nova.image.glance [req-1459f1b2-491c-46a2-b803-6ff621a79d30 6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
-] Error contacting glance server 'http://10.206.193.159:9292' for 'data', done trying.
ERROR nova.image.glance CommunicationError:
Error finding address for
http://10.206.193.159:9292/v1/images/6c30e2ab-1078-45ad-bed2-3e3a75f6af8c:
('Connection aborted.', BadStatusLine("''",))
ERROR
nova_lxd.nova.virt.lxd.image
[req-1459f1b2-491c-46a2-b803-6ff621a79d30
6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
-] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Failed to upload 6c30e2ab-1078-45ad-bed2-3e3a75f6af8c to LXD: Connection to glance
ERROR nova_lxd.nova.virt.lxd.operations
[req-1459f1b2-491c-46a2-b803-6ff621a79d30
6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
-] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Faild to start container instance-00000020: Connection to glance host
http://10.206.193.159:9292 failed: Error finding address for
http://10.206.193.159:9292/v1/images/6c30e2ab-1078-45ad-bed2-3e3a75f6af8c:
('Connection aborted.', BadStatusLine("''",))
ERROR nova.compute.manager [req-1459f1b2-491c-46a2-b803-6ff621a79d30
6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
-] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Instance failed to spawn

Unable to install IIS-NetFXExtensibility

I am executing the following recipes on the IIS Cookbook.
mod_application_initialization
mod_aspnet
I get the following exception in the opsworks log on AWS.
[2016-04-04T01:33:41+00:00] INFO: Running queued delayed notifications before re-raising exception
[2016-04-04T01:33:41+00:00] ERROR: Running exception handlers
[2016-04-04T01:33:41+00:00] ERROR: Exception handlers complete
[2016-04-04T01:33:41+00:00] FATAL: Stacktrace dumped to c:/chef/runs/a66904e6-ad9e-429c-a066-6fe14c0e5494/local-mode-cache/cache/chef-stacktrace.out
[2016-04-04T01:33:41+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: windows_feature[IIS-NetFxExtensibility] (install-iis::mod_aspnet line 12) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 42, 127, 3010], but received '50'
---- Begin output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart ----
STDOUT: Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image Version: 6.3.9600.17031
Enabling feature(s)
Error: 50
The operation is complete but IIS-NetFxExtensibility feature was not enabled.
A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics.
NetFx3, NetFx3ServerFeatures, NetFx4Extended-ASPNET45
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
STDERR:
---- End output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart ----
Ran C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:IIS-NetFxExtensibility /norestart returned 50
What must I add to the code to get this to work ?
include_recipe 'iis'
if Opscode::IIS::Helper.older_than_windows2008r2?
log 'Application Initialization module is not supported on Windows 2008 or lower, ignoring'
else
windows_feature 'IIS-ApplicationInit' do
action :install
end
end
-------------Update-------------
Access the run log here
NetFx3, NetFx3ServerFeatures, NetFx4Extended-ASPNET45
You'll need to enable those features too, just like you enable 'IIS-ApplicationInit' (also before that one).

Resources