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

Support Zip missing application-logs when using symlink in Confluence Home

    XMLWordPrintable

Details

    Description

      Problem

      Support Zip is generated but doesn't include application-logs

      Environment

      Confluence v8.5.3 running on Linux with the below config for Confluence home:

      $ ls -la /var/atlassian/application-data/confluence/
      total 60736
      drwxr-xr-x 12 confluence confluence     4096 Nov 28 18:22 .
      drwxr-xr-x  4 root       root             36 Nov 21 09:22 ..
      drwxrwxr-x  2 confluence confluence     4096 Nov 21 04:47 bundled-plugins
      -rw-rw-r--  1 confluence confluence     7352 Nov 28 18:22 confluence.cfg.xml
      drwxrwxr-x  4 confluence confluence     4096 Nov 28 18:22 index
      drwxrwxr-x  2 confluence confluence     4096 Nov 27 08:36 journal
      -rw-rw-r--  1 confluence confluence        0 Nov 21 04:47 lock
      drwxrwxr-x  4 confluence confluence     4096 Nov 21 04:50 log
      lrwxrwxrwx  1 root       root             18 Nov 21 09:23 logs -> ../logs/confluence
      drwx------  2 confluence confluence    16384 Nov 21 04:44 lost+found
      drwxrwxr-x  2 confluence confluence     4096 Nov 28 18:20 plugins-cache
      drwxrwxr-x  5 confluence confluence     4096 Nov 21 04:47 plugins-osgi-cache
      drwxrwxr-x  2 confluence confluence     4096 Nov 21 04:47 plugins-temp
      -rw-rw-r--  1 confluence confluence      860 Nov 21 04:50 synchrony-args.properties
      -rw-rw-r--  1 confluence confluence 62073947 Nov 28 18:21 synchrony-standalone.jar
      drwxrwxr-x  2 confluence confluence    20480 Nov 29 10:00 temp
      drwxrwxr-x  2 confluence confluence    36864 Nov 29 12:41 webresource-temp 

       

      Steps to Reproduce

      1. Install Confluence v8.5.3 DC on a Linux VM
      2. Stop Confluence 
      3. Setup the symlink
        mkdir -p /var/atlassian/application-data/logs/confluence/
        chown -R confluence:confluence /var/atlassian/application-data/logs
        cp -R /var/atlassian/application-data/confluence/logs/* /var/atlassian/application-data/logs/confluence
        rm -rf /var/atlassian/application-data/confluence/logs
        cd /var/atlassian/application-data/confluence
        ln -s /var/atlassian/application-data/confluence/logs logs
        

      Expected Results

      Support Zip will be correctly generated

      Actual Results

      Support Zip is missing application-logs folder

      Workaround

      Do not use symlinks inside Confluence home

      Notes

      The same setup doesn't cause any issue on v7.19.16 with ASTS v1.50.2. I have tested also v1.52.2 and the behaviour is the same.

      Attachments

        Issue Links

          Activity

            People

              418cb3cd182b Krzysztof Dubanowicz
              63948a2d3746 Marco Salvi
              Votes:
              9 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: