Forum Discussion
Ankit Kotnala
Sep 03, 2021Brass Contributor
Error downloading Github Artifacts - Cannot prompt because user interactivity has been disabled
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
However if I use the same code from personal github repo (also private) it works fine on same release pipeline
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.
- MZeinstraCopper ContributorHave 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 🙂
- Ankit KotnalaBrass Contributor
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.