Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Agent failed to download tasks / initialize #20356

Closed
4 of 7 tasks
IgorFalco opened this issue Aug 27, 2024 · 11 comments
Closed
4 of 7 tasks

[BUG]: Agent failed to download tasks / initialize #20356

IgorFalco opened this issue Aug 27, 2024 · 11 comments
Labels
Area: ABTT Akvelon Build Tasks Team area of work Area: Artifacts bug Task: Bash

Comments

@IgorFalco
Copy link

New issue checklist

Task name

No response

Task version

No response

Issue Description

This pipeline was working fine yesterday, but now it's crashing while trying to download tasks on the Microsoft agent. It's designed to build iOS and Android apps using React Native.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 11

Relevant log output

Set build variables.
Download all required tasks.
Downloading task: NodeTool (0.235.1)
##[debug]Task 'NodeTool' has been downloaded into '/Users/runner/work/_tasks/NodeTool_31c75bbb-bcdf-4706-8d7c-4da6a1959bc2/0.235.1'.
Downloading task: YarnInstaller (3.0.2003)
##[debug]Task 'YarnInstaller' has been downloaded into '/Users/runner/work/_tasks/YarnInstaller_2ec1147b-5c33-41df-94b5-676758d87c1b/3.0.2003'.
##[warning]Task 'Yarn Tool Installer' version 3 (YarnInstaller@3) is dependent on a Node version (10) that is end-of-life. Contact the extension owner for an updated version of the task. Task maintainers should review Node upgrade guidance: https://aka.ms/node-runner-guidance
Downloading task: CmdLine (2.244.3)
##[debug]Task 'CmdLine' has been downloaded into '/Users/runner/work/_tasks/CmdLine_d9bafed4-0b18-4f58-968d-86655b4d2ce9/2.244.3'.
Downloading task: npmAuthenticate (0.244.1)
##[debug]Task 'npmAuthenticate' has been downloaded into '/Users/runner/work/_tasks/npmAuthenticate_ad884ca2-732e-4b85-b2d3-ed71bcbd2788/0.244.1'.
Downloading task: Bash (3.244.1)
##[debug]Task 'Bash' has been downloaded into '/Users/runner/work/_tasks/Bash_6c731c3c-3c68-459a-a5c9-bde6e6595b5b/3.244.1'.
Downloading task: ios-bundle-version (1.0.0)
##[debug]Task 'ios-bundle-version' has been downloaded into '/Users/runner/work/_tasks/ios-bundle-version_42284b34-be85-4034-890f-8755ad9f6249/1.0.0'.
##[warning]Task 'iOS Bundle Version Numbers' version 1 (ios-bundle-version@1) is dependent on a Node version (6) that is end-of-life. Contact the extension owner for an updated version of the task. Task maintainers should review Node upgrade guidance: https://aka.ms/node-runner-guidance
Downloading task: InstallAppleCertificate (2.238.1)
##[debug]Task 'InstallAppleCertificate' has been downloaded into '/Users/runner/work/_tasks/InstallAppleCertificate_d2eff759-736d-4b7b-8554-7ba0960d49d6/2.238.1'.


##[error]Object reference not set to an instance of an object.
##[debug]System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskManager.CheckIfTaskNodeRunnerIsDeprecated(IExecutionContext executionContext, TaskStepDefinitionReference task) in /Users/runner/work/1/s/src/Agent.Worker/TaskManager.cs:line 382
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskManager.DownloadAsync(IExecutionContext executionContext, IEnumerable`1 steps) in /Users/runner/work/1/s/src/Agent.Worker/TaskManager.cs:line 100
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message) in /Users/runner/work/1/s/src/Agent.Worker/JobExtension.cs:line 140
Finishing: Initialize job

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

trigger: none

pool:
  vmImage: ubuntu-latest

resources:
  repositories:
    - repository: templates
      type: git
      name: "repositoryName"
      ref: main

stages:

  - template: build-pipeline-ios-android.yaml@templates
    parameters:
      # All parametres to work
      # This template has all the tasks to build.
@JulianPedro
Copy link

Same problem here but in DownloadSecureFile@1 task!!!

@lurbea
Copy link

lurbea commented Aug 27, 2024

Same problem in InstallSSHKey@0 task!

@diezapata
Copy link

same issue here using InstallSSHKey@0 task , seems it´s related with the Advanced Security Build Tasks v 1.1.283 updated yesterday.
image

@EmanuelOSSouza
Copy link

Same problem with DownloadSecureFile@1 task

@phmonte
Copy link

phmonte commented Aug 27, 2024

This issue was opened, I believe the problem was the latest release of the agent that performs validation.

@willianantunes
Copy link

It seems this PR solves it.

@LeaoSomogyi
Copy link

Here we use InstallSSHKey@0 task to build our project with git submodule, so we cannot build anything because this issue!

@rodolfourb
Copy link

rodolfourb commented Aug 27, 2024

Hello,

I'm encountering a similar issue to what was described. The pipeline was working fine yesterday, but now it’s crashing while trying to download tasks on the Microsoft agent. The error I’m seeing is as follows:

Captura de tela 2024-01-29 145435-2

It appears the issue is related to the InstallAppleCertificate (2.238.1) task, as indicated by the error message.

I noticed that @willianantunes mentioned the problem with the DownloadSecureFile task was resolved, but I haven’t found a solution for InstallAppleCertificate.

Any suggestions for resolving the issue with this task?

Thank you!

@phmonte
Copy link

phmonte commented Aug 27, 2024

@rodolfourb I believe the same solution solves both problems, We are waiting for the team's evaluation.

@mmrazik
Copy link
Collaborator

mmrazik commented Aug 28, 2024

Hi All,
It should be mitigated now by turning off a feature flag. You should not be seeing this with any of the tasks anymore.

@IgorFalco
Copy link
Author

It's working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work Area: Artifacts bug Task: Bash
Projects
None yet
Development

No branches or pull requests

13 participants