Confluence backup fail(permission denied)

By KJ November 22, 2017

I'm trying to make a backup and get failed

this is message of atlassian-confluence.log

 

 

2017-11-22 17:37:20,600 INFO [http-nio-8090-exec-8] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Backward compatibility for export: "Upgrade to build number: 6169" prevents compatibility before 6169
2017-11-22 17:37:22,234 WARN [http-nio-8090-exec-8] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] beginBackup Begin Active objects backup, change log level to INFO for com.atlassian.activeobjects.confluence.backup for more detailed logging.
-- url: /admin/dobackup.action | traceId: d9d455116c015005 | userName: admin | referer: http://192.168.9.24:8090/admin/backup.action | action: dobackup
2017-11-22 17:37:23,558 WARN [http-nio-8090-exec-8] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] endBackup Completed active objects backup.
-- url: /admin/dobackup.action | traceId: d9d455116c015005 | userName: admin | referer: http://192.168.9.24:8090/admin/backup.action | action: dobackup
2017-11-22 17:37:23,738 ERROR [http-nio-8090-exec-8] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
-- url: /admin/dobackup.action | traceId: d9d455116c015005 | userName: admin | referer: http://192.168.9.24:8090/admin/backup.action
java.io.IOException: 허가 거부
at java.io.UnixFileSystem.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)

 

 

"허가 거부" means permission denied

 

permission of backups dir is this

drwxr-xr-x 2 confluence1 confluence1 4096 11월 22 17:38 backups

 

 

 

 

2 answers

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2017

The user running the Confluence service does not have full read/write access to <confluence home>/export

My guess is that it is not running as "confluence1"

0 votes
pas.argenio November 4, 2020

Workaround:

Uncheck the box entitled "Archive to backups folder"

The backup will be created in the temp folder, for example:

         /home/atlassian/application-data/confluence/temp

You can then copy this file manually to where you need it, obviously.

*** 11/26/2020 Update: In my case, the failures occurred after I had migrated from the built-in database to a new MySql database, which required me to create a new instance (confluence3, I called it). I finally got backups working by opening permissions on both

        /var/atlassian/application-data/confluence3/backups/

drwxrwxrwx 2 confluence3 confluence3 4096 Nov 26 02:07

and

         /var/atlassian/application-data/confluence3/

drwxrwxrwx 19 confluence3 root 4096 Sep 22 2019

The backups are written and .zip files in the former.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events