HTTP ERROR: 404 missing core name in path with solr

前端 未结 10 545
鱼传尺愫
鱼传尺愫 2020-12-05 16:58

I am new to Solr, after installing it in ubuntu 8.10, when I was trying exampledocs to index , as per this link, I got this error:

HTTP ERROR: 404 m

相关标签:
10条回答
  • 2020-12-05 17:32

    Hi I've got exactly this error when my solrconfig.xml was malformed (missing closing tag element ). It was for solr 3.5.0 Once I fixed the solrconfig the error went away.

    0 讨论(0)
  • 2020-12-05 17:42

    If you just browse to http://localhost:8983/solr/ you will see all cores listed (at least that did it for me).

    0 讨论(0)
  • 2020-12-05 17:42

    In my case, it was happening due to a previous installation of Solr. So I had to delete my old core directory:

    rm -rf /var/lib/solr/mycorename 
    

    then recreate the directory with correct permissions:

    sudo mkdir -p /var/lib/solr/mycorename/data
    sudo chown -R jetty:jetty /var/lib/solr/mycorename/data
    
    0 讨论(0)
  • 2020-12-05 17:42

    I'm not use SolrCores, but:

    After installing new solr version, I got error "HTTP ERROR: 404 missing core name in path" And http://xxx:8080/solr-tour/admin/cores was empty. (If you don't use solrCore, 1 entry is here normally)

    I must stop tomcat, delete his localfiles, and start again

    /etc/init.d/tomcat5 stop
    rm -rf /usr/share/tomcat5/work/Catalina/localhost/*
    rm -rf /usr/share/tomcat5/webapps/*
    rm -rf /usr/share/tomcat5/logs/*
    /etc/init.d/tomcat5 start
    
    0 讨论(0)
  • 2020-12-05 17:45

    In my case it was happening due to versioning.

    Earlier I was using solr 1.4.1. It was running fine. Then I installed solr 3.6.1 and was getting this error.

    A folder named solr is there in the tomcat/webapps directory where you generally put the solr.war file.

    • Delete this solr folder
    • Start tomcat

    => Problem is gone.

    0 讨论(0)
  • 2020-12-05 17:47

    For me the problem was deeper, as I had not set up Solr correctly to begin with.

    I followed the instructions here: http://wiki.apache.org/solr/SolrInstall

    Basically, apart from just unzipping the solr.war war file to the webapps directory, you need to create a solr home directory (for which you can copy example/solr in the distribution you downloaded).

    Then, as per happy-coding's suggestion, you can configure the web.xml file to point to this directory. Restart (if necessary), and voila!

    0 讨论(0)
提交回复
热议问题