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

Remote agent should fail to startup when osgi is not running

      Issue Summary

      If remote agent is started in a machine with high CPU/RAM usage, some plugins might fail to startup in remote agent due to "osgi is not running" but remote agent still manage to connect to Bamboo server and pick up Jobs causing it to fail later

      Steps to Reproduce

      1. Start a remote agent in a machine with high CPU/RAM usage
      2. Make sure that there is error like the following in the remote agent log:
        INFO   | jvm 4    | 2019/05/24 02:20:59 | 2019-05-24 02:20:58,953 ERROR [AgentRunnerThread] [ScanningPluginLoader] Unable to deploy plugin 'com.atlassian.bamboo.warnings.atlassian-bamboo-warnings' from 'Unit: /bamboo-home/plugins/system-provided/atlassian-bamboo-warnings-6.7.1.jar (1541842823000)'.
        INFO   | jvm 4    | 2019/05/24 02:21:00 | 2019-05-24 02:21:00,530 ERROR [AgentRunnerThread] [ScanningPluginLoader] Because of the following exception:
        INFO   | jvm 4    | 2019/05/24 02:21:00 | java.lang.IllegalStateException: Unable to create a tracker when osgi is not running
        
        
      3. Run a build with this remote agent and the related task in the above error

      Expected Results

      Remote agent fail to startup and Bamboo will not assign Job to it

      Actual Results

      Bamboo server assign Job to this remote agent that fail to startup the plugin causing the Job to fail

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [BAM-20444] Remote agent should fail to startup when osgi is not running

            Since Bamboo 7.0, agent will not start if it detects that mission critical plugins are not loaded correctly.

            Marcin Gardias added a comment - Since Bamboo 7.0, agent will not start if it detects that mission critical plugins are not loaded correctly.

              mgardias Marcin Gardias
              klfoong Foong (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: