-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Comments
Hi @lucavoit |
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? |
@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. |
@v-schhabra could you maybe link the relevant PR or give some more updates? |
@v-schhabra this is still not working for us, even when using the new task version 6.242.10. Is there anything else we need to do / update? |
@lucavoit |
@v-schhabra I could share the complete logs - but I would have to go through it and redact some lines. Is there anything in particular you're looking for (e.g. versions?) that I could send you? Otherwise the log looks the same to me, including the auto-login error message |
If the logs are same as earlier then it is fine. I just wanted to compare the logs with another cx who is also having same issue. |
@v-schhabra yeah I see no relevant difference. Do you need anymore information from our side to investigate this further? |
As of now we dont need any info. Will post here if I need anything. |
An interesting find: the upload task only fails in one specific release pipeline - there is a build pipeline also running on the same machine / agent that includes a blob upload which does work |
in our case the agent runs on a physical machine |
@lucavoit |
does it need to be a new pipeline for it to work again? |
@lucavoit yes, can you try once? |
@v-schhabra I have a small update: we manually upgraded the azcopy version from 10.25.1 to 10.26.0 since we found a log message regarding this in the latest run. This however did not change the outcome. However we are yet to test a new pipeline as you suggested, as we are a bit apprehensive about the effort it would take us considering our current workload |
Please share the complete debug build and release pipeline logs at v-schhabra@microsoft.com? |
@lucavoit please share the logs for further investigation? |
@v-schhabra yes, we will provide the logs later today |
@v-schhabra any updates? |
Well @v-schhabra I did some more digging and I have an update for you: I made a minimal pipeline setup for debug purposes, using a Azure CLI task to execute my own powershell script.
with the Get-AzContext being vital for it to work properly, before that I ran into the exact same error message I got as using your task - so maybe this could be a solution here to? |
Hi @lucavoit |
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)
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
Full task logs with system.debug enabled
No response
Repro steps
No response
The text was updated successfully, but these errors were encountered: