Forums

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

Import Repository not working from same Bitbucket Account

Devesh Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2022

Importing existing Repository which is already in same bitbucket account, to different Project not working. It is giving same error, even if I have generated "App Password" for Authentication.

 

  1. 15:27:50 git import for: <repo_url_removed>
  2. 15:27:50 Cloning <repo_url_removed>
  3. 15:27:50 Cloning into bare repository '<workspace-id>/test'...
  4. 15:27:50 remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
  5. 15:27:50 remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
  6. 15:27:50 remote: App passwords are recommended for most use cases and can be created in your Personal settings:
  7. 15:27:50 remote: https://bitbucket.org/account/settings/app-passwords/
  8. 15:27:50 fatal: Authentication failed for 'https://bitbucket.org/checkaninvoice/india.invoiceuploader/src/master/'
  9. 15:27:50 Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128

 

 

Any Idea?  It was working couple of months ago.

 

Thanks

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2022

Hi @Devesh Sharma,

This error shows when the credentials are incorrect.

When you try to import a repository, if you check the field Requires authorization, you will see two fields for Username and Password.

The Username should be the Bitbucket Username of the account that you generated the app password. You can find it listed here after logging in to the account: https://bitbucket.org/account/settings/ It should not be your email address, but the username listed on that page.

After you ensure that the username is correct, if you still get the same error, I would suggest generating a new app password for the account (Repositories: Read permissions should be enough for this operation), in case you edited the app password accidentally.

In case you have multiple Bitbucket accounts, please make sure to use the credentials of an account that has access to the repo.

Please feel free to let me know how it goes.

Just a heads up, I removed the repo url from your post to protect your privacy.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events