Connect containerized self-hosted agent with Azure DevOps

TomG713

I followed the instructions in the ms docs guide, and the agent started without any issues. However it never showed up in my agent pool. I tried a different version of the start.sh script found on github and it connected immediately. Is there anything else I can do to try and troubleshoot this? Logs from the non-working agent below

❯ kubectl logs azpagent-55864668dc-zgdrn
1. Determining matching Azure Pipelines agent...
2. Downloading and installing Azure Pipelines agent...
3. Configuring Azure Pipelines agent...

>> End User License Agreements:

Building 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.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /azp/agent/externals/tee/license.html


>> Connect:

Connecting to server ...

>> Register Agent:

Scanning for tool capabilities.
Connecting to the server.
Successfully replaced the agent
Testing agent connection.
2019-08-03 04:22:56Z: Settings Saved.
4. Running Azure Pipelines agent...
Starting Agent listener interactively
Started listener process
Started running service
Scanning for tool capabilities.
Connecting to the server.
2019-08-03 04:23:08Z: Agent connect error: The signature is not valid.. Retrying until reconnected.

Not really sure what else to try -- has anyone else seen this issue, or had success with the linux agent guide?

TomG713

In case this or a similar issue occurs for anyone else, the suggestion from @juliobbv was very helpful. If you comment out the last line of the script, and replace it with

./bin/Agent.Listener run & wait $!

you can get a clearer view of any error messages.

In my case, I didn't realize that AGENT_NAME and POOL were no longer the same variable, and the original error message didn't indicate that the issue was my lack of permissions to the default pool.

My final changes to the script are below -- I defaulted to the agent name using the hostname, and maintained the previous behavior of using a custom pool

./config.sh --unattended \
  --agent "$(hostname)" \
  --url "$AZP_URL" \
  --auth PAT \
  --token $(cat "$AZP_TOKEN_FILE") \
  --pool "${AZP_POOL:-Default}" \
  --work "${AZP_WORK:-_work}" \
  --replace \
  --acceptTeeEula & wait $!

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to specify which version of nuget.exe to use with self-hosted agent in Azure DevOps?

分類Dev

Azure DevOps Hosted Build Agent MSI

分類Dev

Running NPM on a self-hosted VSO Agent

分類Dev

SSIS Project Fails To Build On Self Hosted Agent

分類Dev

Azure DevOps hosted-agentがWindowsのプルに失敗しました:2004

分類Dev

Azure PipelinesBizTalk-Microsoft Hosted Build Agent

分類Dev

Combining self hosted and Azure hosted agents in the same pool

分類Dev

Azure DevOps Pipeline Hosted Agent-システム機能はどこにありますか?

分類Dev

Azure Devops cannot connect to Service Fabric Cluster

分類Dev

Azure devops les tâches d'agent manquantes de CI

分類Dev

Connect a self-hosted WCF-Service via WebHttpBinding fails in Kerberos-Mode

分類Dev

Azure devops Cant connect Nuget Restore and VSBuild for Nuget Packages

分類Dev

How to read a local csv file using Azure Data Factory and a self-hosted runtime?

分類Dev

Share PowerShell variable between two tasks of the job agent in Release pipeline in Azure DevOps

分類Dev

Azure DevOps Hosted Build Controller-Azure Storage Emulatorはサポートされていますか?

分類Dev

Routing is not working with self-hosted web API

分類Dev

SignalR Self Hosted And Asp.Net MVC

分類Dev

Self-Hosted WCF - Namespace Reservation required?

分類Dev

Azure DevOps Hosted Agents-エージェントにツール(PSモジュール)を追加

分類Dev

Azure devops microsoft hosted buildserverに依存関係の新しいバージョンをインストールします

分類Dev

Running Selenium Tests in Chrome (Headless mode) on a VSTS Hosted Agent

分類Dev

Getting "localhost refused to connect." when trying to access the containerized .netcore3.1 WeatherForecast application

分類Dev

azure devops variable group

分類Dev

Azure Devops - Build Automation

分類Dev

Azure DevOps REST API

分類Dev

azure devops repos url

分類Dev

Gzip file in Azure DevOps

分類Dev

Update Sitecore application hosted on Azure using AzureDevOps

分類Dev

IdentityServer MVC throws OpenIdConnectProtocolException when hosted in Azure

Related 関連記事

  1. 1

    How to specify which version of nuget.exe to use with self-hosted agent in Azure DevOps?

  2. 2

    Azure DevOps Hosted Build Agent MSI

  3. 3

    Running NPM on a self-hosted VSO Agent

  4. 4

    SSIS Project Fails To Build On Self Hosted Agent

  5. 5

    Azure DevOps hosted-agentがWindowsのプルに失敗しました:2004

  6. 6

    Azure PipelinesBizTalk-Microsoft Hosted Build Agent

  7. 7

    Combining self hosted and Azure hosted agents in the same pool

  8. 8

    Azure DevOps Pipeline Hosted Agent-システム機能はどこにありますか?

  9. 9

    Azure Devops cannot connect to Service Fabric Cluster

  10. 10

    Azure devops les tâches d'agent manquantes de CI

  11. 11

    Connect a self-hosted WCF-Service via WebHttpBinding fails in Kerberos-Mode

  12. 12

    Azure devops Cant connect Nuget Restore and VSBuild for Nuget Packages

  13. 13

    How to read a local csv file using Azure Data Factory and a self-hosted runtime?

  14. 14

    Share PowerShell variable between two tasks of the job agent in Release pipeline in Azure DevOps

  15. 15

    Azure DevOps Hosted Build Controller-Azure Storage Emulatorはサポートされていますか?

  16. 16

    Routing is not working with self-hosted web API

  17. 17

    SignalR Self Hosted And Asp.Net MVC

  18. 18

    Self-Hosted WCF - Namespace Reservation required?

  19. 19

    Azure DevOps Hosted Agents-エージェントにツール(PSモジュール)を追加

  20. 20

    Azure devops microsoft hosted buildserverに依存関係の新しいバージョンをインストールします

  21. 21

    Running Selenium Tests in Chrome (Headless mode) on a VSTS Hosted Agent

  22. 22

    Getting "localhost refused to connect." when trying to access the containerized .netcore3.1 WeatherForecast application

  23. 23

    azure devops variable group

  24. 24

    Azure Devops - Build Automation

  25. 25

    Azure DevOps REST API

  26. 26

    azure devops repos url

  27. 27

    Gzip file in Azure DevOps

  28. 28

    Update Sitecore application hosted on Azure using AzureDevOps

  29. 29

    IdentityServer MVC throws OpenIdConnectProtocolException when hosted in Azure

ホットタグ

アーカイブ