Hi,
I recently upgraded Bitbucket from V5.16.1 to V6.6.1 and during the upgrade process the installer got to "extracting files" and just froze. I ran the installer 3 times with the same result of it freezing on "extracting files".
It turns out that the whole service had installed and been upgraded, just the UI of the installer froze and clearly something was running in the background.
Has anyone experienced this before or know any ways to mitigate this in the future.
FYI - the upgrade was tested in our sandpit environment and ran smoothly.
We ran into this problem in our staging environment. I noticed the stuck node was doing a lot of waiting and chown processes. I assumed it was trying to re-own the files in the shared directory. Our environment has a couple nodes with some considerable latency issues. We only had the problem on the nodes in staging with high nfs latency. The other nodes ran smoothly. We got around this on those "stuck" nodes by unmounting the shared nfs directory and hand-carving the directory contents on the node before the upgrade, then tearing it all down and re-establishing the shared nfs directory on that node after the upgrade.
something like this:
/etc/init.d/nfs stop
##Build the bitbucket home directory structures or the installer will complain The home directory structure could not be recognized
mkdir <BITBUCKET_HOME>/shared/caches
mkdir <BITBUCKET_HOME>/shared/analytics-logs
mkdir <BITBUCKET_HOME>/shared/config
mkdir <BITBUCKET_HOME>/shared/data
mkdir <BITBUCKET_HOME>/shared/export
mkdir <BITBUCKET_HOME>/shared/import
mkdir <BITBUCKET_HOME>/shared/logs
mkdir <BITBUCKET_HOME>/shared/node-status
mkdir <BITBUCKET_HOME>/shared/plugins
mkdir <BITBUCKET_HOME>/shared/scripts
mkdir <BITBUCKET_HOME>/shared/search
vi <BITBUCKET_HOME>/shared/bitbucket.properties
##insert data from the bitbucket.properties file from the shared export
##Run the installer
##After the installer finishes
rm -rf <BITBUCKET_HOME>/shared/caches
rm -rf <BITBUCKET_HOME>/shared/analytics-logs
rm -rf <BITBUCKET_HOME>/shared/config
rm -rf <BITBUCKET_HOME>/shared/data
rm -rf <BITBUCKET_HOME>/shared/export
rm -rf <BITBUCKET_HOME>/shared/import
rm -rf <BITBUCKET_HOME>/shared/logs
rm -rf <BITBUCKET_HOME>/shared/node-status
rm -rf <BITBUCKET_HOME>/shared/plugins
rm -rf <BITBUCKET_HOME>/shared/scripts
rm -rf <BITBUCKET_HOME>/shared/search
rm <BITBUCKET_HOME>/shared/bitbucket.properties
/etc/init.d/nfs start
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.