This howto uses the 8.19.1 version; other versions may have different dependencies and options.

To run Atlassian Jira using Unit:

  1. Install Unit with a Java language module.

  2. Install Jira’s core files. Here, we install it at /path/to/app/; use a real path in your configuration.

    For example:

    $ cd /path/to/app/
    $ curl -O -C -
    $ tar xzf atlassian-jira-core-8.19.1.tar.gz --strip-components 1
  3. Download Jira’s third-party dependencies to the lib subdirectory:

    $ cd lib/
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -
    $ curl -O -C -

    Later, these .jar files will be listed in the classpath option of the Unit configuration.

  4. Patch your Jira configuration, dropping env from the comp/env/UserTransaction object path. This ensures the UserTransaction object will be found by your installation:

    $ cd /path/to/app/
    $ sed -i 's#comp/env/UserTransaction#comp/UserTransaction#g'  \
  5. Run the following command so Unit can access the application directory:

    # chown -R unit:unit /path/to/app/


    The unit:unit user-group pair is available only with official packages, Docker images, and some third-party repos. Otherwise, account names may differ; run the ps aux | grep unitd command to be sure.

    For further details, including permissions, see the security checklist.

  6. Next, put together the Jira configuration (use real values for working_directory and jira.home):

        "listeners": {
            "*:80": {
                "pass": "applications/jira"
        "applications": {
            "jira": {
                "type": "java",
                "working_directory": "/path/to/app/",
                "webapp": "atlassian-jira",
                "options": [
                    "-Djavax.accessibility.assistive_technologies= ",
                "classpath": [

    See Java application options for details.


    You can’t update the configuration in Unit after startup due to Jira’s own restrictions.

  7. Upload the updated configuration. Assuming the JSON above was added to config.json:

    # curl -X PUT --data-binary @config.json --unix-socket \
           /path/to/control.unit.sock http://localhost/config/


    The control socket path may vary; run unitd -h or see Startup and Shutdown for details.

    After a successful update, Jira should be available on the listener’s IP address and port. Browse to http://localhost/jira to continue the setup in your browser:

    Jira on Unit - Setup Screen