Closed cedrox closed 3 years ago
For me it was just a matter of restarting my system (docker for windows error), remove the extension for the linux agent and change the entry to map your organisation url = "https://dev.azure.com/azure-terraform/" in this file /configuration/sandpit/level1/gitops/azure_devops_agents_vm/landingzone.tfvars
Describe the bug From Step 3. Customize and deploy the Azure DevOps Agents (runners) Error of type
module.vm_extensions["level0"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"]: Still creating... [1m0s elapsed] module.vm_extensions["level3"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"]: Still creating... [1m0s elapsed] module.vm_extensions["level1"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"]: Still creating... [1m0s elapsed] module.vm_extensions["level2"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"]: Still creating... [1m0s elapsed] module.vm_extensions["level4"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"]: Still creating... [1m0s elapsed] Terraform apply return code: 0 Terraform returned errors: ╷ │ Error: Code="VMExtensionProvisioningError" Message="VM has reported a failure when processing extension 'install_azure_devops_agent'. Error message: \"Enable failed: failed to execute command: command terminated with exit status=1\n[stdout]\ndll\n./bin/Microsoft.TeamFoundation.Test.WebApi.dll\n./bin/System.Diagnostics.Tools.dll\n./bin/System.Web.HttpUtility.dll\n./bin/Microsoft.Azure.Storage.DataMovement.dll\n./bin/System.Security.Cryptography.Encoding.dll\n./bin/es-ES/\n./bin/es-ES/strings.json\n./bin/Microsoft.TeamFoundation.Core.WebApi.dll\n./bin/System.Private.DataContractSerialization.dll\n./bin/System.Net.WebProxy.dll\n./bin/System.Security.Cryptography.Cng.dll\n./bin/System.Private.Uri.dll\n./bin/Agent.Worker.dll\n./bin/Microsoft.VisualBasic.dll\n./bin/System.Xml.XPath.XmlDocument.dll\n./bin/Minimatch.dll\n./bin/Microsoft.TeamFoundation.Policy.WebApi.dll\n./bin/Microsoft.TeamFoundation.TestClient.PublishTestResults.dll\n./bin/System.Net.WebSockets.dll\n./bin/System.Globalization.dll\n./bin/Agent.Listener.runtimeconfig.json\n./bin/CommandLine.dll\n./bin/System.Threading.AccessControl.dll\n./bin/System.IO.Compression.Brotli.dll\n./bin/update.sh.template\n./bin/System.CodeDom.dll\n./bin/CodeSignSummary-a05ae9f4-33f9-45d4-9a39-6a2e91593084.md\n./bin/System.IO.Abstractions.dll\n./bin/System.IO.MemoryMappedFiles.dll\nextracted\n--------OS Information--------\nNAME=\"Ubuntu\"\nVERSION=\"20.04.2 LTS (Focal Fossa)\"\nID=ubuntu\nID_LIKE=debian\nPRETTY_NAME=\"Ubuntu 20.04.2 LTS\"\nVERSION_ID=\"20.04\"\nHOME_URL=\"https://www.ubuntu.com/\"\nSUPPORT_URL=\"https://help.ubuntu.com/\"\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\nVERSION_CODENAME=focal\nUBUNTU_CODENAME=focal\n------------------------------\nThe current OS is Debian based\n--------Debian Version--------\nbullseye/sid\n------------------------------\n/usr/bin/apt\nHit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease\nHit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease\nHit:4 https://packages.microsoft.com/repos/azure-cli focal InRelease\nGet:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]\nFetched 114 kB in 0s (229 kB/s)\nReading package lists...\nBuilding dependency tree...\nReading state information...\n14 packages can be upgraded. Run 'apt list --upgradable' to see them.\nReading package lists...\nBuilding dependency tree...\nReading state information...\nliblttng-ust0 is already the newest version (2.11.0-1).\nlibkrb5-3 is already the newest version (1.17-6ubuntu4.1).\nzlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).\n0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.\nReading package lists...\nBuilding dependency tree...\nReading state information...\nlibssl1.1 is already the newest version (1.1.1f-1ubuntu2.4).\n0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.\nReading package lists...\nBuilding dependency tree...\nReading state information...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nlibicu66 is already the newest version (66.1-2ubuntu2).\n0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.\n-----------------------------\n Finish Install Dependencies\n-----------------------------\ndependencies installed\n\n _ __ \n / \ | _ () | ()\n/ /\ \_____ | |/ / | | __ \n| | / | | | '/ _ \ | /| | ' \ / \ | | ' \ / \/ |\n| | | |/ /| |_| | | | / | | | | |) | / | | | | | /\_ \\n\| |/|\_,|| \_| \| || ./ \_|||| ||\||/\n | |\n agent v2.187.2 |_| (commit 0cfc45c)\n\n\n>> End User License Agreements:\n\nBuilding sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.\n\nA copy of the Team Explorer Everywhere license agreement can be found at:\n /home/adminuser/agent/agent-1/externals/tee/license.html\n\n\n>> Connect:\n\nError reported in diagnostic logs. Please examine the log for more details.\n - /home/adminuser/agent/agent-1/_diag/Agent_20210620-194325-utc.log\n\n\n[stderr]\nWARNING: Error loading config file: .dockercfg: $HOME is not defined\nsudo: ./svc.sh: command not found\nsudo: ./svc.sh: command not found\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nE: Unable to locate package libicu67\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nVS30063: You are not authorized to access https://dev.azure.com.\n\x1b[41mError on or near line 101; exiting with status 1\x1b[0m\n\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot " │ │ with module.vm_extensions["level0"].azurerm_virtual_machine_extension.devops_selfhosted_agent["devops_selfhosted_agent"], │ on extensions/devops_selfhosted_agent.tf line 2, in resource "azurerm_virtual_machine_extension" "devops_selfhosted_agent": │ 2: resource "azurerm_virtual_machine_extension" "devops_selfhosted_agent" { │ ╵
Screenshots