Missed Team ’24? Catch up on announcements here.

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

Unable to mirror the repository from Bitbucket cloud to OCI

Charan Bharadwaj
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!
May 1, 2024

Getting error as NotAuthorizedorNotFound(404) while trying to connect from OCI to bitbucket cloud using app password while mirroring the repo. 
Followed the documentation from oracle end. Posting the link below.
Kindly let me know the solution for this.

Document: https://docs.oracle.com/en-us/iaas/Content/devops/using/mirror_repo.htm#mirror_repo 

 

Thanks,

Charan C

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2024

Hello @Charan Bharadwaj and welcome to the Community.

Checking the documentation of the OCI connector you shared, it indeed looks like the tool expects you to use a username and app password to authenticate. I suspect it may be related to the scope you selected while creating the app password.

As a suggested test, I'd recommend trying creating a new app password on your bitbucket account selecting all the scopes, and seeing if the error persists.

If you are still facing the error with the full scopes app password, I recommend trying to first test your ability to authenticate with Bitbucket with git directly (removing the OCI tool of the equation).

For that, you can try cloning the same repository with git, using the same exact credentials you configured in OCI, and check if the clone succeeds : 

git clone https://{username}:{app_password}@bitbucket.org/{workspace}/{repository}.git

This will help to confirm if you are using the correct credentials and if your account has access to the repository in question.

Hope that helps! Should you have any questions, feel free to ask!

Thank you, @Charan Bharadwaj !

Patrik S

Charan Bharadwaj
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!
May 3, 2024

Hi Patrik, 

 

Thank you for your suggestion.
When i cloned using the above command i was able to clone the repo in my local repo.
So I'm only not able to authenticate through OCI.
Is it the problem with OCI or something?

 

Thanks,

Charan C

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 3, 2024

Hello @Charan Bharadwaj ,

Thank you for executing the tests!

The fact that the clone was successful using git confirms that the credentials and your permissions in bitbucket are setup correctly.

The issue you are facing seems to come from the OCI tool particularly. Unfortunately, we don't have much expertise on this tool as it's developed and maintained by Oracle themselves, so I would suggest reaching out directly to the Oracle support portal/community as they will be better equipped to provide you with instructions on how to configure that tool.

Thank you, @Charan Bharadwaj !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events