As we needed a server where everything that has to do with our development team would be centered I decided to create a neat server where we have all the tools we need.

If you need anything on this list you might be able to use my step-by-step tutorials to arrange this :)

Jira + Jira Agile
Mediawiki
Stash

I might be upgrading the server later with more tools, will update this tools then. If you have any hints what tools we ABSOLUTLY need, let me know!

I assume you have a server already live with Ubuntu 14.04, cause that is what I’m using. This might also work for Debian or other distro’s but I’m not sure.

The last part (for now), Stash!

Not to hard, almost as easy as Jira…

First we need to Install GIT, otherwise our precies Stash won’t work. This ain’t to hard:

sudo apt-get install git

Find your package of Stash on https://www.atlassian.com/software/stash/download#allDownloads , copy the download link, open your terminal:

wget https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-3.11.1-x64.bin

Set the correct rights:

chmod a+x atlassian-stash-3.11.1-x64.bin

Execute it:

./atlassian-stash-3.11.1-x64.bin

The next questions on the screen will mostly be clear enough, my steps where the following:

– Install (o)
– New instance (1)
– [/opt/atlassian/stash/3.11.1] (default, just press enter)
– 
[/var/atlassian/application-data/stash] (default)
– Portnumber 7990
– Controlportnumber 8006
– Install as a service -> yes
– Review and approve (i, enter)

Stash will be installing right now, time for a cup ‘a coffee

For Stash to work correctly we will need to set-it-up also in the browser. Go to http://yourdomain.com:7990 (or the portnumber you chose!) and check “External” on the Database.

As you can see Stash can work with multiple Databases, this tutorial doesn’t cover any of them, but I would recommend using PostgreSQL. For that one we do have a small tutorial, click!

When I installed it, I ran into some troubles, so here are my troubles + answers

My error:

The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.
If you continue having issues, get in touch with our support team and we'll help get you up and running.
Hide details
The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.
	com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:235)
	com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	...
Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"
	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
	com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:44)
	com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:232)
	...
FATAL: password authentication failed for user "postgres"
	org.postgresql.Driver$ConnectThread.getResult(Driver.java:365)
	org.postgresql.Driver.connect(Driver.java:288)
	java.sql.DriverManager.getConnection(DriverManager.java:664)
	...

My solution (executed in the pgsql command console):

CREATE ROLE stashuser WITH LOGIN PASSWORD 'jellyfish' VALID UNTIL 'infinity';
CREATE DATABASE stash WITH ENCODING='UTF8' OWNER=stashuser lc_collate='en_US.utf8' lc_ctype='en_US.utf8' CONNECTION LIMIT=-1 template=template0;

Integrate with Jira

If you follow all the steps in the installation at the end (where you should put in the first user details), don’t click on “Go to Stash” but search for the button next to it, “Integrate with Jira” fill in the form and it should all work!

Happy coding!