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

If your $BITBUCKET_HOME/shared is an NFS mount that squashes root, the Installer cannot copy server.xml

    XMLWordPrintable

Details

    Description

      If you run the Bitbucket Server installer and your $BITBUCKET_HOME/shared is an NFS mount that squashes root accesses, you get the error:

             Copy /opt/atlassian/stash/conf/server.xml to /media/atl/stash/shared/server.xml
             Install file: /media/atl/stash/shared/server.xml; size: 7647 bytes; exists: false
             File options set to: [fileTime: Fri Mar 20 15:08:56 UTC 2015, mode: 644, overwriteMode: Never, shared: false, uninstallMode: If created, delayIfNecessary: false]
      [ERROR] com.install4j.runtime.beans.actions.files.CopyFileAction [ID 76145]: Could not write /media/atl/stash/shared/server.xml
              Install file not successful: /media/atl/stash/shared/server.xml
              Execute action not successful after 4 ms
      [INFO] com.install4j.runtime.beans.actions.files.DeleteFileAction [ID 76144]: Execute action
             Property backupForRollback: true
             Property rollbackSupported: true
             Property showProgress: false
             Property showFileNames: true
             Property recursive: false
             Property fileFilter: null
             Property directoryFilter: null
             Property files: [conf/server.xml]
             Backing up /opt/atlassian/stash/conf/server.xml
             Execute action successful after 1 ms
      

      To fix this, the installer should copy server.xml with su atlbitbucket -c "cp -n \"$1\" \"$2\", ONLY for Linux if you are installing as root.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: