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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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: https://confluence.example.com/admin/backup.action | 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(SessionFactoryUtils.java:597)
at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353)
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375)
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337)
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findAllPersistentObjectsHandlesUntyped(HibernateAnyTypeDao.java:122)
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findAllPersistentObjectsHibernateHandles(HibernateAnyTypeDao.java:117)
at com.atlassian.confluence.importexport.impl.BackupExporter.getHandlesOfObjectsForExport(BackupExporter.java:26)
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEntities(AbstractXmlExporter.java:199)
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.backupEverything(AbstractXmlExporter.java:99)
at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupEverything(FileXmlExporter.java:95)
at com.atlassian.confluence.importexport.impl.AbstractXmlExporter.doExport(AbstractXmlExporter.java:93)
at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExportInternal(FileXmlExporter.java:60)...
...
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(JdbcResourceLocalTransactionCoordinatorImpl.java:217)
at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:68)
at com.atlassian.hibernate.util.TransactionHelper$RestartOnCommitTransaction.commit(TransactionHelper.java:45)
at com.atlassian.hibernate.adapter.adapters.TransactionV2Adapter.commit(TransactionV2Adapter.java:30)
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao$AllPersistentObjectsHandlesLoader.doInHibernate(HibernateAnyTypeDao.java:326)
at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.lambda$findAllPersistentObjectsHandlesUntyped$3(HibernateAnyTypeDao.java:123)
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)

https://confluence.example.com/admin/backup.action

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.

Regards,
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.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
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