Importing git repository from Bit Bucket


I am trying to import a git repository from Bit Bucket. It's not on git hub, or bit bucket cloud. I am using the bit bucket web gui to import:

Projects > [Project Name] > Import Repository > git repository

I am using the web interface because it handles timeouts better than 'git push'. The repository I am importing can take up to 2 hours. It has a lot of history.

I am serving out the directory where the git repo is using 'lighttpd', and then just pointing the web gui to http://server/gitrepo/, it always fails though.

The logs show:

2017-09-17 09:25:47,628 ERROR [search-indexing:thread-1] c.a.b.s.i.i.e.DefaultIndexEventWorker Indexing - Failed for repository RTIS/rtis (id: 528) with error: Connection refused
java.util.concurrent.ExecutionException: Connection refused


I don't understand the connection refused, I can browse to the URL using a web browser.

1 answer

1 accepted

I got this working by doing:

git repack -a -f -d

Then I could import it using the web gui. I think this is a side affect of svn2git which doesn't compress repositories very well.

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
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,764 views 1 5
Read article

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