Improve Bitbucket Server installer error reporting when home directory permissions are insufficient

XMLWordPrintable

    • 1

      Summary

      When running the Bitbucket Server installer as a user other than root, if the supplied home directory is not owned by that user and the user does not have write permissions but has read and execute, the installation fails without an error.

      Steps to Reproduce

      1. Create a home directory that is owned by root
      2. Give the home directory 755 permissions
      3. Run the installer as a different user (reproduced with user "atlassian"), and give it this home directory
      4. Continue with default options, and agree to Install

      Expected Results

      An error such as "You have no write permissions for the directory", which is given when the user has no permissions at all to the home directory. If the directory permissions are changed to 700 instead of 755, the installer does throw this error.

      Actual Results

      The user sees the following before the installer exits:

      Extracting files ...
                                                                                 
      Rolling back changes ...

      Workaround

      Two possible workarounds:

      1. Give the user running the installer write permissions to the home directory.
      2. Run the installer as root.

            Assignee:
            Unassigned
            Reporter:
            Shashank Maruvada (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: