Getting "RECV=oauth_problem=token_rejected" on git push
Jira version: 7.7.0 Bitbucket version: 6.3.1 (also tried with 6.3.0) Control Freak version: 2019.04.12
I upgrade Bitbucket from 5.12.0 and all add-ons to the latest version and when I try to push I'm getting the following error:
11:08 $ GIT_TRACE=2 git push trace: built-in: git 'push' trace: run_command: 'ssh' '-p' '7999' 'git@rnd-testbitbucket.intelerad.com' 'git-receive-pack '\''/bc/ahtest.git'\''' trace: run_command: 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' trace: exec: 'git' 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' trace: built-in: git 'pack-objects' '--all-progress-implied' '--revs' '--stdout' '--thin' '--delta-base-offset' '--progress' Counting objects: 5, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 307 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Control Freak: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:109) remote: Control Freak - pre-receive failed: java.lang.RuntimeException: Bad JIRA HTTP POST=401 SENT={"fields":["status","assignee"],"validateQuery":false,"jql":"KEY IN(BC-4511)"} RECV=oauth_problem=token_rejected remote: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:109) remote: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:67) remote: at com.bitbooster.hook.MyMergeCheckHook.jiraPolicyCheck(MyMergeCheckHook.java:1124) remote: at com.bitbooster.hook.MyMergeCheckHook.validateChange(MyMergeCheckHook.java:608) remote: at com.bitbooster.hook.MyMergeCheckHook.processReceive(MyMergeCheckHook.java:369) remote: at com.bitbooster.hook.ControlFreakPreReceive.preUpdate(ControlFreakPreReceive.java:114) remote: To ssh://git@rnd-testbitbucket.intelerad.com:7999/bc/ahtest.git ! [remote rejected] BC-4511-test-test-test -> BC-4511-test-test-test (pre-receive hook declined) error: failed to push some refs to 'ssh://git@rnd-testbitbucket.intelerad.com:7999/bc/ahtest.git'
If I disable the following Control Freak option, my push is working: Match JQL: sprint not in futureSprints() AND sprint in openSprints()
Let me know if you need more information.
Thanks, Alain
Comments (2)
-
-
repo owner - changed status to closed
Thanks for the bug report! I think a number of people are running into this - we're going to try and improve our error messages for all of the 4xx and 5xx responses we get from Jira when oauth goes sideways.
- Log in to comment
I found the problem. You can close this issue.
2 possibilities: