Hi Phil, Thanks for spotting this. Sorry about the confusing. I've fixed this, just run git pull in your checkout to update it.
-- Edward. On 27/10/10 14:51, Phil Mocek wrote: > When and how should vendor/solr/solr/inside/conf and the files it > needs to contain be created during the OL system installation > process? > > I'm attempting to install a copy of Open Library using > [instructions][1] I found in the Open Library developer docs. > > [1]:<http://openlibrary.org/dev/docs/setup> > > The Solr section of that document begins: >> Solr Search Engine >> >> Run the Solr setup script. This will download solr and put the >> stock files into vendor/apache/solr-1.4.0. The parts relevant to >> Open Library are copied into vendor/solr. The base config is in >> vendor/solr/solr/solr.xml. The setup script sets some default >> values. >> >> $ ./scripts/setup_solr.py >> >> Start the works search engine: >> >> $ cd vendor/solr >> $ java -jar start.jar >> >> You should see a lot of output followed by these lines which shows >> what address (0.0.0.0 for localhost) and port the works search >> engine is listening on: >> >> [...] >> INFO: SolrUpdateServlet.init() done >> 2010-06-02 15:49:57.869::INFO: Started SocketConnector @ 0.0.0.0:8983 >> >> You can verify that solr is running by accessing >> http://0.0.0.0:8983/solr You should see "Welcome to Solr!" >> >> $ curl -s http://0.0.0.0:8983/solr/ | head >> <html> >> <head> >> <link rel="stylesheet" type="text/css" href="solr-admin.css"> >> <link rel="icon" href="favicon.ico" type="image/ico"></link> >> <link rel="shortcut icon" href="favicon.ico" >> type="image/ico"></link> >> <title>Welcome to Solr</title> >> </head> > > After I do all that, instead of "Welcome to Solr!" I get an HTTP > 500 with "Severe errors in solr configuration." Java reports > "Can't find resource 'solrconfig.xml' in classpath or > 'solr/inside/conf/'" > > Several solrconfig.xml files exist: > > ~/sandbox/openlibrary/vendor/solr$ find . -name solrconfig.xml > ./solr/authors/conf/solrconfig.xml > ./solr/works/conf/solrconfig.xml > ./solr/subjects/conf/solrconfig.xml > ./solr/editions/conf/solrconfig.xml > > The directory solr/inside/conf does not exist. If I create it, > then symlink solrconfig.xml to one of those found above and > restart, I get a report of missing schema.xml in the same dir. > > I see that these other directories are created in > scripts/setup_solr.py: >> types = 'authors', 'editions', 'works', 'subjects' >> for d in ['solr', 'solr/solr'] + ['solr/solr/' + t for t in >> types]: >> if not os.path.exists(d): >> os.mkdir(d) > > And I see that those types, along with the missing "inside" are > configured in vendor/solr/solr/solr.xml: >> <?xml version="1.0" encoding="UTF-8" ?> >> <solr persistent="false"> >> <cores adminPath="/admin/cores"> >> <core name="works" instanceDir="works" /> >> <core name="authors" instanceDir="authors" /> >> <core name="subjects" instanceDir="subjects" /> >> <core name="editions" instanceDir="editions" /> >> <core name="inside" instanceDir="inside" /> >> </cores> > > How is vendor/solr/solr/inside/conf supposed to be created and > filled with solrconfig.xml, schema.xml, and anything else that > needs to be there? > > I'm using a clone of<git://github.com/openlibrary/openlibrary.git> > _______________________________________________ Ol-tech mailing list [email protected] http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech To unsubscribe from this mailing list, send email to [email protected]
