Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22418

Add options to disable Bamboo plugins during startup

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Plugins
    • None
    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Problem Definition:

      1) In some cases, Bamboo would not be able to startup due to a specific plugin that is installed in the instance. Then, we would need to startup the instance by moving the plugins out of the caches/plugins folder manually before starting up Bamboo to make sure that the instance at least is accessible.

      This is the current steps to start Bamboo in safe mode:

      1. Stop Bamboo
      2. Navigate to <bamboo-shared-home > plugins folder
      3. Rename the plugins folder to anything else
      4. This will make Bamboo create the folder again
      5. Start Bamboo

      Then, nothing will be initialized as the folder empty and Bamboo starts in safe mode. But, this is not exactly simple to perform.

      2) Another option is to run the below query and find the details related to the plugin which you want to disable

      select * from bandana where bandana_key like 'bamboo.plugin.state'
      

      Details would be displayed like below from the column serialized_data

      <com.atlassian.plugin.manager.DefaultPluginPersistentState>
        <map class="java.util.Collections$UnmodifiableMap">
          <m>
            <entry>
              <string>io.qameta.allure.allure-bamboo</string>
              <com.atlassian.plugin.manager.PluginEnabledState>
                <enabled>true</enabled>
                <timestamp>1688737505717</timestamp>
              </com.atlassian.plugin.manager.PluginEnabledState>
            </entry>
          </m>
        </map>
      </com.atlassian.plugin.manager.DefaultPluginPersistentState>
      

      Set enabled as false for the plugin which you want to disable from the column serialized_data
      For any DB update queries, make sure to to take backup of the tables.

      Suggested Solution

      To have a specific flag that will make Bamboo to startup in safe mode without making changes in that folder.

      • First flag to make Bamboo startup in a safe mode
      • Second flag to disable a specific plugin by passing the class name of the plugin. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            4f38d6bf51c0 Shashank Kumar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: