It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Importing Bitbucket Cloud project to Bitbucket Server fails

Karl Hendrik Soone Jul 11, 2018

I'm trying to import repositories from Bitbucket Cloud to my Bitbucket server v5.11.1.

My server is running behind reverse proxy and is configured to use SCL git version 2.9.3 (

When i'm trying to import repository from Cloud i'm getting this error in atlassian-bitbucket.log file.

2018-07-11 14:58:54,260 ERROR [pool-9-thread-2] c.a.b.i.i.repository.RefSyncTask Failed to import repository: IMPORT/project[243]
com.atlassian.bitbucket.scm.CommandFailedException: '/opt/rh/rh-git29/root/bin/git -c -c credential.username=MyBitbucketUser-c credential.helper= fetch --force --prune --progress +refs/*:refs/*' exited with code 141 saying: git-remote-https: error while loading shared libraries: cannot open shared object file: No such file or directory

2 answers

1 vote
Karl Hendrik Soone Jul 12, 2018 • edited

It looks like SCL git version didn't want to work with my bitbucket server even thought  all libraries where installed. So my solution to this problem, downloaded latest git version from Github and compiled it from source then added neccesary paths. Now everything works. :)

Caterina Curti Atlassian Team Jul 12, 2018

Awesome news @Karl Hendrik Soone! Thanks for sharing!

0 votes
Caterina Curti Atlassian Team Jul 11, 2018

Hi @Karl Hendrik Soone,

Based on the log, it looks like there may be a missing library on the Server hosting Bitbucket.

I found this article that may help addressing this problem.


As alternative, you could also attempt to import the repository using the Import an existing Git project into Bitbucket Server on the following page:

Importing code from an existing project



Caterina - Atlassian

Karl Hendrik Soone Jul 12, 2018

Hey @Caterina Curti,


At first i thought also it might be missing library. I tried solving my problem based on this article, but i didn't help. Because when i run following command:

find / -name, then it outputs the library path.


Karl Hendrik

Caterina Curti Atlassian Team Jul 12, 2018

That's interesting and I've seen similar cases in the past, but there does not seem to be a straightforward (and one fit all) solution for this.


What about using the Import code from an existing project option instead?

Karl Hendrik Soone Jul 12, 2018

I'm currently trying out option, my only problem with that is, i have 100+ repos and i'm want to import all of the repositories to my Bitbucket server. :(

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,936 views 1 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you