Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9325

solr.log written to {solrRoot}/server/logs instead of location specified by SOLR_LOGS_DIR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5.2, 6.0.1
    • 6.3, 7.0
    • logging
    • None
    • 64-bit CentOS 7 with latest patches, JVM 1.8.0.92

    Description

      (6.1 is probably also affected, but we've been blocked by SOLR-9231)

      solr.log should be written to the directory specified by the SOLR_LOGS_DIR environment variable, but instead it's written to

      {solrRoot}

      /server/logs.

      This results in requiring that solr is installed on a writable device, which leads to two problems:
      1) solr installation can't live on a shared device (single copy shared by two or more VMs)
      2) solr installation is more difficult to lock down

      Solr should be able to run without error in this test scenario:

      burn the Solr directory tree onto a CD-ROM
      Mount this CD as /solr
      run Solr from there (with appropriate environment variables set, of course)

      Attachments

        1. SOLR-9325.patch
          4 kB
          Jan Høydahl
        2. SOLR-9325.patch
          9 kB
          Jan Høydahl
        3. SOLR-9325.patch
          8 kB
          Jan Høydahl
        4. SOLR-9325-installscript.patch
          0.7 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              tparker Tim Parker
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: