Install Atlassian On QNAP v2
Install Atlassian On QNAP v2
Version 2.0
Introduction 6
Requirements 6
JIRA 6
Confluence 6
Bitbucket 6
Create a new VM 10
Partition Disks 12
Configure tasksel 13
Software Selection 13
First Boot 15
Update Ubuntu 15
Install Unzip 18
Install MySQL 18
Install MySQL 18
Install Databases 21
Additional Notes 24
Install the MySQL Java Connector (Required for the MySQL Database) 26
Install the MySQL Java Connector (Required for the MySQL Database) 27
Install the MySQL Java Connector (Required for the MySQL Database) 28
Configure JIRA 29
Configure Confluence 37
Database Configuration 39
Load Content 44
Configure Bitbucket 48
Setup License 50
Keep in mind that the Database service can be located within the Virtual-Machine instance,
located on the QNAP server, or located external to the QNAP Server. Choose the best
Database configuration for your environment.
Determine the configuration that works best for your environment and install the services
accordingly.
Requirements
The Atlassian services are very scalable based on hardware availability. This document will
only focus on what Atlassian considers a small project and small teams.
JIRA
Confluence
Bitbucket
This configuration will work but the Virtual Machine must be configured with a large number
of cores and a large RAM pool. This setup tends to have slow initial response times.
With the database server located within the VM instance, external database access is not
required; improving security at a cost of VM resources to power the database.
VM1
QNAP
Database
This configuration is the same as above, only relocating the database to the QNAP Server.
While this configuration removes the Database load from the Virtual Machine it reduces the
security of the above configuration because the database must now be externally
accessible (local network). As long as the database is not WAN, (Wide-Area-Network)
accessible this should not be an issue.
VM1 Database
QNAP
VM2 Database
This configuration is somewhat common setup. Again, with the databases located within
the VM instances, no external database access is needed. Because the Bitbucket service
has a relatively low hardware requirement it can piggy-back with the JIRA service. This
leaves the Confluence service its own VM instance.
VM1
QNAP Database
VM2
This configuration is similar to the above with the Database server running natively on the
QNAP. As stated above this exposes the Database server to LAN, (Local-Area-Network)
traffic but also refuses the load on the Virtual Machines.
VM1 Database
VM3 Database
This configuration allows each service to run independently with the Database service local
to the services. This has a larger memory footprint and may exceed the QNAP’s onboard
memory. During testing the system was consuming 92% of the system’s RAM at any given
time.
VM1
VM2
QNAP
VM3
Database
This configuration allows each service to run independently with the Database service local
to the services. This has a larger memory footprint and may exceed the QNAP’s onboard
memory. During testing the system was consuming 92% of the system’s RAM at any given
time.
https://www.ubuntu.com/download/server
Once downloaded, upload the file into an accessible file location on the QNAP
Create a new VM
From the QNAP Admin Screen, navigate to the Virtualization Station (3.0), and click ‘Click
VM’.
Click OK to begin. Finally click the ‘Power’ Button to start the Virtual-Machine.
Double click the Screen preview to open the Virtual Machine in a VNC window. We will be
doing most of the install from the VM VNC.
Partition Disks
Configure tasksel
Software Selection
Update Ubuntu
Wait…
Wait…
sudo reboot
And Wait…
ifconfig
If necessary reserve a static IP address to the Virtual Machine’s MAC Address. This will
allow Port Forwarding to a static IP address. Once the MAC Address is reserved, reboot.
sudo reboot
Follow prompts.
sudo reboot
Check for external DNS access to ‘atlassian.local’. The correct IP should be returned.
Navigate to the Atlassian product pages and verify the download links.
wget https://www.atlassian.com/software/jira/downloads/
binary/atlassian-jira-software-7.4.2-x64.bin
wget https://www.atlassian.com/software/confluence/
downloads/binary/atlassian-confluence-6.3.2-x64.bin
wget https://www.atlassian.com/software/stash/downloads/
binary/atlassian-bitbucket-5.2.2-x64.bin
(Optional packages)
wget https://www.atlassian.com/software/jira/downloads/
binary/atlassian-servicedesk-3.6.2-x64.bin
Install Unzip
If the Services will be using the MySQL Database, continue. If using the default
PostgreSQL, skip.
Follow prompts.
Install either PostgreSQL Service or MySQL Service. PostgreSQL is the default service for
Atlassian products.
Install MySQL
If the Services will be using the MySQL Database, continue. If using the default
PostgreSQL, skip.
Install MySQL
rm mysql-apt-config*
Follow prompts.
Again: password
Check that the Mysql service is installed and running.
mysql -p -u root
quit;
mysql_secure_installation
Follow prompts.
bind-address = 127.0.0.1
To
bind-address = 0.0.0.0
validate_password_policy=LOW
max_allowed_packet = 512M
innodb_log_file_size = 2G
The System should indicate that the MySQL Service is active. If not double check your
mysql.cnf file for edit errors.
Using a external tool, (i.e.: Network Utility), port scan the server for the post 3306. This will
prove that the MySQL server is listening for external connections.
mysql –u root -p
FLUSH PRIVILEGES;
quit;
unzip mysql-connector-java-5.1.36.zip
unzip mysql-connector-java-*.zip
rm mysql-connector-java-5.1.36.zip
rm mysql-connector-java-*.zip
https://www.mysql.com/products/workbench/
Install Databases
Databases can be installed via the external MySQL Workbench or via the command line.
If you are installing via Command Line only, use the following MySQL Commands to install
the required databases. Pay close attention to the position of the line terminator ‘;’.
mysql -p -u root
quit;
sudo -I -u postgres
psql
\du
\list
\q
This will list all of the databases and users. The result should match this image.
Additional Notes
Note; this command can be used to delete a user or database;
sudo ./atlassian-jira-software-7.4.1-x64.bin
sudo ./atlassian-jira-software-*.bin
If using the MySQL database; when Finished the installer will ask if you want to start the
service now; select ‘no’. We will need to install the MySQL Java Connector to use the
MySQL database.
Install the MySQL Java Connector (Required for the MySQL Database)
If we are using the MySQL Database, we will need the MySQL Java Connector for JIRA and
Confluence to work correctly.
sudo cp mysql-connector-java-5.1.36/mysql-connector-
java-5.1.36-bin.jar /opt/atlassian/jira/lib/
sudo /opt/atlassian/jira/bin/startup.sh
sudo ./atlassian-confluence-6.3.2-x64.bin
sudo ./atlassian-confluence-*.bin
When Finished the installer will ask if you want to start the service now; select ‘no’. We will
need to install the MySQL Java Connector to use the MySQL database.
Install the MySQL Java Connector (Required for the MySQL Database)
If we are using the MySQL Database, we will need the MySQL Java Connector for JIRA and
Confluence to work correctly.
sudo cp mysql-connector-java-5.1.36/mysql-connector-
java-5.1.36-bin.jar /opt/atlassian/confluence/confluence/
WEB-INF/lib
sudo cp mysql-connector-java-*/mysql-connector-java-*.jar /
opt/atlassian/confluence/confluence/WEB-INF/lib
sudo /opt/atlassian/confluence/bin/startup.sh
sudo ./atlassian-bitbucket-5.2.2-x64.bin
sudo ./atlassian-bitbucket-*.bin
When Finished the installer will ask if you want to start the service now; select ‘no’. We will
need to install the MySQL database use the service.
Install the MySQL Java Connector (Required for the MySQL Database)
If we are using the MySQL Database, we will need the MySQL Java Connector for JIRA and
Confluence to work correctly.
sudo cp mysql-connector-java-5.1.36/mysql-connector-
java-5.1.36-bin.jar /opt/atlassian/bitbucket/5.2.2/lib/
sudo cp mysql-connector-java-*/mysql-connector-java-*.jar /
opt/atlassian/bitbucket/5.2.2/app/WEB-INF/lib
sudo /opt/atlassian/bitbucket/5.2.2/bin/start-bitbucket.sh
http://atlassian.local:7995
If the Service will be accessed via WAN, (Wide-Area-Network), or via the Internet, use the
registered DNS address; (the default is 8080).
http://atlassian.myserver.com:7995
Click Next.
The Database install will take several minutes. Do not interrupt the process. If the process
hangs try reloading the page using the http address, not reload.Set the Service Title.
http://atlassian.local:8090
If the Service will be accessed via WAN, (Wide-Area-Network), or via the Internet, use the
registered DNS address;
http://atlassian.myserver.com:8090
• Select MySQL.
• Click on the External Database button.
The Database install will take several minutes. Do not interrupt the process. If the process
hangs try reloading the page using the http address, not reload.Set the Service Title.
Select the Initial content desired; The example site will have several templates, otherwise
the Empty Site will provide a blank slate.
Users can be managed via Confluence but it is recommended to use the JIRA service
instance to manage all Users and Permissions. Select Connect to JIRA
Press Start.
Click Next.
The Database install will take several minutes. Do not interrupt the process. If the process
hangs try reloading the page using the http address, not reload.Set the Service Title.
sudo reboot