Hi,
On 09/02/16 15:45, Demis Estabridis
wrote:
Hi Andrea,
Thanks for your quick response.
In fact, we have tried doing this:
[8/2/16
21:43] Erick Benites ([email protected]):sudo rm –R -f
/opt/dspace/var/oai/requests/*
sudo /opt/dspace/bin/dspace oai clean-cache
sudo /opt/dspace/bin/dspace oai import –c
That looks good in general, but a few comments:
- You don't need to delete the directory yourself, the
clean-cache command should sort this out for you
- Don't run any dspace command using sudo (=root). You must
run these commands as the same user that Tomcat runs under,
which will most likely be "tomcat" or "dspace" depending on your
set-up. If you run these commands as root, chances are that the
permissions of any directories/files created by the command will
be wrong and will cause future operations to fail.
- I personally run import before clean-cache, just on the
off-chance that someone accesses an OAI page (and thus causes
the cached response to be re-generated) in between. This is
probably no longer necessary since import now also runs
clean-cache (I believe), but I'm not sure exactly when this
changed.
But we don't see any change on
/oai/request records. Our Jspui shows 30 docs, and we
have 59 on the OAI interface.
That's odd. Just in case, check the DSpace log file for any error
messages around when you're running clean-cache / import.
Could you verify that you're indeed using the solr data source for
OAI? In [dspace]/config/modules/xoai.cfg file, the "storage" parameter
configures which data source is used (database vs solr). solr is now
the default. If yours is set to "database", you'll need to run
slightly different commands as given in this section here:
https://wiki.duraspace.org/display/DSDOC5x/OAI+2.0+Server#OAI2.0Server-OAIManager%28DatabaseDataSource%29
Syntax
[dspace]/bin/dspace oai <action> [parameters]
Actions
- clean-cache Cleans the OAI cache
- compile-items Compiles DSpace items
- erase-compiled-items Erases all DSpace compiled items
cheers,
Andrea
--
Dr Andrea Schweer
Lead Software Developer, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
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.
|