SOLVED

Error downloading Github Artifacts - Cannot prompt because user interactivity has been disabled

%3CLINGO-SUB%20id%3D%22lingo-sub-2715958%22%20slang%3D%22en-US%22%3EError%20downloading%20Github%20Artifacts%20-%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2715958%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20using%20artifacts%20from%20a%20repo(private)%20that%20resides%20in%20a%20Github%20Org%20Azure%20DevOps%20agent%20fails%20to%20download%20artifacts.%20Below%20is%20the%20error%20and%20screenshot%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E2021-09-01T17%3A36%3A41.9511533Z%20%23%23%5Bcommand%5Dgit%20checkout%20--progress%20--force%20xxd0d3f8cxxxx33436e4f01ecff7895xxx%0A2021-09-01T17%3A36%3A43.1284580Z%20fatal%3A%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled.%0A2021-09-01T17%3A36%3A43.6925848Z%20fatal%3A%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled.%0A2021-09-01T17%3A36%3A43.7050349Z%20fatal%3A%20could%20not%20read%20Username%20for%20'https%3A%2F%2Fgithub.com'%3A%20terminal%20prompts%20disabled%0A2021-09-01T17%3A36%3A43.7131005Z%20Downloading%20docs%2FArchitecture-xxxxxxxx%2FxxxxxxxxxxxStructure.pdf%20(98%20KB)%0A2021-09-01T17%3A36%3A44.3089607Z%20fatal%3A%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled.%0A2021-09-01T17%3A36%3A44.8791694Z%20fatal%3A%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled.%0A2021-09-01T17%3A36%3A44.8911672Z%20fatal%3A%20could%20not%20read%20Username%20for%20'https%3A%2F%2Fgithub.com'%3A%20terminal%20prompts%20disabled%0A2021-09-01T17%3A36%3A44.8985234Z%20Error%20downloading%20object%3A%20docs%2FArchitecturexxxxxxxxxx%2Fxxxxxxxxxxxxxxxxxxxx-structure.pdf%20(7xxxxxe)%3A%20Smudge%20error%3A%20Error%20downloading%20docs%2FArchitecturexxxxxxxxxx%2Fxxxxxxxxxxxxxxx-structure.pdf%20(xxxxx08e47fccd1e1c71e1ee50d9exxxxxcceead15a3d4b8cxxxxx)%3A%20batch%20response%3A%20Git%20credentials%20for%20https%3A%2F%2Fgithub.com%2Fxxxxxxx%2Fxxxxxxxxxxxxxxxxxx-infra.git%20not%20found.%0A2021-09-01T17%3A36%3A44.9443385Z%20%0A2021-09-01T17%3A36%3A44.9444319Z%20Errors%20logged%20to%20D%3A%5Ca%5Cr1%5Ca%5C_xxxxxxxxxxxxxxxxxxxxxxxx-infra%5C.git%5Clfs%5Clogs%5C20210901T173644.8975147.log%0A2021-09-01T17%3A36%3A44.9445350Z%20Use%20%60git%20lfs%20logs%20last%60%20to%20view%20the%20log.%0A2021-09-01T17%3A36%3A44.9477463Z%20error%3A%20external%20filter%20'git-lfs%20filter-process'%20failed%0A2021-09-01T17%3A36%3A44.9506366Z%20fatal%3A%20docs%2FArchitecturexxxxxxxxxxxxxxx%2Fxxxxxxxxxxxxxxxxxxxx-structure.pdf%3A%20smudge%20filter%20lfs%20failed%0A2021-09-01T17%3A36%3A44.9597171Z%20%23%23%5Berror%5DDownloading%20artifacts%20failed%3A%20System.InvalidOperationException%3A%20Git%20checkout%20failed%20with%20exit%20code%3A%20128%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext%20executionContext%2C%20ServiceEndpoint%20endpoint%2C%20CancellationToken%20cancellationToken)%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubArtifact.DownloadAsync(IExecutionContext%20executionContext%2C%20ArtifactDefinition%20artifactDefinition%2C%20String%20localFolderPath)%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.%26lt%3B%26gt%3Bc__DisplayClass39_2.%26lt%3B%3CDOWNLOADARTIFACTS%3Eb__2%26gt%3Bd.MoveNext()%0A---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.ExecuteAsync(Func%601%20action)%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext%20executionContext%2C%20IList%601%20agentArtifactDefinitions%2C%20String%20artifactsWorkingFolder)%0A%20%20%20at%20Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext%20executionContext%2C%20Object%20data)%0A2021-09-01T17%3A36%3A44.9639747Z%20%23%23%5Berror%5DGit%20checkout%20failed%20with%20exit%20code%3A%20128%0A2021-09-01T17%3A36%3A44.9647436Z%20%23%23%5Bsection%5DFinishing%3A%20Download%20Artifacts%3C%2FDOWNLOADARTIFACTS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22error_git_credentials.jpeg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307903i3DDD86B054C56887%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22error_git_credentials.jpeg%22%20alt%3D%22error_git_credentials.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHowever%20if%20I%20use%20the%20same%20code%20from%20personal%20github%20repo%20(also%20private)%20it%20works%20fine%20on%20same%20release%20pipeline%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2715958%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EArtifacts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGitHub%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2788370%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20downloading%20Github%20Artifacts%20-%20Cannot%20prompt%20because%20user%20interactivity%20has%20been%20disabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2788370%22%20slang%3D%22en-US%22%3EHave%20you%20found%20anything%20useful%20%2F%20a%20solution%20to%20this%20already%3F%20If%20you%20did%2C%20would%20you%20be%20so%20kind%20to%20post%20your%20information%20here%3F%20Perhaps%20it%20could%20be%20a%20great%20help%20to%20me%20and%20others%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

When using artifacts from a repo(private) that resides in a Github Org Azure DevOps agent fails to download artifacts. Below is the error and screenshot 

 

2021-09-01T17:36:41.9511533Z ##[command]git checkout --progress --force xxd0d3f8cxxxx33436e4f01ecff7895xxx
2021-09-01T17:36:43.1284580Z fatal: Cannot prompt because user interactivity has been disabled.
2021-09-01T17:36:43.6925848Z fatal: Cannot prompt because user interactivity has been disabled.
2021-09-01T17:36:43.7050349Z fatal: could not read Username for 'https://github.com': terminal prompts disabled
2021-09-01T17:36:43.7131005Z Downloading docs/Architecture-xxxxxxxx/xxxxxxxxxxxStructure.pdf (98 KB)
2021-09-01T17:36:44.3089607Z fatal: Cannot prompt because user interactivity has been disabled.
2021-09-01T17:36:44.8791694Z fatal: Cannot prompt because user interactivity has been disabled.
2021-09-01T17:36:44.8911672Z fatal: could not read Username for 'https://github.com': terminal prompts disabled
2021-09-01T17:36:44.8985234Z Error downloading object: docs/Architecturexxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx-structure.pdf (7xxxxxe): Smudge error: Error downloading docs/Architecturexxxxxxxxxx/xxxxxxxxxxxxxxx-structure.pdf (xxxxx08e47fccd1e1c71e1ee50d9exxxxxcceead15a3d4b8cxxxxx): batch response: Git credentials for https://github.com/xxxxxxx/xxxxxxxxxxxxxxxxxx-infra.git not found.
2021-09-01T17:36:44.9443385Z 
2021-09-01T17:36:44.9444319Z Errors logged to D:\a\r1\a\_xxxxxxxxxxxxxxxxxxxxxxxx-infra\.git\lfs\logs\20210901T173644.8975147.log
2021-09-01T17:36:44.9445350Z Use `git lfs logs last` to view the log.
2021-09-01T17:36:44.9477463Z error: external filter 'git-lfs filter-process' failed
2021-09-01T17:36:44.9506366Z fatal: docs/Architecturexxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx-structure.pdf: smudge filter lfs failed
2021-09-01T17:36:44.9597171Z ##[error]Downloading artifacts failed: System.InvalidOperationException: Git checkout failed with exit code: 128
   at Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext executionContext, ServiceEndpoint endpoint, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubArtifact.DownloadAsync(IExecutionContext executionContext, ArtifactDefinition artifactDefinition, String localFolderPath)
   at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass39_2.<<DownloadArtifacts>b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.ExecuteAsync(Func`1 action)
   at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext executionContext, IList`1 agentArtifactDefinitions, String artifactsWorkingFolder)
   at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext, Object data)
2021-09-01T17:36:44.9639747Z ##[error]Git checkout failed with exit code: 128
2021-09-01T17:36:44.9647436Z ##[section]Finishing: Download Artifacts

 

 

error_git_credentials.jpeg

However if I use the same code from personal github repo (also private) it works fine on same release pipeline 

2 Replies
Have you found anything useful / a solution to this already? If you did, would you be so kind to post your information here? Perhaps it could be a great help to me and others :)
best response confirmed by Ankit Kotnala (Occasional Contributor)
Solution

Hi @MZeinstra , Yes I've, so my repo had some large files which were commited as LFS wo when additng the artifacts I had to choose the option to checkout files from LFS and it resolved the issue for me.

We support Ukraine and condemn war. Push Russian government to act against war. Be brave, vocal and show your support to Ukraine. Follow the latest news HERE