chef-partners / azure-chef-extension

The development repository for the Chef Extension available through Azure
Apache License 2.0
25 stars 21 forks source link

Git clone error when installing cookbook #354

Closed skkprogress closed 3 years ago

skkprogress commented 3 years ago

Description: When I attempt to install a policyfile use the NEW Chef extension in Azure Devops, I receive errors when the cookbooks are attempting to be installed. I store our cookbooks in Azure Devops as well, so the policyfile has that reference in there. The log from the task is: Starting: Execute chef ============================================================================== Task : Execute Chef Component Description : This task allows the execution of any Chef component Version : 3.0.37 Author : Chef Help : [More Information](https://chef-partners.github.io/azuredevops-chef-extension/execute-task.html ============================================================================== Running as root: true Command: C:\opscode\chef-workstation\bin\chef.bat install --chef-license accept Building policy UiPath_Robot Expanded run list: recipe[chef-client], recipe[chef-client::delete_validation], recipe[All_Servers], recipe[UiPath_Robots::RobotInstall], recipe[UiPath_Robots::Uipathsettings], recipe[UiPath_Robots::InstallRDS], recipe[reclaim_space], recipe[chef-client::config], recipe[SAP_Client] Caching Cookbooks... Installing UiPath_Robots >= 0.0.0 from path Installing MSOffice_2016 >= 0.0.0 from git Error: Failed to generate Policyfile.lock Reason: (CookbookOmnifetch::GitCommandError) Git error: command git clone https://azdevops.ca.deloitte.com/Infrastructure/Configuration%20Management/_git/app_msoffice2016 "C:/Users/casctfsbld/AppData/Local/chef-workstation/cache/.cache/git/7812460147612cec08f5bbc9f820e56becb8673d" --bare --no-hardlinks failed. If this error persists, try removing the cache directory at 'C:/Users/casctfsbld/AppData/Local/chef-workstation/cache/.cache/git/7812460147612cec08f5bbc9f820e56becb8673d'.Output from the command: Cloning into bare repository 'C:/Users/casctfsbld/AppData/Local/chef-workstation/cache/.cache/git/7812460147612cec08f5bbc9f820e56becb8673d'... fatal: could not read Username for 'https://azdevops.ca.deloitte.com': terminal prompts disabled ##[error]Command exited with code: 1 ##[section]Finishing: Execute chef

ayushbhatt29 commented 3 years ago

This issue is not related to Azure-chef-extension but its of Azure DevOps Chef Extensions which is an addon for Azure DevOps to perform Chef tasks, refer to comment given by Richard Nixon .

ayushbhatt29 commented 3 years ago

Closing this issue as it is not related to Azure-chef-extension.