Hi, Just to tie up this thread.
> I'm still getting the Not Found error. However, I'm not sure that I haven't > accidentally broken something somewhere else whilst trying to fix this earlier As usual, my problems were due to a combination of factors, but the main gotcha that caught me out was that I tried to reset my SOLR stats (to clear out old data and do a fresh import from log files) by deleting the *contents* of the solr/statistics/data directory rather than deleting the directory itself. Turns out that, if the directory isn't there, SOLR will recreate it and create a nice, fresh, empty index for you - however, if you just delete the contents, SOLR sees the directory, assumes it contains stuff, and then quietly falls over when it can't find what it wants . . . So, if you are planning to reset your SOLR stats at any point, delete the data directory, not just its contents!!! Cheers, Mike Michael White eLearning Developer eLearning Liaison & Development (eLD) 3V3a, Cottrell University of Stirling Stirling SCOTLAND FK9 4LA Email: michael.wh...@stir.ac.uk Tel: +44 (0) 1786 466877 Fax: +44 (0) 1786 466880 http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php -----Original Message----- From: Michael White Sent: 27 January 2011 20:38 To: 'Andrea Schweer' Cc: dspace-tech@lists.sourceforge.net Subject: RE: [Dspace-tech] SOLR import - not found error > The usual suggestion seems to be to use 127.0.0.1 instead of localhost. Thanks Andrea, good suggestion! I've just tried it but still no joy unfortunately - I'm still getting the Not Found error. However, I'm not sure that I haven't accidentally broken something somewhere else whilst trying to fix this earlier as I've just noticed that I'm not even getting a response now from "curl http://localhost/solr", which I was earlier. So I'll need to go back through and see if I can get that working again before I give 127.0.0.1 another go. Thanks for the pointer though, here's hoping it will solve my problem :-) Cheers, Mike Michael White eLearning Developer eLearning Liaison & Development (eLD) 3V3a, Cottrell University of Stirling Stirling SCOTLAND FK9 4LA Email: michael.wh...@stir.ac.uk Tel: +44 (0) 1786 466877 Fax: +44 (0) 1786 466880 http://www.is.stir.ac.uk/aboutis/teams/aldt/eld.php -----Original Message----- From: Andrea Schweer [mailto:schw...@waikato.ac.nz] Sent: 27 January 2011 20:17 To: dspace-tech@lists.sourceforge.net Cc: Michael White Subject: Re: [Dspace-tech] SOLR import - not found error Hi, On 28/01/11 02:19, Michael White wrote: > When I run "stats-log-importer" (as the "tomcat" user that DSpace > runs under) I get a Not Found error: [...] > > request: > http://localhost/solr/statistics/update?wt=javabin&version=2.2 > org.apache.solr.common.SolrException: Not Found > > SOLR appears to be accessible via localhost - if I "curl > http://localhost/solr/" from the command line, it dumps back HTML > that looks like what I'd expect . . >From what I've seen, accessing solr via 'localhost' can cause problems. Something related to the way 'localhost' is resolved to an IP address by the Java code. The usual suggestion seems to be to use 127.0.0.1 instead of localhost. Also, it may be a good idea to give the port as well to make solr requests bypass apache -- so 127.0.0.1:8080 or whatever port your tomcat listens to. cheers, Andrea -- Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- The Sunday Times Scottish University of the Year 2009/2010 The University of Stirling is a charity registered in Scotland, number SC 011159. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech