Elastic Agent does not mount a Volume to my Elastic Instance

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptom

When an Elastic Bamboo is configured to use an EBS snapshot the elastic agent will mount an EBS-volume that has been created before to the elastic instance. This volume will be populated with the contents of a snapshot. The relation is:

1 snapshot 1 ---- * Volume

Your AWS account lets you limit the maximum number {N} of volumes available.

If not enough volumes are available, i.e. are ready to mount, the elastic agent will not succeed to mount a volume to the elastic instance and will use the default bamboo agent home directory that will be empty after startup.

The instance will still work but you will experience longer build times.

Looking at your aws console will reveal some volumes that are linked to a snapshot but are not attached to an instance, for example i-b626b6df:/dev/sdh (attached). You will have 'dangling' volumes associated with snapshots that are still 'in use' and cannot be used by other elastic instances.

Causes

There are several reasons:

  • Bamboo has crashed or lost connection to the elastic instance

  • Bamboo was shut down without all running instances shutting down.

Diagnosis

Access your elastic instance via ssh and view the /tmp/setupEbsSnapshot.log file for any details.

Solution

Free up your accounts capacity by deleting some volumes that are not mounted to any active instance.

Remember to shut down elastic instances via Bamboo's Management Console.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.