It is not possible to import a repository from another workspace anymore, the import process fail even when we use an app password with full access.
11:48:47 git import for: https://repo.git
11:48:47 Cloning https://repo.git...
11:48:47 Cloning into bare repository 'newrepo'...
11:48:47 remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
11:48:47 remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
11:48:47 remote: App passwords are recommended for most use cases and can be created in your Personal settings:
11:48:47 remote: https://bitbucket.org/account/settings/app-passwords/
11:48:47 fatal: Authentication failed for 'https://repo.git/'
11:48:47 Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128
Nevermind, the problem was not the password, the login needs to be the username and not the actual login.
The username is only seen on the person bitbucket settings and not on the atlassian account settings.
Hello @Rafael F_
As per the Bitbucket communication, Atlassian account passwords are deprecated for Bitbucket API calls and HTTPS git activity (clone, push, pull and fetch), and are being replaced by App Passwords.
App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed.
If you want to check more information about the App Password, you can reference this documentation.
As you have identified, the command expects the username, not the email ID. You can get the username from your personal settings of Bitbucket.
I hope this helps.
Regards,
Karthick S
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.