No such file or directory when creating new GIT repo

JIRA is running on a CentOS machine, as is GIT.

The server running JIRA can clone the GIT repo, using it's ssh keys (as the user JIRA is running as).

When I configure the JIRA GIT plugin, I set the repo using the same clone URL, and specify an empty directory on the filesystem. When I index this, I get a "No such file or directory" error message. Looking at the logs I see the below stack trace.

I have tried this on the samba share and the local disk, but both produce the same results.

As a test I even tried to set the directory to have 777 permissions.

No Googling, searching or any other tests have produced anything useful, so any additional help would be appriciated.

Stack Trace:

2013-10-18 00:29:12,880 Thread-6621 WARN jbariel 29x494797x1 1qiz9bj /secure/StartReindexGitRepositories.jspa [jira.git.revisions.RevisionIndexer] Unable to index repository 'Test'
org.eclipse.jgit.errors.TransportException: No such file or directory
        at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(
        at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(
        at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(
        at org.eclipse.jgit.transport.FetchProcess.fetchObjects(
        at org.eclipse.jgit.transport.FetchProcess.executeImp(
        at org.eclipse.jgit.transport.FetchProcess.execute(
        at org.eclipse.jgit.transport.Transport.fetch(
        at com.xiplink.jira.git.GitManagerImpl.fetch(
        at com.xiplink.jira.git.revisions.RevisionIndexer$
        at com.xiplink.jira.git.revisions.RevisionIndexer.runAndCollectCounters(
        at com.xiplink.jira.git.revisions.RevisionIndexer.updateIndexByRepo(
        at com.xiplink.jira.git.MultipleGitRepositoryManagerImpl.startReindex(
        at com.xiplink.jira.git.action.reindex.StartReindexGitRepositoriesAction$
        at Source)
Caused by: No such file or directory
        at Method)
        at Source)
        at org.eclipse.jgit.transport.PackParser.parse(
        at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(
        ... 13 more

3 answers

1 accepted

Andrey had it right, would mark correct, but was only a comment.

Must clone each repo on the server.

Jarret - we commercially support this plugin. Feel free to contact us at

Directory you specified in the git plugin config should contain repository clone. As for version 1.2.11 plugin doesn't run clone itself

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

236 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you