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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.