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 (https://www.softwarecollections.org/en/scls/rhscl/rh-git29/).
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 gc.auto=0 -c credential.username=MyBitbucketUser-c credential.helper= fetch --force --prune --progress https://MyBitbucketUser@bitbucket.org/MyBitbucketUser/project.git +refs/*:refs/*' exited with code 141 saying: git-remote-https: error while loading shared libraries: libcurl-httpd24.so.4: cannot open shared object file: No such file or directory
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. :)
Awesome news @TWN_karlhendrik! Thanks for sharing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If anyone else runs across this same error I was able to get past it by linking the scl libcurl-httpd24.so.4 from it's location to /usr/lib64.
ln -s /opt/rh/httpd24/root/usr/lib64/libcurl-httpd24.so.4 /usr/lib64/libcurl-httpd24.so.4
The answer from the BitbucketKB didn't work for me on Bitbucket 6.2.1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @TWN_karlhendrik,
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
Cheers,
Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 libcurl.so.4, then it outputs the library path.
/usr/lib/libcurl.so.4
/usr/lib64/libcurl.so.4
Regards,
Karl Hendrik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.