Okay, again thanks for the recommendations. I'm definitely making progress.

So currently my steps are:

- Delete the statistics directory in DSpace 5 and copy the statistics 
directory from the DSpace 1.6 site into /path/to/dspace/solr/
- Run java -cp lucene-core-3.5.0.jar org.apache.lucene.index.CheckIndex 
/dspace/solr/statistics/data/index/; This reports Lucene version 2.4
- Run java -cp lucene-core-3.5.0.jar org.apache.lucene.index.IndexUpgrader 
/dspace/solr/statistics/data/index
- Run java -cp lucene-core-3.5.0.jar org.apache.lucene.index.CheckIndex 
/dspace/solr/statistics/data/index/; This reports Lucene version 3.1+ so 
looks like the upgrade was successful.
- Run the update_solr_indexes using ant build script. Everything starts 
successfully but then ends with the errors below:

update_solr_indexes:
     [echo] Checking if any Solr indexes (/opt/dspace/solr/*) need 
upgrading...
     [echo] Current version of Solr/Lucene: 4.10.2

check_solr_index:
     [echo] Checking if the Solr index at 
/opt/dspace/solr/statistics/data/index/ is >= Solr 3.5.0
     [echo] The Solr index in /opt/dspace/solr/statistics/data/index/ IS >= 
Solr 3.5.0. Looks good!

check_solr_index:
     [echo] Checking if the Solr index at 
/opt/dspace/solr/statistics/data/index/ is >= Solr 4.10.2
     [echo] The Solr index in /opt/dspace/solr/statistics/data/index/ needs 
an upgrade to Solr 4.10.2

upgrade_solr_index:
     [echo] Upgrading Solr/Lucene Index at 
/opt/dspace/solr/statistics/data/index/ to Solr/Lucene 4.10.2.
     [echo] Upgrading the Solr index in 
/opt/dspace/solr/statistics/data/index/. Depending on the index size, this 
may take a while (please be patient)...

BUILD FAILED
/tmp/dspace-hosted-master/dspace/target/dspace-installer/build.xml:978: The 
following error occurred while executing this line:
/tmp/dspace-hosted-master/dspace/target/dspace-installer/build.xml:1076: 
The following error occurred while executing this line:
/tmp/dspace-hosted-master/dspace/target/dspace-installer/build.xml:1172: 
Java returned: 143


Unfortunately there are no real errors being reported. I thought maybe it 
was crashing because of not enough memory but I've pumped this up to 2g 
using JAVA_OPTS and ANT_OPTS and yet I get the same failure.


On Thursday, February 18, 2016 at 8:31:32 PM UTC+8, helix84 wrote:
>
> Yes, I know the problem. In fact, you shouldn't have run into it - 
> since DSpace 5, this should be automatically recognized during ant 
> fresh_install or ant update and the cores updated in two steps. 
>
> Did you copy the solr data only after running ant? If so, re-run ant 
> to trigger the automated upgrade. If that' snot the case, let me know, 
> we would like to know about any bugs in the autoupgrade process. 
>
> The steps can be done manually, too. I described this here: 
>
> https://wiki.duraspace.org/display/DSPACE/DSpace+Release+5.0+Status#DSpaceRelease5.0Status-AutomaticSolrupgrade
>  
>
>
>
> 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