You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I use the Theia IDE with git to push repositories to bitbucket.
recently I have been trying to push a repository and it gives me this error
git push https://*****@bitbucket.org/*****/*****.git master
Missing or invalid credentials.
Error: connect ENOENT /tmp/vscode-git-634e186cee.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) {
errno: -2,
code: 'ENOENT',
syscall: 'connect',
address: '/tmp/vscode-git-634e186cee.sock'
}
remote: Invalid credentials
fatal: Authentication failed for 'https://*****@bitbucket.org/*****/*****.git'
I have tried using different links, like https://*****@bitbucket.org/*****/***** and that did not work as well.
using git config --list I see that my username and email match with my atlassian account.
I have an app password and it doesn't even give me a popup for it like usual, just the error.\
thank you for any responses!
G'day Ethan!
Welcome to the Bitbucket Cloud community! :)
I have censored the workspace/repository URL and removed the screenshot as this is a public discussion forum.
The most common issue customers are experiencing related to authentication is due to the deprecation of GIT username/password in favour of App Passwords on 01/03/2022:
https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231
I notice that you already have an App Password configured, however, you will need to include it when defining your remote URL's.
Essentially, when connecting via HTTPS you will use your App Password alongside your username separated with a ":" character.
Therefore if you are authenticating to *GIT over HTTPS* to push/pull you will need to update your remote URLs to include the App Password:
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
The same applies when performing git clone:
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
NOTE: You will need to replace USERNAME/APP_PASSWORD, workspaceID, reposlug above with the relevant values.
I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.