Uploaded image for project: 'Server Deployments and Scale'
  1. Server Deployments and Scale
  2. SCALE-46

Jira deployed from official docker images logs "Unable to create directory for deployment: [$JIRA_INSTALL/conf/Catalina/localhost" false positive error out of the box

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • master
    • Environment - Docker
    • None
    • Severity 2 - Major

      Issue Summary

      As per the summary, after deploying any version of Jira from an official docker image, Tomcat will log the following false positive error on startup:

       "Unable to create directory for deployment: [$JIRA_INSTALL/conf/Catalina/localhost" false positive error

      in catalina.[timestamp] file

      Steps to Reproduce

      1. Deploy any version of Jira from an official docker image
      2. Start the container

      Expected Results

      1. Jira should start successfully and should NOT log the above error

      Actual Results

      1. Jira starts successfully but logs the error which can be very confusing and misleading to customers, especially if other issues are present. For example, if there's a misconfiguration in server.xml, it may look like the permissions are set incorrectly on the $JIRA_INSTALL folder

      The below exception is thrown in the xxxxxxx.log file:

      "Unable to create directory for deployment:  [$JIRA_INSTALL/conf/Catalina/localhost" false positive error
      

      Workaround

      Create the directory manually inside the container and grant the Jira's account full access to the directory:

      mkdir -p $JIRA_ISNTALL/conf/Catalina/localhost
      sudo chown -R jira:jira $JIRA_INSTALL/conf/Catalina/localhost
      

              Unassigned Unassigned
              soslopov Sergey
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: