Thanks Helix; you've solved the final piece of what has been a pretty 
painful upgrade of the Solr statistics (and has brought to an end 4 days of 
frustration).

So as you suggested I ended up manually upgrading to 3.5 and then to 4.

The process that worked for me:

- Stop tomcat
- Download the lucene core 3.5 jar
- Run java -Xmx2048m -Xms256m -cp lucene-core-3.5.jar 
org.apache.lucene.index.IndexUpgrader /dspace/solr/statistics/data/index/
- Start tomcat
- Check that the statistics are still working
- Stop tomcat
- cd into /dspace/lib
- Run java -Xmx2048m -Xms256m -cp lucene-core-4.10.2.jar 
org.apache.lucene.index.IndexUpgrader /dspace/solr/statistics/data/index/
- Start tomcat
- Check that the statistics are still working.

I don't know if restarting tomcat half way through the process was 
necessary, I just did it more so I could check that no errors were being 
thrown by Solr.

One other thing I noticed was that my solr/statistics/conf was not upgraded 
so I manually copied over the conf from the ant build but getting the old 
config could have occurred when I restored the old solr statistics 
directory (I ended up doing a number of restores).

Thanks again


Hayden
On Friday, February 19, 2016 at 1:59:22 AM UTC+8, helix84 wrote:
>
> Interesting, I haven't seen the automatic upgrade fail yet. Perhaps 
> running the second step (3.5.0 -> 4.10.2 using the 4.10.2 jar) 
> manually, too, will reveal what the problem is. 
>
> 1) Anyway, I didn't check how sophisticated the upgrade logic is. You 
> seem to have only upgraded one of the cores manually (1.3.0 -> 3.5.0). 
> Either upgrade them all manually or upgrade them all automatically. 
>
> 2) Try to run Maven with debug flags 
>
> 3) Download lucene-core-4.10.2.jar manually and run IndexUpgrader and 
> CheckIndex on your index version 3.5.0 to complete the second step. 
>
> 4) If all else fails, assuming it's really a memory / index size issue 
> (but I don't think it is), you could shard the statistics core with 
> DSpace 3.x (Solr 3.5.0) and try to upgrade each shard individually 
> (auto-upgrade of all shards at once should work, too, but I'm not 
> certain). 
>
>
> Regards, 
> ~~helix84 
>
> Compulsory reading: DSpace Mailing List Etiquette 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette 
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to