Hi Pascarelli,

Sorry for to many questions, but I have problems when upgrade my Solr.

I have DSpace 3.X + CRIS Module (I download from https://github.com/Cineca/dspace-cris/) but for error a member of my team (that now is not here) put Solr 3.5 and not Solr 4.1.0 :(

So, I want to migrate to Solr 4.1.0. I do these steps:

1) Download Solr 4.1.0: http://archive.apache.org/dist/lucene/solr/4.1.0/solr-4.1.0.zip
2) Unzip
3) Copy war /solr4/solr-4.1.0/dist/solr-4.1.0.war to my Tomcat webapps.
4) Deploy war in context '/solr'
5) I check that in 'dspace.cfg' the configuration of server of solr it's OK. default.solr.server = ${dspace.baseUrl}/solr
6) Edit '/dspace/webapps/solr/WEB-INF/web.xml' and uncoment /edit:

<env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>/dades/dspace/solr</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
 </env-entry>

The directory that I install dspace is '/dades/dspace'

 7) Restart Tomcat but when I'm going to: http://portalrecerca-dev.cesca.cat/solr/  I get error:

collection1:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config for solrconfig.xml

  8) I try to execute /dspace/bin .dspace update-discovery-index but I get an error too:


What I'm doing wrong? :(

Very thanks in advance!!

 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=5017caa7-a37a-4d1e-b1f4-3e2110836394,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
 INFO [main] (ConfigurationManager.java:1233) - Loading from classloader: file:/dades/dspace/config/dspace.cfg
 INFO [main] (ConfigurationManager.java:1233) - Using dspace provided log configuration (log.init.config)
 INFO [main] (ConfigurationManager.java:1233) - Loading: /dades/dspace/config/log4j.properties
Exception: null
java.lang.NullPointerException
    at org.dspace.app.cris.discovery.CrisSearchService.indexProperty(CrisSearchService.java:457)
    at org.dspace.app.cris.discovery.CrisSearchService.indexCrisObject(CrisSearchService.java:313)
    at org.dspace.app.cris.discovery.CrisSearchService.createCrisIndex(CrisSearchService.java:670)
    at org.dspace.app.cris.discovery.CrisSearchService.createCrisIndex(CrisSearchService.java:357)
    at org.dspace.app.cris.discovery.CrisSearchService.updateCrisIndex(CrisSearchService.java:366)
    at org.dspace.app.cris.discovery.CrisSearchService.updateIndex(CrisSearchService.java:196)
    at org.dspace.discovery.IndexClient.main(IndexClient.java:146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)



Daniel



El 25/11/13 18:39, Pascarelli Luigi Andrea ha escrit:
Dear Daniel,
to use DSpace-CRIS is mandatory migrate to Solr 4.1.0.
To rebuild solr data index in the right format for the 4.1.0, you can call the optimize command directly to the solr server:
http://[hostname:port]/solr/[solrcore]/update?optimize=true

DSpace-CRIS have 5 solr core (3 derived from DSpace - 1 core for network feature - 1 for pubmed feature) so for example you can call via http (open your browser or use wget or curl tool) the follow link:
http://localhost:8080/solr/search/update?optimize=true

http://localhost:8080/solr/statistics/update?optimize=true

http://localhost:8080/solr/oai/update?optimize=true
http://localhost:8080/solr/network/update?optimize=true
http://localhost:8080/solr/pmc/update?optimize=true 

If your installation of DSpace-CRIS is derived from an old DSpace installation (<1.8) then before to migrate data index to 4.1.0 you need to optimize index with the optimize implemented on solr server 3.5.0(after that you can turn off this and migrate to 4.1.0 optimize core again). For other details see https://jira.duraspace.org/browse/DS-1776

BTW for the solr search core you can remove manually the index data directory [dspace]/solr/search/data and run from [dspace]/bin the "dspace update-discovery-index" command (recall that solr server must be up and running before launch indexer). After this you can rebuild also index data for network feature running "dspace dsrun org.dspace.app.cris.batch.ScriptIndexNetwork -a" or if you have interest only to create the network for coauthored publications launch "dspace dsrun org.dspace.app.cris.batch.ScriptIndexNetwork -s coauthors"

Hope this helps.

Luigi Andrea

Il 25/11/2013 17:03, Daniel Garcia ha scritto:
Hi Luigi,


Thanks it works!

I see that I have Solr Specification Version: 3.5.0.
In documentation I see that prerequisite software is Solr 4.1.0. You recommend to me to upgrade? I'm afraid to stop working, at now it works.


Thanks in advance,



Daniel


El 25/11/13 16:21, Pascarelli Luigi Andrea ha escrit:
Yes, using Tomcat 7 you have to add the follow parameter to the JAVA_OPTS:
-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
At http://cineca.github.io/dspace-cris/installation-stepbystep.html we report this configuration for Tomcat 7 but perhaps is better point out it and create a isolate paragraph with this options that depend to the underlying used tool. Sorry for that, we upgrade the documentation asap.

Luigi Andrea

Il 25/11/2013 16:12, Daniel Garcia ha scritto:
I try with this values in JAVA_OPTS:

-Xmx950M -Xms512M -XX:PermSize=128M -XX:MaxPermSize=256M -XX:-UseGCOverheadLimit -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy -XX:-UseConcMarkSweepGC -Dfile.encoding=UTF-8

I need some more parameter?


Thanks in advance,


Daniel

El 25/11/13 15:48, helix84 ha escrit:
Hi Daniel,

what is your value of the JAVA_OPTS (and any other optional Java environment variables, see comments in bin/catalina.sh) in the environment where you run startup.sh?


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--


CINECA
Luigi Andrea Pascarelli
Dipartimento Servizi e Soluzioni per l'Amministrazione Universitaria
Divisione Ricerca

Via dei Tizii, 6
00185 Roma, Italy
ph. +39 06 59292895
http://www.cineca.it



--


CINECA
Luigi

                    Andrea Pascarelli
Dipartimento Servizi e Soluzioni per l'Amministrazione Universitaria
Divisione Ricerca

Via dei Tizii, 6
00185 Roma, Italy
ph. +39 06 59292895
http://www.cineca.it


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to