Hi

I have just tried it and there's a type forbidden error when i use that command (as user dspace).

The /var/lib/tomcat6/webapps/solr is now property of dspace (user which execute tomcat) and with permission 777

I can't see why is it forbidden



Fran Pais



[dspace@centos63]$ ./dspace oai import -c
 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org
space:name=1b67527e-e51a-4a71-8bf9-0ea69edbdf9d,type=DSpaceKernel:lastLoad=null:
loadTime=0:running=false:kernel=null
 INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: file:/dspace/config/dspace.cfg
 INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log configuration (log.init.config)
 INFO [main] (ConfigurationManager.java:1224) - Loading: /dspace/config/log4j.properties
OAI 2.0 manager action started
Clearing index
org.apache.solr.common.SolrException: Prohibido

Prohibido

request: http://10.8.40.56:8080/solr/oai/update?wt=javabin&version=2
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
        at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
        at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
        at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:110)
        at org.dspace.xoai.app.XOAI.clearIndex(XOAI.java:366)
        at org.dspace.xoai.app.XOAI.index(XOAI.java:126)
        at org.dspace.xoai.app.XOAI.main(XOAI.java:439)
        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:601)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)



De: "helix84" <helix84@centrum.sk>
Para: "Francisco Pais Suarez" <francisco.pais@udc.es>
CC: dspace-tech@lists.sourceforge.net
Enviados: Martes, 26 de Marzo 2013 10:41:13
Asunto: Re: [Dspace-tech] Error with Dspace OAI-PHM listing records and Identifiers

Hi Francisco,

try running
[dspace]/bin/dspace oai import -c

Does that fix the problem?

If not, try accessing ListRecords or ListIdentifiers again and look at
what was added at that time to the Solr log (presumably catalina.out).


Regards,
~~helix84

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