Internal server error when Jenkins tries to fetch branches

Issue #15321 closed
Paul Lorenz
created an issue

Internal server error from Bitbucket cloud API when multi-branch plugin in Jenkins is trying to fetch branches.

Started
[Wed Dec 06 10:41:58 EST 2017] Starting branch indexing...
Connecting to https://bitbucket.org using <redacted>
Repository type: Git
Looking up redacted/redacted for branches
ERROR: [Wed Dec 06 10:42:32 EST 2017] Could not fetch branches from source <redacted>
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 500: Internal Server Error.
{"type": "error", "error": {"message": "Internal server error", "id": "2c410f812040454a97b5332bcfe155dd"}}
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:599)
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getBranches(BitbucketCloudApiClient.java:318)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$2.create(BitbucketSCMSource.java:559)
    at com.cloudbees.jenkins.plugins.bitbucket.LazyIterable.iterator(LazyIterable.java:57)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:745)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:573)
    at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
    at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:421)
[Wed Dec 06 10:42:32 EST 2017] Finished branch indexing. Indexing took 33 sec
FATAL: Failed to recompute children of <redacted>
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 500: Internal Server Error.
{"type": "error", "error": {"message": "Internal server error", "id": "2c410f812040454a97b5332bcfe155dd"}}
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:599)
    at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getBranches(BitbucketCloudApiClient.java:318)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$2.create(BitbucketSCMSource.java:559)
    at com.cloudbees.jenkins.plugins.bitbucket.LazyIterable.iterator(LazyIterable.java:57)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:745)
    at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:573)
    at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
    at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
    at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
    at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
    at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
    at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE

Note: This project has a few thousand branches, which may be related. This works fine for all other projects, all of which are smaller and have many fewer branches.

Comments (2)

  1. Sean McCullough

    Hello,

    This issue tracker is for the reporting of specific bugs and feature requests for Bitbucket Cloud. For issues such as this, we recommend reporting this issue to our support team. For Bitbucket Cloud Support, please visit https://support.atlassian.com/bitbucket-cloud/ and raise an issue there. When reporting, please be sure to include any error codes that may have been displayed on the screen, or in the response.

    We're going to close this issue as invalid for now. Should support determine that this is a new bug, they will open the issue and direct you there.

    Cheers,
    Sean

  2. Log in to comment