Questions about intermittent backup issues.

Confluence daily backup was not working in intermittently. (Confluence version : 5.9.4)

We back up Confluence contents including attachments regularly(every day)

We had set up to backup automatically every four o'clock, and we have recently encountered an issue.(Previously used normally)

2018-01-04 04:03:50,112 ERROR [scheduler_Worker-6] [confluence.importexport.impl.BackupJob] executeJob Error while running the scheduled backup
com.atlassian.confluence.importexport.ImportExportException: /var/atlassian/application-data/confluence/temp/xmlexport-20180104-020000-100/attachments/18583484/18583446/1 (No such file or directory)
 at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExportInternal(
 at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExport(
 at com.atlassian.confluence.importexport.DefaultImportExportManager.doExport(
 at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(
 at sun.reflect.GeneratedMethodAccessor7580.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
 at com.sun.proxy.$Proxy111.exportAs(Unknown Source)
 at com.atlassian.confluence.importexport.impl.BackupJob.executeJob(
 at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(
 at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(
 at org.springframework.scheduling.quartz.QuartzJobBean.execute(
 at com.atlassian.scheduler.quartz1.Quartz1JobFactory$ClassLoaderProtectingWrappedJob.execute(
 at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool.lambda$runInThread$185(
 at org.quartz.simpl.SimpleThreadPool$
Caused by: /var/atlassian/application-data/confluence/temp/xmlexport-20180104-020000-100/attachments/18583484/18583446/1 (No such file or directory)
 at Method)
 at com.atlassian.core.util.FileUtils.createZipFile(
 at com.atlassian.confluence.importexport.impl.FileXmlExporter.doExportInternal(
 ... 21 more


Whenever the current phenomenon occurs, the attachment file number(In the above case, attachment number is 18583484) that failed to access was different. 

When the file was unzipped, the attachment(18583484/18583446/1) was in a zero file size. Is this related?

If the backup succeeded, that file size is not zero.

On the other hand, I do not assume that the attached file does not exist.

It is assumed that the specific logic did not create the attachment number during the backup process.

We want to estimate the cause of the problem.

If you know anything about the related part, please ask for your help.


1 answer

1 accepted

1 vote
Accepted answer


Can you please first, for sanity check, ensure the right folder permissions on the Confluence home folder by enabling full read and write access or check for the right user that start up the Confluence server?

Please also double check if the backup path in the error above matches the default backup path from http://<confluence-url>/admin/dailybackupadmin.action, and look at the Confluence database. Check for the entry 'backupPath' in XML stored in BANDANA table

 select * from BANDANA where BANDANAKEY = 'atlassian.confluence.settings';

Lastly, you will want to check over Anti-virus or Firewall settings to see if it is blocking the access. You may want to also speak with any server admin you have if they have any information about what might be causing the permissions error.



Thank you for your reply!!

confluence backup process is create zip file(per 1 day) included confluence attachments(default path : /var/atlassian/application-data/confluence/attachments).

Whenever the current phenomenon occurs, the attachment file number was different.

In some cases the backup succeeds, the attachments of the previously failed number are backed up normally.

I checked the permissions on the attachment number, so the permissions were different for each directory.

drwxr-xr-x.   3 confluence confluence   24 10월 24 15:12 0
drwxr-xr-x.   3 confluence confluence   23  4월 15  2016 1
drwxr-xr-x.   3 confluence confluence   24  3월 31  2017 100
drwxr-xr-x.   3 confluence confluence   23  8월  4 18:05 11
drwx------.   3 confluence confluence   16  2월 16  2015 113
drwx------.   3 confluence confluence   16  2월 23  2015 114
drwx------.   4 confluence confluence   36 11월  3  2015 115

By the way, if it's really a matter of permissions, wiil not it keep failing?

The account is running as a confluence account.

conflue+ 153430      1  5  2017 ?        1-17:53:39 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/ -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms2048m -Xmx4096m -XX:+UseG1GC -Djava.awt.headless=true -Xloggc:/opt/atlassian/confluence/logs/gc-2017-12-11_16-57-53.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:-PrintGCDetails -XX:+PrintGCTimeStamps -XX:-PrintTenuringDistribution -Djava.endorsed.dirs=/opt/atlassian/confluence/endorsed -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence org.apache.catalina.startup.Bootstrap start

The backupPath matches the database.


I checked the linux environment with your advice, and checked the selinux section.(enforcing) Could that be affected?


Thanks again for your reply!^^



Uijoong kim

Hi there,

I meant to say that you should check the permissions for the Confluence user on the backup directory itself, as mentioned previously:

 Please also double check if the backup path in the error above matches the default backup path from http://<confluence-url>/admin/dailybackupadmin.action, and look at the Confluence database. Check for the entry 'backupPath' in XML stored in BANDANA table

 select * from BANDANA where BANDANAKEY = 'atlassian.confluence.setti

However, as it is intermittent, it sounds like another issue.

  1. When you run without backing up attachments, does it ever fail? 
  2. How large is a completed backup? These backups shouldn't be very large, and if they are, are likely to fail.
  3. Due to the fact that we do not recommend using the automatic XML backups on a production server, can you confirm you are primarily relying on an alternative backup strategy
  4. What has changed in your system since you were able to run backups without issue? Are you behind a proxy now? Have you changed your database?
  5. What database and version are you using?
  6. And finally, your version of 5.9.4 has reached End of Life and I would highly recommend upgrading, at least to version 5.10, which will also reach end of life 8 June, 2018. 

Let me know if you have any questions.



1. Even if We include attachments from backup, it will succeed (intermittently). if We perform a manual backup on the date that the automatic backup fails, it will succeed.

2. The capacity is approximately 25~26 GB. Will this amount of capacity be affected?

3. Thank you about information.

In recommendation, it is understood that the following files(confluence home directory) and DB dump are executed separately. To restore, insert the dump file and change the home directory. Are you fit?

We want to perform backups every day. In this situation, it is estimated that the full compression of the confluence home directory and db dumping each time will also require a lot of server resources. what do you think about this?

4. We have not changed it, including database and configuration, We have not been configured as a proxy.

5. we using the postgres (version :  9.2.15)

6. There are no plans to update yet. If we are going to updating confluence, this issue is resolved?


Thank you for your reply.


Uijoong Kim.

Uijoong Kim,

The issue is simply that your instance is too large for the automated backups, and these are not meant to be used with a production instance, and are less reliable for recovery.

You will want to follow the Production Backup Strategy that I let you know about. 

  1. Backup your Postgres database separately using pg_dump dbname > outfile.  
  2. Backup the following files:
    1. <conf-home>/confluence.cfg.xml
    2. <conf-home>/attachments
    3. <conf-home>/config – if you have modified your ehcache.xml file.
    4. <conf-home>/index – if your site is large or reindexing takes a long time – this will avoid the need for a full reindex when restoring.
  3. Restore can be done using the method at Migrating Confluence Between Servers.

You can speak to your server administrator about automating this on your environment.

It is true that the backup may use a lot of server resources, and for this reason, I would recommend doing it during your daily maintenance period.

An update will not fix this, as we continue to recommend using an alternate Production Backup Strategy for production instances, especially large ones. However, with such an old version of Confluence, you will continue to run into issues. It's always best practice to use a version that has not yet reached End-of-Life.

I hope that has clarified things for you but do let me know if you have any questions.


Thank you for your reply Shannon.

we'll have a plan to change the XML backup to Production Backup Strategy.

I have two questions about your reply.

1. what is the <conf-home>/config directory? We are not found that directory in <conf-home>.

2. If we have a new Confluence installation, 

Even if only a small amount of data(confluence.cfg.xml, attachments, index, confluence db dump) is moved, Is it possible to use the same as before?

In the description, It says that the rest(thumnail, viewfile ...) are generated automatically except for the minimum number of files(confluence.cfg.xml, attachment, index, confluence db dump). Is it true?


In Migrating Confluence step 4, "the home directory from your old Confluence server" words is.. I think this words are ambiguous. 

Would you be able to successfully use Confluence if We moved only minimal files(confluence.cfg.xml, attachment, index, confluence db dump) instead?


Thanks for your sincere answers. Shannon!



Ui joong Kim.

Hi there,

  1. It does mention in the article that the /config file will be there if you have modified your ehcache.xml file. If you have not, then you can skip that step.
  2. The smallest amount of data you need to move, besides your database of course, is:
    1. <conf-home>/confluence.cfg.xml
    2. <conf-home>/attachments
    3. <conf-home>/index can be backed up as well if you have a large instance and don't want to have to wait for a long reindexing period once you migrate.
  3. Everything else will be generated automatically upon migration.
  4. In step 4 of Migrating Confluence, it asks you to delete everything in your home directory on the new instance, and migrate the content from your old instance. This would be the files I mentioned in step 2. I hope this is clear!

Once you follow the steps exactly from Migrating Confluence you should have no problems using Confluence again on the new server.

Let me know if you have any questions!



Thanks for your sincere answers. Shannon!

If we have a related inquiry again, I'll ask you a question.



Uijoong Kim.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you