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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Getting an ImportExportException error when trying to backup a confluence Edited

When trying to backup a DB manually, on confluence server 6.15.9

Getting the following error:

 -- url: /admin/dobackup.action | traceId: 91461f5570ee77a8 | userName: adminexample | referer: | action: dobackup
org.springframework.orm.hibernate.HibernateSystemException: Transaction was marked for rollback only; cannot commit; nested exception is net.sf.hibernate.TransactionException: Transaction was marked for rollback only; cannot commit
at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(
at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(
at org.springframework.orm.hibernate.HibernateTemplate.execute(
at org.springframework.orm.hibernate.HibernateTemplate.execute(
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findAllPersistentObjectsHandlesUntyped(
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findAllPersistentObjectsHibernateHandles(
at com.atlassian.confluence.importexport.impl.BackupExporter.getHandlesOfObjectsForExport(
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEntities(
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEverything(
at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupEverything(
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.doExport(
at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExportInternal(
Caused by: net.sf.hibernate.TransactionException: Transaction was marked for rollback only; cannot commit
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(
at org.hibernate.engine.transaction.internal.TransactionImpl.commit(
at com.atlassian.hibernate.util.TransactionHelper$RestartOnCommitTransaction.commit(
at com.atlassian.hibernate.adapter.adapters.TransactionV2Adapter.commit(
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao$AllPersistentObjectsHandlesLoader.doInHibernate(
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.lambda$findAllPersistentObjectsHandlesUntyped$3(
at org.springframework.orm.hibernate.HibernateTemplate.execute(

Go to Confluence administration > Backup and Export > and click export

any of the options doesn't effect the error and the backup fails


1 answer

0 votes

Hello Anatoly,

Thanks for reaching out about your issues with backing up Confluence from within Confluence. From the error you provided and the logs (which are super helpful) it looks like an issue with the database. From this, we believe the issue lies within your database configuration/setup which might be causing this issue. We would ask you to attempt a database backup from your database application itself to ensure no errors are present there.

If your database backup succeeded without error, please let us know which database application you’re using so we may investigate further.

Stephen SIfers

Hello Stephen, 


I am running a docker container with:

PostgreSQL 9.6.15 on x86_64-pc-linux (Alpine 8.3.0) 

the DB is being exported via pg_dump command without any errors. 

Like Stephen Sifers likes this

Hello Anatoly,

Thanks for the follow-up and further information about your database. The issue you’re reporting can be due to database corruption, which is why I asked for you to attempt a local database backup. I would ask for you to review the following doc on exporting to XML to further troubleshoot the matter: Troubleshooting failed XML site backups.

If you’re still having issues after following the above article, please let us know.

Stephen Sifers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

342 views 23 8
Join discussion

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