Bitbucket login authentication failed in terminal - bitbucket

Recently formatted my machine, when try to clone the project repositories again with my main bitbucket credentials, faced these errors..
remote: Login failed due to incorrect login credentials or method.
remote: If you are unsure of which login details or login method to use, visit:
remote: https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/
fatal: Authentication failed for 'https://bitbucket.org/xxxxxxx/repository.git/'

Fixed.
Hadn't created an App Password at Account > Personal settings > App password
Create new password for your git operations. Once create new password, use that password, for git actions in terminal, it works.

Related

I have an github account and my user credintials are true. However, I can not login to Travis by using travis login --pro it always give an error

travis login --pro
This command not find my account but I am sure that given username and password is true. The reason why I am sure is because I can login my github account with same username and password.
travis report gives this message.
An error occurred running travis login -e "https://travis-ci.com/":
RuntimeError: Not Found
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:212:in rescue in basic_auth' from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:208:in basic_auth'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:216:in login' from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:81:in possible_tokens'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:50:in each_token' from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/tools/github.rb:37:in with_token'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/cli/login.rb:31:in login' from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/cli/login.rb:50:in run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/cli/command.rb:200:in execute' from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/lib/travis/cli.rb:64:in run'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/travis-1.10.1.travis.1321.9/bin/travis:18:in <top (required)>' from C:/Ruby27-x64/bin/travis:23:in load'
from C:/Ruby27-x64/bin/travis:23:in `'
For issues with the command line tool, please visit https://github.com/travis-ci/travis.rb/issues.
For Travis CI in general, go to https://github.com/travis-ci/travis-ci/issues or email support#travis-ci.com.
The versions are
ruby version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
travis version
1.10.0
How can i solve this problem?
Regards,
travis login --pro --github-token yourGitHubTokenHere
Github token you can find: github.com ->Settings->Developer settings->Personal Access Tokens
or access this link (https://github.com/settings/tokens)
I had the same issue and was able to finally solve it by moving from the gem travis to homebrew travis (not sure if this was the root issue -- but the later helped) + using travis login with the --github-token flag.
Adding to the prev answer, when I reached https://github.com/settings/tokens, I didn't see my github token. Then I re-generated the key and used that. But I forgot to use --pro flag and thus faced same issue. After using the --pro flag just like given (travis login --pro --github-token yourGitHubTokenHere). It has worked fine.
So summary:
Re-generate your github token if needed or the old one doesn't work
don't forget to put --pro flag in the command.
makesure to save the token for future use
I had a similar issue, if you are logged on .com, don't forget to add --com on each command, even encrypt, otherwise it defaults to .org

Why can't I access my git repo when upgrading to Heroku Cedar-14?

I am trying to test my app on the new Heroku Cedar-14 stack, but when running the command:
git push heroku-cedar-14 master
I get the following error:
remote: ! Your account my#email.com does not have access to name.
fatal: unable to access 'https://git.heroku.com/name.git/': The requested URL returned error: 403
I've seen similar issues that suggest upgrading ssh certificates, which I've tried with no success. Why is it that the Heroku login works when running git push heroku master but not when trying to deploy the code on the new stack? How can I get this to work?

Heroku commands on Cygwin hangs

I am trying to use Heroku commands on Cygwin but they seem to not do anything, but hang.
I installed the Heroku toolbelt for Windows.
Doing the $ heroku version gives me heroku/toolbelt/3.10.5 (i386-mingw32) ruby/1.9.3.
But whenever I try a $ heroku login or $ heroku login it just hangs and does nothing.
I setup a Heroku remote in one of my Github repo folders and tried to heroku push master but it prompts me for my password, and I type it in, but gives me this message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Help! Has anyone successfully used Heroku on Cygwin?
It sounds like heroku is trying to log in with your ssh key, which isn't added to your account. Ensure that you've added your public key to your heroku account (if you log in, go to account, add the ssh public key (~/.ssh/id_rsa.pub)). this might help you out as well.

heroku deploy doesn't work

i am deploying my rails app to heroku. after openning my heroku account i tried to
and downloading the tool belt
login to heroku .
heroku login
Enter your Heroku credentials.
Email: my email
Password (typing will be hidden):
! Unable to connect to Heroku API, please check internet connectivity and
try again.
i saw some answers that talked about the remote option
so i did that:
heroku git:remote -a my-app-name
and i got the same response
any idea why and how to fix???
Make sure your password is correct. Try changing the password in your dashboard and try again.

Deploy Railsapp on Heroku

I'm trying to deploy my Rails app on heroku.
But on All things it would have to fail at the very last step.
My git is all set up, I got a working git repository, a heroku account, installed the heroku_toolbelt and I can login via "heroku login"
I also can create a new repository with "heroku create" and do get my url path and the feedback "git remote heroku added".
But trying to push it on heroku with "git push heroku master" fails and results in the following message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What kind of public key is being needed? and i Know the repository exists, it's there on my heroku account :/
I hope you can help me out!
You need to add your public key to Heroku - asumming you have one in your ~/.ssh folder (it would typically be called id_rsa.pub). If not generate one with ssh-keygen
heroku keys:add
should sort the problem out and you should be able to push your application.

Resources