"Source repository" page of the branch plan throws "Internal Server Error"

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Navigation to "Source repository" page of the Branch plan under the plan configuration throws "Internal Server Error". This happens when you upgrade Bamboo from 5.12.2 to 5.15.7 or higher.

Cause

The problem happens because the repository configuration was missing from the main plan configuration in Bamboo 5.12.2. And when we upgrade bamboo 5.12.2 to 5.15.7, the Bamboo checks for the branch repository link to the parent repository under the main plan repository configuration. But, since this mapping is not resolved, bamboo throws the error "Inernal Server Error" on the "source repository" screen of the branch plan. 

Resolution

As a resolution to this problem, we need to identify the plans whose mapping is not resolved between the branch plan and parent plan using the below SQL query.

Follow the below steps for executing the query:

  • Log into Bamboo Database
  • Execute the query

    select * from plan_vcs_location where vcs_location_id in (select vcs_location_id from vcs_location )
     and plan_id in (select build_id from build where full_key = <your-branch-plan-key>);

     

    If you find any output from the above query, then take the output and reach out to support.


    In the above query, you have to replace the <your-branch-plan-key> with your branch plan key. And if you have multiple branches facing the same error then execute the same SQL statement for all of these branch plan keys.

    You can get the branch plan key by navigating to the branch plan under the plan configuration and then take the key from the URL after the "planKey=". For example in the below image, when I navigate to Branch "deva" the key for this is "BS-PLA1"

Last modified on Jul 21, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.