No pull request exists with ID

I'm getting emails to say that a pull request has been created. When I follow the link, it tells me that the pull request doesn't exist. The pull requests were created by our own commit hook plugin - logging shows that the API call succeeds without any exceptions being thrown. It used to work, but we have regularly encountered this ever since we upgraded BitBucket Server to version 5.3. If I manually create the same PR via the UI, it works as expected.

We see these in the logs:

atlassian-bitbucket.log:2017-09-26 07:02:29,927 ERROR [AtlassianEvent::thread-1] smartling @1YM4EYXx422x865876x0 192.168.128.250 "POST /scm/tran/circ-ui-msi.git/git-receive-pack HTTP/1.1" c.a.s.i.e.AsyncBatchingInvokersTransformer There was an exception thrown trying to dispatch event 'com.atlassian.bitbucket.event.pull.PullRequestOpenedEvent[source=com.atlassian.stash.internal.pull.DefaultPullRequestService@271fae35]' for the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.stash.internal.jira.index.impl.IndexEventListener.onPullRequestOpened(com.atlassian.bitbucket.event.pull.PullRequestOpenedEvent), listener=com.atlassian.stash.internal.jira.index.impl.IndexEventListener@725c0f68}'

atlassian-bitbucket.log:2017-09-26 07:02:29,960 WARN [threadpool:thread-4] smartling @1YM4EYXx422x865876x0 192.168.128.250 "POST /scm/tran/circ-ui-msi.git/git-receive-pack HTTP/1.1" n.t.b.api.PullRequestListener InternalPullRequest{id=7709, title=Translation changes}: Mergeability check failed; pull request refs may not be up-to-date
atlassian-bitbucket.log:com.atlassian.bitbucket.pull.NoSuchPullRequestException: No pull request exists with ID 60 in CIR/circ-ui-msi.

If anyone has any suggestions on how we might resolve the issue, they would be gratefully received.

Some more details:

  • We're creating a PR from a fork back to its origin repo. The fork has syncing enabled.
  • We successfully use the same plugin across many other repos configured in the same way - this appears to be specific to just one repo. As far as I can tell, it isn't configured any differently.

 

1 answer

0 vote
Peter Scobie Atlassian Team Mar 27, 2018

Hi Alex, suggest you raise a support request - https://jira.atlassian.com/projects/BSERV/

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

138 views 6 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you