Generating a Confluence XML Backup fails with 'The system cannot find the path specified'

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

    

Summary

Generating an XML Backup fails with 'The system cannot find the path specified'

Environment

  • Confluence Server and Data Center

Diagnosis


The following appears in atlassian-confluence.log:

2020-09-10 11:08:02,606 ERROR [http-nio-80-exec-1295] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
 -- referer: http://localhost/admin/backup.action | url: /admin/dobackup.action | traceId: 465ff93b017706f2 | userName: admin
java.io.IOException: The system cannot find the path specified
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:461)
	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:397)
	at com.atlassian.confluence.importexport.actions.BackupAction.execute(BackupAction.java:69)


Cause

The configured backup path does not exist or the user running Confluence does not have proper permissions to the path.

Solution

If a custom backup path (Configuring Backups) is being used, please verify that the path exists and the user running Confluence has full permissions to the path.

If a default backup path is used, please verify that the user running Confluence has full permissions to <confluence-home-directory>/backups.

Show me how to do that...

Linux

An example of the right permissions would be:

sudo chown -R <confluence-user> <confluence-home-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-home-folder>

The user confluence is only a suggestion. You can change it for another username.

Windows

  • Right-click the <Confluence Home> Folder
  • Select Properties
  • Select Security
  • Add the user that is being used to run Confluence with full read and write access



Last modified on Oct 14, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.