Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone give me a complete description of installing Bitbucket server from a .gz file?

pas.argenio
Contributor
March 13, 2021

There is nowhere that a "albitbucket" user is created to own everything, there is no clear way to know where JAVA_HOME should be. (I am on Redhat. The java executable is in /bin/java.) and I will probably run into a few more problems/questions.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2021
pas.argenio
Contributor
March 14, 2021

Thanks so much for your answer, Nic!

Yes, that is the exact page I am looking at and following, however, it does not provide any detail on how to set JAVA_HOME which is required for starting the instance. I did however figure this out by looking at our production instance (which was installed with and installer).

So that just leaves creating the user -- "altbitbucket" in the Installer version -- if that is even needed. For now, I am running as root. But when I browse to it, it just hangs forever, no error, no nothing

I am wondering if maybe I need to use different ports to distinguish from the production instance, which is on a different server.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2021

Java installation is up to the OS really, not Bitbucket.

You can run Bitbucket as any user you want, although I'd very strongly recommend not using a privileged account (such as root).  adduser <username> should get you started, and I'd maybe try adding atlbitbucket (note the spelling - I don't know if you made a type there).  The important bit is that the user has to be named in the config file and all the files and directories in the installation and data directories should be owned by that user.

If you're stuck, have a look at the logs - if file ownerships etc are incorrect, they should be telling you they can't open them

pas.argenio
Contributor
March 19, 2021

Thanks Nic.

Yes I have resigned myself that all of this is manual. Kinda makes me shake my head when for the past 20 years I've been using ./configure and related scripts that figure out what platform you are on, what tools/versions you have installed and then setup your software accordingly. And that is for free software! Here I am paying for software and I get nothing?

 

Oh well, maybe I will write my own and post the results.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events