Solr No Cores Available

209 views
Skip to first unread message

Precious Kapfunde

unread,
Sep 6, 2023, 9:58:08 AM9/6/23
to DSpace Community
Good day

I am kindly asking for assistance, my dspace site is not working and I saw that there is a challenge with my solr service. The following is the error, how can I fix it

DSpace Community

unread,
Sep 6, 2023, 12:29:24 PM9/6/23
to DSpace Community
Hi, 

The information you shared is not an error from Solr.  It's just a warning (WARN).  An error would be displayed in red and likely include the text "ERROR".

So, it's not possible to help unless you share the complete details of the error you are seeing in DSpace.  I'd recommend following our troubleshooting guide for details on how to find detailed errors in DSpace: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Tim

Precious Kapfunde

unread,
Sep 6, 2023, 12:52:34 PM9/6/23
to DSpace Community
Alright thank you. The error I am seeing from my dspace is as follows.


 ERROR org.dspace.statistics.SolrLoggerServiceImpl @ The GeoLite Database file is missing (/dspace/config/GeoLite2-City.mmdb)! Solr Statistics cannot generate locati>
java.io.FileNotFoundException: /dspace/config/GeoLite2-City.mmdb (No such file or directory)
        at java.io.RandomAccessFile.open0(Native Method)
        at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
        at com.maxmind.db.BufferHolder.<init>(BufferHolder.java:19)
        at com.maxmind.db.Reader.<init>(Reader.java:116)
        at com.maxmind.geoip2.DatabaseReader.<init>(DatabaseReader.java:66)
        at com.maxmind.geoip2.DatabaseReader.<init>(DatabaseReader.java:54)
        at com.maxmind.geoip2.DatabaseReader$Builder.build(DatabaseReader.java:160)
        at org.dspace.statistics.SolrLoggerServiceImpl.afterPropertiesSet(SolrLoggerServiceImpl.java:170)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1127)
        at org.dspace.servicemanager.spring.SpringServiceManager.getServiceByName(SpringServiceManager.java:103)
        at org.dspace.servicemanager.DSpaceServiceManager.getServiceByName(DSpaceServiceManager.java:284)
        at org.dspace.statistics.factory.StatisticsServiceFactoryImpl.getSolrLoggerService(StatisticsServiceFactoryImpl.java:26)
        at org.dspace.statistics.SolrLoggerUsageEventListener.<init>(SolrLoggerUsageEventListener.java:35)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1032)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)

--
Precious Kapfunde
Assistant Librarian-Systems

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/08341867-7b77-4c4c-b46d-df664ecb79e4n%40googlegroups.com.

DSpace Community

unread,
Sep 6, 2023, 1:02:43 PM9/6/23
to DSpace Community
Hi,

it sounds like you are missing the City Database File for your Solr Statistics.  Assuming you are using DSpace 7, here's how to install it: https://wiki.lyrasis.org/display/DSDOC7x/SOLR+Statistics#SOLRStatistics-ManagingtheCityDatabaseFile  (There are two options, you should just choose one)

Tim

Precious Kapfunde

unread,
Sep 12, 2023, 7:31:35 AM9/12/23
to DSpace Community
I tried creating the database but still, it did not change.

DSpace Community

unread,
Sep 12, 2023, 1:27:56 PM9/12/23
to DSpace Community
Hi, 

If the exact error is still " java.io.FileNotFoundException: /dspace/config/GeoLite2-City.mmdb "
then that would mean that DSpace cannot find a file at "/dspace/config/GeoLite2-City.mmdb".

Either the file is missing, named incorrectly, or maybe the " usage-statistics.dbfile" setting is incorrect in your local.cfg.  Or it could be that there's a permissions issue and DSpace cannot read that file.  You also should restart the DSpace backend just in case it has cached an old value.

If the error message is now different, then that would meant that you fixed that first issue and there's a new issue.  It's important to double check the error you are getting via the troubleshooting guide: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)

Tim

Subrat Nanda

unread,
Oct 13, 2023, 7:28:00 AM10/13/23
to DSpace Community
Dear Team,

Can it be possible to view usage statistics of geographical maps of a country and city in the localhost server?
I am running the DSpace-CRIS v2023.01.00 on a localhost. I have downloaded and configured the path of dbfile in local.cfg. I have checked the health status in the user interface and the status is ok without any issue. But I can't see any visual map of the country and city under statistics.
Kindly suggest.

Thank you.
Reply all
Reply to author
Forward
0 new messages