Stash/Bitbucket Server automated setup always starts Setup Wizard anyway.

I am trying to automate the installation of a Stash server, everything except the automated setup works.

It always starts the Setup Wizard and there is nothing in the logs, on screen or in the console. It just ignores the properties-file and launches the wizard anyway and doesn't tell me why.

The documentation at https://confluence.atlassian.com/display/STASH0311/Automated+setup+for+Stash states:

If any of the following required properties are not provided in the properties file, when you start Stash the Setup Wizard will launch at the appropriate screen so that you can enter values for those properties.

But it never states which properties are the required ones.

 

I am using the Atlassian installer and this script.

sudo mkdir -p /stash/shared
sudo groupadd atlstash
sudo useradd -g atlstash atlstash
sudo cp /tmp/stash-config.properties /stash/shared/stash-config.properties
sudo chown -R atlstash:atlstash /stash
wget -q -N -P /tmp/ https://downloads.atlassian.com/software/stash/downloads/atlassian-stash-3.11.2-x64.bin
sudo chmod +x /tmp/atlassian-stash-3.11.2-x64.bin
sudo /tmp/atlassian-stash-3.11.2-x64.bin -q -varfile /tmp/stash-response.varfile

And /shash/shared/shash-config.properties

setup.displayName=Stash
setup.baseUrl=http://10.0.99.100:7990

setup.sysadmin.username=admin
setup.sysadmin.password=admin
setup.sysadmin.displayName=admin
setup.sysadmin.emailAddress=admin@example.com

jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/stash
jdbc.user=stash
jdbc.password=stash

auth.remember-me.enabled=optional
feature.public.access=false
logging.logger.ROOT=DEBUG
logging.logger.com.atlassian.stash=DEBUG
plugin.stash-git.path.executable=git

 

1 answer

Make sure BITBUCKET_HOME is set correctly

The automated installer looks for the file bitbucket.properties 

https://confluence.atlassian.com/bitbucketserver/bitbucket-server-config-properties-776640155.html

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,942 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you