Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Error 403: pull, push, clone repository

Alisson Sifuentes Davila
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!
Oct 04, 2023

Hello,

 

For the last month or two I have been trying to make modifications to a repository that I had stored locally on my PC but I kept getting the same error:

fatal: unable to access 'https://bitbucket....com/../{repository}.git/': The requested URL returned error: 403

I have tried to clone or pull also in repository and it doesn't let me to do any action.
I have updated the git version from 2.41.0.3 to 2.42.0.2 as said in other posts and I still have the same problem.

I have permissions to access the repository, since if I access the URL it lets me without problems with the same user.

 

Could it be a bitbucket bug?

Thank you.

Alisson

 

 

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 05, 2023

Hello @Alisson Sifuentes Davila and welcome to the Community!

The error being returned by git indicates an authentication issue : 

The requested URL returned error: 403

So I suspect you might be using the old/invalid credentials.

To confirm if this is the case, I would suggest trying to do a fresh clone of the repository in a different folder using the command below : 

git clone https://USERNAME:APP_PASSWORD@bitbucket.org/WORKSPACE/REPOSITORY.git

replacing the USERNAME, APP_PASSOWORD, WORKSPACE, and REPOSITORY with the actual values, where : 

  • Username: your bitbucket account username (not email address). You can check the username on your account's personal settings page.
  • App password : the password to be used for the authentication (it's not the same password you use to log in to the UI). If you haven't already, you can create a new app password with the needed permissions. To clone a repository the app password needs at least repo:read permission.

You can try cloning using the credentials as described above and let us know how it goes :)

Thank you, @Alisson Sifuentes Davila !

Patrik S

Alisson Sifuentes Davila
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!
Oct 09, 2023

Hello @Patrik S , 

is it possible to use that url in this way if it is a bitbucket server I am working on and it is not cloud?

Because my username I have checked that it is the email and I still get the same error.

Thank you!

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 10, 2023

Hello @Alisson Sifuentes Davila , 

For Bitbucket Server you can create an HTTP Access token and use it with the following syntax : 

git clone https://username:MDM0MjM5NDc2MDxxxxxxxxxxxxxxxxxxxxx@bitbucketserver.com/scm/projectname/teamsinspace.git

where you will need to replace bitbucketserver.com with your bitbucket server's domain.

For the username, you should be able to get it by accessing your bitbucket server instance and navigating to Profile Picture > View Profile.

Thank you, @Alisson Sifuentes Davila !
Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events