Hi Andrea,

Thanks again for your answer.
I can confirm that we're using SOLR as database source for OAI.

We run again the suggested commands and we had no errors on the logs but no
new result. Nothing changed.

/opt/dspace/bin/dspace oai clean-cache
/opt/dspace/bin/dspace oai import –c

Please, find here the logs with debug mode on.
We did it with the tomcat user:

2016-02-08 22:24:29,115 INFO  org.dspace.core.ConfigurationManager @
Loading from classloader: file:/opt/dspace/config/dspace.cfg
2016-02-08 22:24:29,148 INFO  org.dspace.core.ConfigurationManager @ Using
dspace provided log configuration (log.init.config)
2016-02-08 22:24:29,148 INFO  org.dspace.core.ConfigurationManager @
Loading: /opt/dspace/config/log4j.properties
2016-02-08 22:24:33,149 DEBUG net.sf.ehcache.config.ConfigurationFactory @
Configuring ehcache from InputStream
2016-02-08 22:24:33,271 DEBUG net.sf.ehcache.config.BeanHandler @ Ignoring
ehcache attribute xmlns:xsi
2016-02-08 22:24:33,271 DEBUG net.sf.ehcache.config.BeanHandler @ Ignoring
ehcache attribute xsi:noNamespaceSchemaLocation
2016-02-08 22:24:33,280 DEBUG net.sf.ehcache.config.DiskStoreConfiguration
@ Disk Store Path: /tmp
2016-02-08 22:24:33,306 DEBUG net.sf.ehcache.config.ConfigurationHelper @
No CacheManagerEventListenerFactory class specified. Skipping...
2016-02-08 22:24:33,346 DEBUG net.sf.ehcache.config.ConfigurationHelper @
No BootstrapCacheLoaderFactory class specified. Skipping...
2016-02-08 22:24:33,346 DEBUG net.sf.ehcache.config.ConfigurationHelper @
No CacheExceptionHandlerFactory class specified. Skipping...
2016-02-08 22:24:35,926 INFO  org.dspace.storage.rdbms.DatabaseManager @
DBMS is 'PostgreSQL'
2016-02-08 22:24:35,926 INFO  org.dspace.storage.rdbms.DatabaseManager @
DBMS driver version is '9.4.5'
2016-02-08 22:24:35,966 INFO  org.dspace.storage.rdbms.DatabaseUtils @
Loading Flyway DB migrations from: filesystem:/opt/dspace/etc/postgres,
classpath:org.dspace.storage.rdbms.sqlmigration.postgres,
classpath:org.dspace.storage.rdbms.migration
2016-02-08 22:24:35,999 INFO
 org.flywaydb.core.internal.dbsupport.DbSupportFactory @ Database:
jdbc:postgresql://localhost:5432/dspace (PostgreSQL 9.4)
2016-02-08 22:24:36,005 DEBUG org.flywaydb.core.Flyway @ DDL Transactions
Supported: true
2016-02-08 22:24:36,018 DEBUG org.flywaydb.core.Flyway @ Schema: public

Any ideas what could be wrong here?
Is there any way to change this manually? It's very urgent to get this
fixed for us.



*Demis Estabridis*Director de TI
*UTEC*

*Universidad de Ingeniería & Tecnología*
* › *T: (511) 230 5000
 *› *Jr. Medrano Silva 165, Barranco
 › *www.utec.edu.pe* <http://www.utec.edu.pe/>


2016-02-08 22:02 GMT-05:00 Andrea Schweer <[email protected]>:

> 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
>
>

-- 
La información contenida en este e-mail y sus anexos es confidencial, 
privilegiada y está dirigida exclusivamente a su destinatario, en 
consecuencia, solo puede ser utilizada por aquel. Si usted no es el 
destinatario original, no deberá examinar, usar, copiar o distribuir este 
mensaje o la información que contiene. Si lo recibe por error, por favor 
reenvíelo a la persona que se lo envió y elimínelo. Cualquier retención o 
uso total o parcial no autorizada de este mensaje está estrictamente 
prohibida y sancionada por ley.

-- 
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