DSpace 7.4 solr-reindex-statistics not working

73 views
Skip to first unread message

Jan Broulím

unread,
Dec 12, 2022, 4:29:09 AM12/12/22
to DSpace Community
Hello,

we still have problems with the command "dspace solr-reindex-statistics", where we report this error

Exception: Error from server at http://localhost:8983/solr: Path /opt/dspace-backend/solr/statistics must be relative to SOLR_HOME, SOLR_DATA_HOME

Is there some fix to solve this?

Thank you

Jan

Tim Donohue

unread,
Dec 12, 2022, 11:36:44 AM12/12/22
to DSpace Community
Hi Jan,

It almost sounds like maybe you skipped copying the DSpace Solr cores (including "statistics") over into your Solr installation?  See step 13 of the backend install.  https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-BackendInstallation

Basically, that error sounds like Solr is complaining that the "solr/statistics" folder has not been copied over into Solr itself.   That's my best guess based on the info you've provided so far.  But, if that's not the case, we may need more information on your setup... and you also may want to check for additional errors in your logs (also check the Solr logs to see if it's having other issues starting up for some reason)

Let us know on this list if this helps.

Tim

Jan Broulím

unread,
Jan 16, 2023, 9:09:03 AM1/16/23
to DSpace Community
Hi, thanks for the reply.

I was able to solve this error, however, there is still another exception (see below).  Do you have any suggestion what might be the problem? The database seems to be reindexed.

Jan


/opt/dspace-backend/bin/dspace index-discovery -b
The script has started
(Re)building index from scratch.
       

Done with indexing
The script has completed
Exception in thread "Thread-2" java.lang.IllegalStateException: EntityManagerFactory is closed
    at org.hibernate.internal.SessionFactoryImpl.validateNotClosed(SessionFactoryImpl.java:547)
    at org.hibernate.internal.SessionFactoryImpl.getMetamodel(SessionFactoryImpl.java:704)
    at org.hibernate.engine.spi.SessionFactoryImplementor.getCollectionPersister(SessionFactoryImplementor.java:376)
    at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:464)
    at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:437)
    at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:220)
    at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:153)
    at org.hibernate.event.internal.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:159)
    at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:149)
    at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:82)
    at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:50)
    at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
    at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1367)
    at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1447)
    at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1649)
    at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1617)
    at org.hibernate.query.Query.getResultList(Query.java:165)
    at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.getResultList(CriteriaQueryTypeQueryAdapter.java:76)
    at org.dspace.core.AbstractHibernateDAO.executeCriteriaQuery(AbstractHibernateDAO.java:427)
    at org.dspace.core.AbstractHibernateDAO.list(AbstractHibernateDAO.java:162)
    at org.dspace.authorize.dao.impl.ResourcePolicyDAOImpl.findByDSoAndAction(ResourcePolicyDAOImpl.java:103)
    at org.dspace.authorize.ResourcePolicyServiceImpl.find(ResourcePolicyServiceImpl.java:103)
    at org.dspace.authorize.AuthorizeServiceImpl.getPoliciesActionFilter(AuthorizeServiceImpl.java:504)
    at org.dspace.discovery.SolrServiceResourceRestrictionPlugin.additionalIndex(SolrServiceResourceRestrictionPlugin.java:86)
    at org.dspace.discovery.indexobject.IndexFactoryImpl.buildDocument(IndexFactoryImpl.java:67)
    at org.dspace.discovery.indexobject.DSpaceObjectIndexFactoryImpl.buildDocument(DSpaceObjectIndexFactoryImpl.java:30)
    at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:139)
    at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:76)
    at org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:165)
    at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:155)
    at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:340)
    at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:327)
    at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:295)
    at org.dspace.storage.rdbms.DatabaseUtils$ReindexerThread.run(DatabaseUtils.java:1342)
Reply all
Reply to author
Forward
0 new messages