Posts in this series
- JIRA Installation on Synolgy NAS – Part 1 – Introduction
- JIRA Installation on Synology NAS – Part 2 – Preparation
- JIRA Installation on Synology NAS – Part 3 - Installation
- JIRA Installation on Synology NAS – Part 4 - Auto-start
Now that we’ve got the system prepped for the installation, it’s time to start it!
First, we have to download JIRA. The only way to get the older versions is to look at Atlassian’s JIRA Downloads Archive. Remember, 5.2.11 is the latest version that is able to be installed on the Synology products with DSM 4.3 or lower. DSM is only a 32-bit operating system, so make sure to download the 32-bit version of JIRA. Also, to make everything easy, we’re going to use Atlassian’s linux installer – after all, that’s why we did all this prep! To save some time, here’s the link for the download that I used: http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-5.2.11-x32.bin
Once you’ve got this downloaded, we have to edit the installation script a little bit. Apparently, even though
gunzip is installed on DSM, the script doesn’t find it. It executes it just fine, but can’t find the path to it for testing if it’s there. So, we’ll just remove the test by removing these lines from the
*.bin you just downloaded:
gunzip -V > /dev/null 2>&1 if [ "$?" -ne "0" ]; then echo "Sorry, but I could not find gunzip in path. Aborting." exit 1 fi
Install by executing the
*.bin. This will guide you through the automated installation script. I installed everything in
/opt or a subdirectory thereof so that the installation was backed up on the redundant volumes. The default installation directory is already in
/opt/atlassian/jira), so I just hit enter on that option. Then it will ask you about where to locate JIRA’s home directory. To keep this in the
/opt directory, I appended /opt to it. So,
/opt/var/atlassian/application-data/jira. Finally, I used the default ports and installed it as a service.
Once everything succeeds, you’ll see this:
Launching JIRA ... Installation of JIRA 5.2.11 is complete Your installation of JIRA 5.2.11 is now ready and can be accessed via your browser. JIRA 5.2.11 can be accessed at <a href="http://localhost:8080">http://localhost:8080</a> Finishing installation ...
However, don’t believe it, it’s probably not going to work. The installation is supposed to create a specific “jira” user account on the system. However, since DSM is all sorts of special, it might not be successful. Check it by trying to start it yourself:
cd /opt/atlassian/jira/bin/ ./start-jira.sh
If it responds with,
executing using dedicated user su: user jira does not exist
then it didn’t work. To check after the installation use this command to list all the users:
cat /etc/passwd |grep "/home" |cut -d: –f1
If the “jira” user was not created, you’ll have to create it with the Synology web interface.
Now, reset the installation by removing JIRA from the folders you installed it to (the installation directory and the home directory), and start the installation over again.
Now that JIRA has installed successfully, you’ll have to make sure that “jira” has permissions to the following directories:
/opt/atlassian/jira/logs /opt/atlassian/jira/work /opt/atlassian/jira/temp /opt/var/atlassian/application-data/jira
To make everything simple and remove any more barriers, I just gave “jira” all permissions to these directories. This is obviously a little unsafe, so use with caution. I did this to all the directories listed above:
chmod –R a+rwX
Now that that’s done and dusted, you have to restart JIRA, since it would have started after the installation:
Once the start script finishes, the screen should look like this:
I double-checked that this started appropriately by going to the Synology Resource Manager and watching the processes. When stopped, there should be no java processes running. Once started, they should start appearing. When they all settle down, I found that this was the time to try accessing it at http://<diskstationIP>:8080. This is where I was finally rewarded with the task bar changing to this address: http://diskstation:8080/secure/SetupDatabase!default.jspa and this webpage showing up after a minute or so wait (watching the java processes work on my other screen).
JIRA doesn’t seem to be too much of a memory hog, as it only takes up about 400MB on my NAS when running after configuration. This will be a bit much for the stock 1GB of RAM installed, so I would recommend doing what I did and install another stick to expand it to 3GB.
Now just follow the on-screen prompts and Atlassian’s directions and wiki. You’ll need only a modest amount of experience to make sure you setup the databases correctly. Using phpMyAdmin makes it a snap, though.