Categories
Programming Windows

Atlassian Bitbucket Server/Stash: What to do after Java update?

Update, 20.10.2016I updated this article because Atlassian has updated Stash and renamed it to Bitbucket Server. The first part is the old article about Atlassion Stash and the second part includes the latest Bitbucket Server including ElasticSearch.

Atlassian Stash

Today, another Java Update has been released, so I installed the new version und removed the old one. The “problem” was, as with the last updates, that I had to tell my Stash installation where to find the new Java version. I opened the Windows registry and updated the following three registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\AtlassianStash\Parameters\Java\JavaHome

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\AtlassianStash\Parameters\Java\Jvm

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\JAVA_HOME

Because there are some updates per year, I thought it must be a lil’ bit easier to update the registry keys, so I have written a small PHP script, which give me a .reg-file that includes the updates for the three mentioned keys. Now I only have to give the script the new version, download the reg-file and execute it. No more searching for registry keys and update it manually.

You can download a reg file via the following url:

https://www.armin-pfaeffle.de/labs/atlassian/stash-update/download.php?version=YOUR_JAVA_VERSION

Replace YOUR_JAVA_VERSION with your version, e.g. 1.8.0_65. Or you can use the following formular:



(Downloads: )


Atlassion Bitbucket Server

Here you can download the .reg-file for Bitbucket Server. You have the possibilty to use JDK or JRE. Although I installed JDK with JRE, I only can use JDK installation. With referencing JRE, starting Bitbucket Server failed in current version 4.0.3.

Since 20.10.2016 the registry file includes the Java version update for ElasticSearch which comes with latest Bitbucket Server installation.

The relevant registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\AtlassianBitbucket\Parameters\Java\Jvm

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\AtlassianBitbucketElasticsearch\Parameters\Java\Jvm

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\JAVA_HOME

… and the corresponding download URL:

https://www.armin-pfaeffle.de/labs/atlassian/bitbucket-server-update/download.php?type=&version=YOUR_JAVA_VERSION




(Downloads: )

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha * Time limit is exhausted. Please reload CAPTCHA.