Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19174

Timed out waiting for join.key when CATALINA_OPTS is exported in the 'default' file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Severity:
      Critical
    • Regression:
      Yes
    • Requirement Status:

      UNCOVERED

      Description

      There is an issue with the Artifactory startup scripts, whereby if "CATALINA_OPTS" is declared somewhere, it will fail to start.

      Steps to reproduce:
      1. Install Artifactory RPM installation.
      2. In $ARTIFACTORY_HOME/etc/default export something to "CATALINA_OPTS", for example:

      export CATALINA_OPTS=" -Xms2g -Xmx12g -Xss256k"
      

      3. Start Artifactory.

      Artifactory will fail to start with the below errors:

      2019-05-12 08:40:05,945 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
      java.lang.reflect.InvocationTargetException: null
      ...
      Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.security.access.AccessService'.; nested exception is java.lang.IllegalStateException: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
      ...
      Caused by: java.lang.IllegalStateException: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
      

      Workaround:
      In the export of "CATALINA_OPTS", it should append to existing "CATALINA_OPTS":

      export CATALINA_OPTS="$CATALINA_OPTS -Xms2g -Xmx12g -Xss256k"
      

        Attachments

          Forms

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                arielk Ariel Kabov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    PagerDuty