Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The repository was not imported

Noam Lugasi February 27, 2018

Trying to import repository from GitLab server.

Placed the repo URL, username and password but i keep getting the same error message above, followed by "Ask your administrators to check the logs for details." (which could be nice but i'm the Administrator).

Please assist.

Noam.

2 answers

1 accepted

2 votes
Answer accepted
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2018

Hey Noam.

What version of bitbucket are you on (if you're on server?). I remember an issue with the UI import and other git services around the 4.2.x product range, so could be the same/similar issue.

If you just need to get it moved, then it's a pretty quick few commands to move all code/tags/branches

 

git clone --verbose --bare https://olduser@oldgit/scm/OLDPROJECTNAME/oldreponame.git

git push --mirror https://newuser@newgit/scm/NEWPROJECTNAME/newreponame.git

 

CCM

Noam Lugasi February 28, 2018

I'm with the latest build (downloaded and installed yesterday).

Runs on Ubuntu 16.04.

Transferring from GitLab community server.

The method you suggested is the one i was thinking of initially but just came across this import repo tool at the end of the setup process - thought it may be nice if it works but it didn't.

Dave Theodore [Coyote Creek Consulting]
Community Champion
February 28, 2018

Are you able to determine which version of Git is running on the Gitlab server? You need to be sure to use at least that version all through the process. We've seen issues where Git either on the client or on the destination Bitbucket that is older than the source git system. The method Craig is describing is what we do and it works well. Of course, you can set up SSH key-based auth and eliminate the need for a password if you intend to write a script to migrate many repos.

Noam Lugasi March 1, 2018

Hi Dave,

GitLab version 10.4.1

Git version 2.14.3

We've already completed the migration and it was quite simple (i used the mirror method Craig suggested).

Many thanks! you guys are awesome!

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Champion
February 27, 2018

What method did you use? Migrating Git to Git is pretty simple. You clone the source repo then push to the destination. You will need to have created the Project (if using Server, optional in Cloud) and Repository on Bitbucket first, so that you have something to push in to.

A quick note, that this will not capture any of the wiki or issue tracker data. This only gets the repo code.

Noam Lugasi February 28, 2018

I didn't do much.

Just completed the setup and created the first project. i see the option to import git repo from a git server. it looks nice and i went to give it a try but it didn't work.

of course i can do it the conventional way (create, clone from old, commit and push to new) but i was interested to see if it works.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events