Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to import an Assembla Git repository?

mlacecilia March 31, 2020

I would to migrate my repositories from Assembla to BitBucket.
I'd try the "Import repository" function, but with no luck.
I suspect that the 2FA is the cause of the issue.

The log I'm obtaining is:

  1. 20:21:43 git import for: https://git.assembla.com/wce-git.git
  2. 20:21:43 Cloning https://git.assembla.com/wce-git.git...
  3. 20:21:43 Cloning into bare repository 'mlacecilia/wce-git'...
  4. 20:21:44 fatal: Authentication failed for 'https://mlacecilia@git.assembla.com/wce-git.git/'
  5. 20:21:44 Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128

Any hint?
TIA

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2020

Hello @mlacecilia ,

Welcome to the Community!

If found this in the Assembla documentation page:

Working on my Repos with Two-Factor Authentication

When 2FA is enabled for your user, your username and password will not work with external clients to check out your repos or make a commit. Instead, you will need to use your username and API key with repo access. An API key can be obtained by opening your user profile and clicking on the API Applications and Sessions settings on the left sidebar. Then, check the Repository access checkbox and click the Create button to create an API key with repo access to use with two-factor authentication.

When importing, Bitbucket basically behaves as a Git client, so this applies. You need to generate that API key and then enter it in Bitbucket repository import form along with your username (turn on Requires authorization checkbox).

Hope this helps. Let me know if that worked.

Cheers,
Daniil

mlacecilia April 1, 2020

Hi Daniil, unluckily it didn't.
I'd tried with the both the API keys I'd created some time ago and also with a fresh one and it didn't worked.
Perhaps because I set also a SSL keys pair to log using Pageant.
In effect 2FA was required only for logging to Assembla web, not for client connection.

Anyway, preferring the easier way, I'd solved disabling 2FA for a while and enabling it after the successful import of all my repositories.
Thanks a lot for your help.

Now, i'll embrace Jira...
Cheers.
--
Maurizio

Like Daniil Penkin likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events