Git Submodule Update failed

%3CLINGO-SUB%20id%3D%22lingo-sub-1520188%22%20slang%3D%22en-US%22%3EGit%20Submodule%20Update%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520188%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20having%20a%20problem%20with%20running%20my%20Azure%20DevOps%20pipeline.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EA%20failure%20happened%20after%20the%20main%20repository%20had%20been%20cloned%20and%20then%20trying%20to%20clone%20the%20submodules.%20This%20is%20the%20error%20log%20%22%3CSTRONG%3Eremote%3A%20TF401019%3A%20The%20Git%20repository%20with%20name%20or%20identifier%20adrcommon%20does%20not%20exist%20or%20you%20do%20not%20have%20permissions%20for%20the%20operation%20you%20are%20attempting.%3C%2FSTRONG%3E%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20submodules%20are%20contained%20in%20the%20same%20project%20and%20they%20are%20added%20by%20using%20URL%20relative%20to%20the%20main%20repository.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20pipeline%20was%20working%20well%2C%20the%20last%20success%20build%20was%20on%20last%20Friday%2C%26nbsp%3B%20but%20now%20it%20gives%20the%20error.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EI%20also%20checked%20the%20permissions%20of%20the%20build%20service%2C%20it%20seems%20okay%2C%20no%20one%20changed%20the%20permissions.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EAnd%20the%20other%20pipelines%20with%20no%20submodules%20in%20the%20same%20project%20are%20working%20ok.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20ideas%3F%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENick%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1555202%22%20slang%3D%22en-US%22%3ERe%3A%20Git%20Submodule%20Update%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1555202%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F727627%22%20target%3D%22_blank%22%3E%40adriely%3C%2FA%3E%26nbsp%3BI'm%20having%20the%20same%20problem%2C%20I%20tried%20the%20Checkout%20submodules%20option%20at%20the%20build%20pipeline%20settings.%20And%20also%20tried%20including%20submodules%20inside%20the%20.yml%20file.%20Both%20will%20give%20the%20same%20error%20as%20you%20are%20showing.%20Did%20you%20found%20a%20solution%20for%20this%20or%20still%20having%20this%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1555236%22%20slang%3D%22en-US%22%3ERe%3A%20Git%20Submodule%20Update%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1555236%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F727627%22%20target%3D%22_blank%22%3E%40adriely%3C%2FA%3EI%20had%20the%20same%20problem%2C%20I%20tried%20the%20Checkout%20submodules%20option%20at%20the%20build%20pipeline%20settings.%20And%20also%20tried%20including%20submodules%20inside%20the%20.yml%20file.%20Both%20gave%20the%20same%20error%20as%20you%20are%20showing.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20solution%20for%20this%20is%20the%20following%3A%20Go%20to%26nbsp%3B%3CFONT%20color%3D%22%2300ff00%22%3EProject%20Settings%20-%26gt%3B%20Settings%20(topic%20Pipelines)%3C%2FFONT%3E%20Then%20you%20need%20to%20change%20the%20following%20setting%2C%20and%20all%20should%20work!%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Project_Settings_Settings.jpg%22%20style%3D%22width%3A%20565px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208962i79A644BE21122F59%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Project_Settings_Settings.jpg%22%20alt%3D%22Project_Settings_Settings.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

Hi,

 

I'm having a problem with running my Azure DevOps pipeline.

 

A failure happened after the main repository had been cloned and then trying to clone the submodules. This is the error log "remote: TF401019: The Git repository with name or identifier adrcommon does not exist or you do not have permissions for the operation you are attempting."

 

The submodules are contained in the same project and they are added by using URL relative to the main repository. 

 

The pipeline was working well, the last success build was on last Friday,  but now it gives the error. I also checked the permissions of the build service, it seems okay, no one changed the permissions. And the other pipelines with no submodules in the same project are working ok.

Any ideas?

 

Thanks!

 

Nick

 

1 Reply

@adrielyI had the same problem, I tried the Checkout submodules option at the build pipeline settings. And also tried including submodules inside the .yml file. Both gave the same error as you are showing. 

The solution for this is the following: Go to Project Settings -> Settings (topic Pipelines) Then you need to change the following setting, and all should work!

Project_Settings_Settings.jpg