Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.8.0
-
None
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
- relates to
-
BSERV-8920 Linux Installer: If the home directory is already owned by "atlbitbucket", don't chown -R it
- Closed