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

bin/solr will not run when the solr home path contains a space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0
    • 5.1, 6.0
    • scripts and tools, Server
    • None

    Description

      I thought I spotted some unquoted $SOLR_TIP references in bin/solr with 5.0.0, prompting me to test:

      $ mv solr-5.0.0 solr-5.0.0-with' space'
      $ cd solr-5.0.0-with' space'
      $ ./bin/solr -f
      ./bin/solr: line 1161: [: too many arguments
      ./bin/solr: line 1187: [: /Users/mak/Downloads/solr-5.0.0-with: binary operator expected
      ./bin/solr: line 1194: [: /Users/mak/Downloads/solr-5.0.0-with: binary operator expected
      ./bin/solr: line 1327: cd: /Users/mak/Downloads/solr-5.0.0-with: No such file or directory
      
      Starting Solr on port 8983 from /Users/mak/Downloads/solr-5.0.0-with space/server
      
      Error: Could not find or load main class space.server.logs.solr_gc.log
      

      Attachments

        1. SOLR-7309.patch
          21 kB
          Ramkumar Aiyengar
        2. SOLR-7309.patch
          29 kB
          Ramkumar Aiyengar
        3. SOLR-7309.patch
          32 kB
          Ramkumar Aiyengar

        Activity

          People

            andyetitmoves Ramkumar Aiyengar
            makuk66 Martijn Koster
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: