Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13648

Bundled search does not start on Java 11 for the Bitbucket 7.21.9 tar distribution

    XMLWordPrintable

Details

    Description

      Issue Summary

      When running Bitbucket DC 7.21.9 using the tar distribution and Java 11, bundled search does not start and produces the following error.

      Starting the bundled search server
      	Hint: Run start-bitbucket.sh --no-search to skip starting the bundled search server
      Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
      output:
      [0.001s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
      [0.001s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
      error:
      Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      	at org.opensearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:139)
      	at org.opensearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:101)
      	at org.opensearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:72)
      	at org.opensearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:152)
      	at org.opensearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:110)
      There was a problem starting the bundled search server
      

      The issue does not occur with Java 8.
      Bitbucket 8.x versions are not affected by this bug.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Install and configure the Bitbucket 7.21.9 tar distribution for Linux to use Java 11 as the JRE_HOME
      2. Start bitbucket using the BITBUCKET_INSTALL_DIR/bin/start-bitbucket.sh script

      Expected Results

      Bitbucket and bundled search starts without any errors.

      Actual Results

      Bundled search does not start and produces the error message above.

      Workaround

      Manually create an empty BITBUCKET_INSTALL_DIR/opensearch/logs directory before running the start-bitbucket.sh script.

      Attachments

        Activity

          People

            74d6667aa35c Josh Aguilar
            74d6667aa35c Josh Aguilar
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: