Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8920

Linux Installer: If the home directory is already owned by "atlbitbucket", don't chown -R it

XMLWordPrintable

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      When running the Linux Installer to upgrade an instance with a large amount of repository data under $BITBUCKET_HOME, it can spend a very long time doing a recursive chown of all the files in this directory, even if the home directory was already owned by the atlbitbucket user account.

      2016-06-09 06:54:52 Downloading Bitbucket latest from https://s3.amazonaws.com/atlassian-software/releases/bitbucket/latest/atlassian-bitbucket-linux-x64.bin
      2016-06-09 06:55:26 Installing Bitbucket to /opt/atlassian/bitbucket
      Starting Installer ...
      The target home directory is not empty.
      The installation directory has been set to /opt/atlassian/bitbucket.
      Extracting files ...
      2016-06-09 07:51:57 Installed Bitbucket to /opt/atlassian/bitbucket
      2016-06-09 07:51:57 Cleaning up
      
      USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
      root      3422  0.0  0.0  11600  2608 ?        S    06:55   0:00 bash /opt/atlassian/bitbucket/bin/chown.sh atlbitbucket /var/atlassian/application-data/bitbucket
      root      3423  1.2  0.0   8224  3520 ?        D    06:55   0:09 chown -R -H -L atlbitbucket:atlbitbucket /var/atlassian/application-data/bitbucket
      

      The Linux Installer should skip the chown -R step if the home directory is already owned by atlbitbucket.

              cszmajda Cristan Szmajda (Inactive)
              cszmajda Cristan Szmajda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: