Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,105
Community Members
 
Community Events
168
Community Groups

Can not push

Message:
git exited with code: 128
warning: 'E:/Repository/DB/XXX.db' is owned by:
'S-1-5-21-2057183145-794954146-654838779-1298'
but the current user is:
'S-1-5-21-1117324872-2930939953-484153162-1000'
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/

1 answer

0 votes

Hi @edosvorai,

I see two issues in the part of the output you shared:

 

First, Git is showing a warning that you are logged in to your local machine as one user, but the directory of the Git repo in your machine is owned by a different user in that computer.

This is not related to Bitbucket users, it has to do with the users and the clone on your local machine. Is it possible to change the ownership of that directory to your user? Or log in to that computer as the user who owns this directory?

 

The second part of the error (Bitbucket Cloud recently stopped supporting account passwords for Git authentication.) indicates that the authentication details when you try to push are incorrect.

I would suggest first running the following command in the directory of the clone and checking if your username is listed in the URL:

git remote -v

If the output looks as follows:

origin https://bitbucket_username@bitbucket.org/workspace-id/repo.git (fetch)
origin https://bitbucket_username@bitbucket.org/workspace-id/repo.git (push)

then please check if bitbucket_username in the URL corresponds to your actual username listed here: https://bitbucket.org/account/settings/

 

If that is ok, the next thing to check is the password part. Your account's password can only be used for logging in to our website from browser. For operations like clone, pull, push via HTTPS, you will need to use an app password generated from here: https://bitbucket.org/account/settings/app-passwords/

If you only need to clone, pull, push to repos, an app password with permissions Repositories : Read and Repositories : Write should work.

 

Finally, if you are using a credential manager for Git, I would suggest clearing any saved credentials for bitbucket.org, in case an incorrect password or app password is saved there.

 

Kind regards,
Theodora

Thanks Theodora.
The problem has disappeared.
Now I can commit and push without any problem.

Like Theodora Boudale likes this

That's good to hear @edosvorai, please feel free to reach out if you ever need anything else.

Suggest an answer

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

Atlassian Community Events