Getting error 'FATAL: Failed to recompute children' when trying to build indexes on a multi branch pipeline.

3,040 views
Skip to first unread message

isha chishty

unread,
Sep 26, 2017, 8:10:34 AM9/26/17
to Jenkins Users
HI, 

I am new to Jenkins and getting error when trying to build a pipeline using GIT.

first it says no jenkinsfile but surprisingly there is a jenkins file in root folder. 
On trying to build indexes manually it gives me following error.

================================================================================================================
ERROR: [Tue Sep 26 15:41:59 IST 2017] Could not update folder level actions from source 04a321cc-def7-4f4e-8e2b-05cceb173ddb
hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*" returned status code -1:
stdout: 
stderr: 
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352)
	at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:344)
	at jenkins.plugins.git.AbstractGitSCMSource.retrieveActions(AbstractGitSCMSource.java:581)
	at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:746)
	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:591)
	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:419)
[Tue Sep 26 15:41:59 IST 2017] Finished branch indexing. Indexing took 10 min
FATAL: Failed to recompute children 
================================================================================================================

Can somebody help on this.


Mark Waite

unread,
Sep 26, 2017, 3:53:40 PM9/26/17
to Jenkins Users
The default timeout for git operations in the Jenkins git plugin is 10 minutes.  You're reaching that timeout.

Some possible reasons for that timeout:
  • Authentication is blocked in command line git, waiting for a username and/or password to be entered.  Be sure that you've assigned credentials to the job and are using those credentials
  • Repository is so large that it needs more than 10 minutes to clone.  Increase the timeout from the "Advanced clone options", or reduce the clone time by creating a reference repository on the agent, and include the path to that reference repository in the "Advanced clone options" of the job definition
  • Bandwidth to git repository is limited enough that it needs more than 10 minutes to clone.  Apply same techniques as "large repository" above
Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4015788c-44e4-4dcd-a191-c1e1ea79ffec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

isha chishty

unread,
Oct 12, 2017, 4:12:51 AM10/12/17
to Jenkins Users
Thanks Mark. It helped.
Reply all
Reply to author
Forward
0 new messages