Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I copy Bamboo Artifacts from one instance to another ?

After exporting the backup, without Artifacts, and importing it into another Bamboo Instance, my plan is to copy the artifacts from file system from the old Bamboo instance to the new one.

I am not doing the full System Export [Overview > System > Export] including Artifacts, because my Bamboo instance is huge, and the export process is taking way too long when I try to export Artifacts with the System Export, and I'm talking weeks here. The last export process started 9 days ago, and its still in progress.

Is that possible ? If yes, how. If not, why and is there any kind of workaround ?

1 answer

1 accepted

0 votes
Answer accepted

Hi @yash_shanker24

Yes, you can add the artifacts later, but that is only possible if you use the option [x] Export Results when exporting the data.

I'm working on a different question from you:

Let's focus our efforts on that one. Depending on what you are trying to achieve we could use the backup of your DB external tool and not Bamboo export. The Bamboo export is a slow process that translates your Bamboo data to an independent DB format and therefore requires a lot of processing time. Its performance is bad for instance that are too big.

The other option on migration and upgrades is using a backup from the external DB tool. That backup would be fast and would also preserve all the Bamboo information.

Let's talk about this process in the other thread.

Hey @Daniel Santos ,

I understand you, but I am actually performing two parallel export processes of the same Bamboo instance on two different clone servers.

One is a complete backup with all options checked, lets call it WA. And other with all options checked except artifacts, lets call it WoA

WA export process is in progress for the 9th day today. WoA export process completed in 1 day, and I had setup a new Bamboo instance, lets call it NewBamboo with upgraded Bamboo version and external MSSQL database, and I started the import of the WoA export file in that. And the export is in progress for the 8th day today.

Logs in the importing process in NewBamboo as of now are :

2019-10-17 18:24:55,075 INFO [http-nio-8085-exec-8] [BambooStAXMappingHelperAbstractImpl] Importing artifactLinks.artifactLink: 120000, used memory 1004 MB
2019-10-18 07:43:34,793 INFO [http-nio-8085-exec-8] [BambooStAXMappingHelperAbstractImpl] Importing artifactLinks.artifactLink: 130000, used memory 1014 MB

Hey @Daniel Santos 

Logs from just now

17-Oct-2019 10:57:07.879 WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadCompleted Thread [http-nio-8085-exec-23] (id=[41]) was previously reported to be stuck but has completed. It was active for approximately [63,825,226] milliseconds. There is/are still [1] thread(s) that are monitored by this Valve and may be stuck.
2019-10-17 11:31:53,757 INFO [http-nio-8085-exec-17] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/error/errorEvents.action?next=%2F 59036kb
2019-10-17 15:18:34,784 INFO [http-nio-8085-exec-25] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/error/errorEvents.action?next=%2F 41242kb
2019-10-17 17:24:34,488 INFO [http-nio-8085-exec-24] [AccessLogFilter] 0:0:0:0:0:0:0:1 GET http://localhost:8085/error/errorEvents.action?next=%2F 42990kb
2019-10-17 18:24:55,075 INFO [http-nio-8085-exec-8] [BambooStAXMappingHelperAbstractImpl] Importing artifactLinks.artifactLink: 120000, used memory 1004 MB
2019-10-18 07:43:34,793 INFO [http-nio-8085-exec-8] [BambooStAXMappingHelperAbstractImpl] Importing artifactLinks.artifactLink: 130000, used memory 1014 MB
2019-10-18 12:36:12,704 ERROR [http-nio-8085-exec-8] [TransactionInterceptor] Application exception overridden by rollback exception
java.lang.OutOfMemoryError: Java heap space
at java.util.AbstractCollection.toArray(Unknown Source)
at java.util.ArrayList.<init>(Unknown Source)
at com.atlassian.bamboo.hibernate.cachehooks.DirtiedHibernateSessionObjectRecorder.getTxSync(
at com.atlassian.bamboo.hibernate.cachehooks.DirtiedHibernateSessionObjectRecorder.scheduleInvalidationIfNeeded(
at com.atlassian.bamboo.hibernate.cachehooks.DirtiedHibernateSessionObjectRecorder.onSave(
at com.atlassian.bamboo.hibernate.ReadOnlyGetMethodEnforcer.onSave(
at com.atlassian.bamboo.persister.OidGenerationInterceptor.onSave(
at org.hibernate.event.internal.AbstractSaveEventListener.substituteValuesIfNecessary(
at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(
at org.hibernate.event.internal.AbstractSaveEventListener.performSave(
at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(
at org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(
at org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate(
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(
at org.hibernate.internal.SessionImpl.fireSave(
at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.saveBambooObject(
at com.atlassian.bamboo.migration.BambooStAXListImportStrategy.importListItemXml(
at com.atlassian.bamboo.migration.BambooStAXListImportStrategy.access$100(
at com.atlassian.bamboo.migration.BambooStAXListImportStrategy$3$1.doInTransaction(
at com.atlassian.bamboo.migration.BambooStAXListImportStrategy$3$1.doInTransaction(
2019-10-18 12:36:12,720 ERROR [http-nio-8085-exec-8] [ExceptionMappingInterceptor] Method "execute" failed for object com.atlassian.bamboo.ww2.actions.setup.SetupImportDataAction@52ec9b18
ognl.MethodFailedException: Method "execute" failed for object com.atlassian.bamboo.ww2.actions.setup.SetupImportDataAction@52ec9b18 [java.lang.OutOfMemoryError: Java heap space]


I guess the import failed. Kindly instruct me further.
This import was running on a t3.large AWS Instance.

Screenshot from 2019-10-18 17-12-49.png

By default, the values of Xms and Xmx were 1024MB, I have increased them to 16GB and started the import process again.

Hi @yash_shanker24

Thank you for sharing that. Unfortunately, the import process is even slower than the export one. 

Short instructions on this one:

  1. We don't need the export with artifacts and build logs
  2. We should try to shrink this instance to the minimum size possible before moving forward
  3. Yes, we will need more memory for the import and it will take a lot of time. 
    I'm considering that you are migrating from an embedded DB to an external one like shared in the other thread.

Please let's work only in the other thread from now. It will help us to keep ourselves organized.

This is the one we should talk from now on:

I'll send you another message there.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

675 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you