solrdspaceoai

DSpace error with oai import


After configuring my DSpace server, its working correctly but when I look at the OAI identify page (http://repositorio.puce.edu.ec/oai/request?verb=Identify) so we can be harvested, it says that the repository is localhost instead of my URL. I investigated and found out that to update this, I have to run this command: dspace/bin/dspace oai import -c but when I run that command is gives me the following error: Solr server (http://repositorio.puce.edu.ec/solr/oai) is down, turn it on.

I can see the Solr Admin (it can't be seen from the outside because of security reasons) so I don't know what should be turned on or how to do it?

Thanks for the help.


Solution

  • I encountered this error in the past.

    Looking at my oai.cfg file, I used localhost for some settings and my public URL for others.

    solr.url=http://localhost/solr/oai
    # OAI persistent identifier prefix.
    # Format - oai:PREFIX:HANDLE
    identifier.prefix = repository.library.georgetown.edu
    # Base url for bitstreams
    bitstream.baseUrl = https://repository.library.georgetown.edu
    

    If you need to make a config change, be sure to clear the cache after restarting service.