Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-28575

Wrong backup path is used for archived backups after performing a site import

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • None
    • 4.3.7, 5.0-OD-27, 5.0.3, 6.3.4, 6.4.0
    • None

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Steps to reproduce

      1. Perform a full site export of a Confluence instance
      2. Set up an instance with a different home directory (this is so that the backup path will differ from the export)
      3. Check the backup path of your instance on the Backup Administration screen (/admin/dailybackupadmin.action)
      4. Now import the backup you created in step 1
      5. Check the backup path of your instance on the Backup Administration screen - it still shows what it did in step 3
      6. Perform another site backup, with the option to archive a copy of the backup checked
      7. You'll see that the temporary backup is created where you would expect (in the location that matches the backup path you saw in steps 3 and 5), but the archived backup is created in the home directory that was specified in the instance you imported from

      In cases where that location doesn't exist anymore, a stacktrace will appear instead:

      java.io.IOException: No such file or directory
      	at java.io.UnixFileSystem.createFileExclusively(Native Method)
      	at java.io.File.createNewFile(File.java:883)
      	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:465)
      	at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:401)
      

      See attached files for full stack trace.

      I think the desired behaviour in this case is that the existing backup path of the instance is used, instead of the path from the import. This will ensure that the location always exists (since the home directory of this instance has to!).

      Workaround

      On the Backup Administration screen, click to edit the backup settings. You won't be able to change the backup path, but once you submit the form Confluence will go back to using the backup path that's specified on this screen.

        1. 5.0.3 stacktrace.txt
          25 kB
          edith
        2. 5.0.3 wrong location.png
          40 kB
          edith

            [CONFSERVER-28575] Wrong backup path is used for archived backups after performing a site import

            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 158479 ]

            +1 for seeing this fixed - I just encountered it, and had I not found this bug report with a suggested workaround, I'm not sure I ever would have figured out what was going on...

            Shaun Dishman added a comment - +1 for seeing this fixed - I just encountered it, and had I not found this bug report with a suggested workaround, I'm not sure I ever would have figured out what was going on...

            Also hit me today in the latest version (6.15.4)

             

            Andrew Lister added a comment - Also hit me today in the latest version (6.15.4)  
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2879895 ] New: CONFSERVER Bug Workflow v4 [ 2988575 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2804020 ] New: JAC Bug Workflow v3 [ 2879895 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2737723 ] New: JAC Bug Workflow v2 [ 2804020 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392888 ] New: JAC Bug Workflow [ 2737723 ]
            Lucas Machado (Inactive) made changes -
            Affects Version/s New: 6.4.0 [ 73001 ]
            Lucas Machado (Inactive) made changes -
            Affects Version/s New: 6.3.4 [ 72919 ]
            James Richards made changes -
            Link New: This issue is related to CONFSERVER-53451 [ CONFSERVER-53451 ]

              shaffenden Steve Haffenden (Inactive)
              etom edith (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: