Skip to content

Instantly share code, notes, and snippets.

@idefux
Last active November 4, 2022 07:04
Show Gist options
  • Save idefux/661b5be8567c8c498131 to your computer and use it in GitHub Desktop.
Save idefux/661b5be8567c8c498131 to your computer and use it in GitHub Desktop.
JIRA on a raspberry pi 2
JIRA on a raspberry pi 2
Since the raspberry pi 2 comes with 1 GB RAM and a 900 MHz quad-core I wanted to give it a try
if it is capable of running JIRA
Download free trial linux .tar.gz archive from https://www.atlassian.com/software/jira/download?b=j
Untar with tar -zxvf <archive>
Check java version and set JAVA_HOME
Make sure that you have a java version installed that is supported by JIRA
In my case java 1.8 was installed, you can find this out by typing
java -version
Set JAVA_HOME by adding JAVA_HOME="/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/bin/" to /etc/environment
and adding export JAVA_HOME="/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/bin/" to your ~/.bashrc
Set the jira home directory
edit file <jira-application-dir>/atlassian-jira/WEB-INF/classes/jira-application.properties
I've set it to /usr/local/jira
Set JIRA_HOME environment variable
Add export JIRA_HOME="usr/local/jira" to your ~/.bashrc
Start jira by running <jira-application-dir>/bin/start-jira.sh
Troubleshooting:
1: logfile <jira-application-dir>/catalina.out told me that it could not find java.
"/home/sfuchs/jira/atlassian-jira-6.3.15-standalone/bin/catalina.sh: 1: eval:
/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/bin//bin/java: not found"
Problem is that the command 'java' is already found in /usr/bin (which is set in PATH)
The 'java' at the end of the java path is replaced by '/bin/bash' (notice the two '//')
Since there is no <java-dir>/bin//bin/java it won't find the java executable
To solve this delete JAVA_HOME by typing export JAVA_HOME=""
2: After restarting jira and reloading <hostname>:8080 it told me "Could not create subdirectory 'caches'
of jira.home '/usr/local/jira'."
Let's check permissions
Create a jira user by typing sudo adduser jira
Pass: secret
sudo chown -R jira logs/ temp/ work/ /usr/local/jira/
Switch over to new user and start jira
su jira
bin/start-jira.sh
---> Works: Now set up jira via the installer at <hostname>:8080
I used the built-in database for evaluation
Results: Yes, JIRA runs on a raspberry pi 2. Though it is rather slow and performance will likely
collapse if several users are logged in.
However If you are using JIRA alone or with just one or two colleagues the raspberry pi 2 may do the job.
@SlinkyPotato
Copy link

Any updates with using RBP3?

@Haapavuo
Copy link

Haapavuo commented Apr 1, 2017

RBP2 does not work for me. JIRA loads up but then gives this:

JIRA Startup Failed
The following plugins are required by JIRA, but have not been started:
Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
Gadget Directory Plugin (com.atlassian.gadgets.directory)
Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
Atlassian JIRA - Plugins - Global Issue Navigator (com.atlassian.jira.jira-issue-nav-plugin)
Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest)

I have JRE 8 and Raspbian.

@jdavidpeter
Copy link

Guide for Pi3, mostly based on the work of @idefux: https://github.com/jdavidpeter/Jira-on-Raspberry-Pi
It works fine for small projects, although doing search on hundreds of jiras takes several seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment