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

[REGRESSION]: Azure file copy fails on one Agent in Pool #20041

Closed
4 of 7 tasks
lucavoit opened this issue Jun 20, 2024 · 5 comments
Closed
4 of 7 tasks

[REGRESSION]: Azure file copy fails on one Agent in Pool #20041

lucavoit opened this issue Jun 20, 2024 · 5 comments

Comments

@lucavoit
Copy link

New issue checklist

Task name

Azure file copy

Breaking task version

6.*

Last working task version

5.*

Regression Description

We recently updated our azure service connection to use Workload identity federation, which broke our pipeline using v5.* so we changed to v6. This fixed the issues in our pipelines except for one pipeline which runs on a specific self hosted agent.
On this agent the upload task fails with: Failed to perform Auto-login: PSContextCredential�[31;1mGet-AzAccessToken: -REDACTED-;1mObject reference not set to an instance of an object.�[0m
If I run the same task in a mini repro pipeline on any different agent in our pool, the task works fine.

In trying to fix this issue we updated the agent and all the powershell modules to the latest version - no difference.
Any help would be greatly appreciated. Thanks

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

2024-06-19T11:15:14.1507191Z INFO: Scanning...
2024-06-19T11:15:15.5513209Z 
2024-06-19T11:15:15.5514219Z Failed to perform Auto-login: PSContextCredential�[31;1mGet-AzAccessToken: -REDACTED-;1mObject reference not set to an instance of an object.�[0m
2024-06-19T11:15:15.5514447Z .
2024-06-19T11:15:15.5639767Z ##[debug]ExceptionMessage: AzCopy.exe exited with non-zero exit code while uploading files to blob storage.
2024-06-19T11:15:15.5816208Z ##[debug]Processed: ##vso[task.logissue type=error;code={"Task_Internal_Error":"BlobUploadFailed"};]

Full task logs with system.debug enabled

No response

Repro steps

No response

@lucavoit lucavoit added bug regression This used to work, but a change in the service/tasks broke it. labels Jun 20, 2024
@v-schhabra
Copy link
Contributor

Hi @lucavoit
Thanks for reporting the issue. Could you please share the complete pipeline logs by adding variable system.debug to "true"?

@v-schhabra v-schhabra added Task: AzureFileCopy and removed regression This used to work, but a change in the service/tasks broke it. labels Jun 20, 2024
@v-bsanthanak
Copy link
Contributor

Duplicate of #20003

@v-bsanthanak v-bsanthanak marked this as a duplicate of #20003 Jun 24, 2024
@lucavoit
Copy link
Author

Duplicate of #20003

@v-bsanthanak I'm sorry, but closing this issue as a duplicate of another issue (which has an entirely different error message) is hardly a satisfactory solution? Is there any info on how to fix this on our side or if you will fix this with an update?

@lucavoit
Copy link
Author

@v-bsanthanak @v-schhabra Anymore info on this issue? We really need a solution / fix for this

@v-schhabra
Copy link
Contributor

@v-bsanthanak @v-schhabra Anymore info on this issue? We really need a solution / fix for this

We have created a PR for this issue. Once it is merged and deployed will update here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants