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

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,467,284
Community Members
 
Community Events
177
Community Groups

Why I cannot push my code from SourceTree to Remote Repo BitBucket Server?

Hi, 

I try to push my code in my local repo from SourceTree to Remote Repo BitBucket Server,

I tried many times, all failed.

 

I got a message like following:


remote: Push rejected.
remote:
remote: refs/heads/feature/xxxxxxxx/Issues: Could not authenticate. Visit https://XXXXXX/applinks/oauth/login-dance/authorize?applicationLinkID=abbbbbbbbbb to link your Stash account to your JIRA account.

Can some experts here throw some lights to guide how to fix it, 

 

I use SourceTree version is latest, Version 3.4.3

Thanks

 

Charlie

2 answers

2 accepted

1 vote
Answer accepted
Mikael Sandberg Community Leader Dec 10, 2021

Hi @Wang_ Qiang,

Welcome to Atlassian Community!

The error message indicate that your account on the remote Bitbucket server has been locked due to to many failed attempts, so you have to go to the server and login in order to clear that flag. Once you have done that you should be able to push again. 

Mikael:
Thanks so much, 
Yes I did login to remote Bitbucket server, but where Can I find the flags to clear them?
Any link or page or item to indicate flag?

Thanks again

Charlie

Actually, I clear all cache data in chrome browser, tried again, still get same error:

remote: Push rejected by YACC
remote: Push rejected.
remote:
remote: refs/heads/feature/xxxxxxxx/Issues: Could not authenticate. Visit https://XXXXXX/applinks/oauth/login-dance/authorize?applicationLinkID=abbbbbbbbbb to link your Stash account to your JIRA account.

Thanks

Charlie

Mikael Sandberg Community Leader Dec 10, 2021

Did you click on that link in the error message? It looks like you have a hook that checks something in Jira, and your Bitbucket account is not linked to your Jira account.

Like Wang_ Qiang likes this

Thanks a lot!

Yes, I click the link, follow the instruction, looks access permitted, it makes progress,

Then push again, I got reject and a little bit diff error:

remote: xxxxxx: 10c52da87a622f272a014774b5fad5654ef76b7d: abbbbb/Issues: Could not authenticate. Visit https://abbbb.ccc.com/scm/plugins/servlet/applinks/oauth/login-dance/authorize?applicationLinkID=22222222222222 to link your Stash account to your JIRA account
remote: xxxxxx: abbbbb/JIRA3: abcdf-536: JIRA Issue does not match JQL Query: status="In Development"
remote:
remote: xxxxxx: a687caed5990b37e3c442c345b563a2d64f37aad: abbbbb/Issues: Could not authenticate. Visit https://abbbbb.cccc.com/scm/plugins/servlet/applinks/oauth/login-dance/authorize?applicationLinkID=12345555 to link your Stash account to your JIRA account


Thanks

Charlie

Mikael Sandberg Community Leader Dec 10, 2021

Okay, so it looks like the hook/app that you are using is expecting the issue that you mentioned in your commit comment should be in status "In Development" and it is not. So go and check that your Jira issue is in the correct status and then try again.

Like Steffen Opel _Utoolity_ likes this

Mikael:

Thanks a lot!
I will check soon.

 

Good weekends

Charlie

Like Mikael Sandberg likes this
0 votes
Answer accepted

one more error message:

 

remote: Push rejected by YACC

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events