Hi Ivan,
Am facing with following problem after turning ON Discovery feature.
INFO [main] (DSpaceKernelInit.java:52) - Created new kernel:
DSpaceKernel:org.dspace:name=ffc05c8f-416f-499b-a722-04c872402ab9,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
INFO [main] (ConfigurationManager.java:1224) - Loading from classloader:
file:/dspace/config/dspace.cfg
INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log
configuration (log.init.config)
INFO [main] (ConfigurationManager.java:1224) - Loading:
/dspace/config/log4j.properties
Exception: Error executing query
org.dspace.discovery.SearchServiceException: Error executing query
at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:418)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.apache.solr.client.solrj.SolrServerException: Error
executing query
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
at
org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
at
org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:106)
at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:388)
... 6 more
Caused by: org.apache.solr.common.SolrException: Not Found
Not Found
request: http://localhost/solr/search/select?q=search.resourcetype:2 AND
search.resourceid:1&wt=javabin&version=2
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
... 9 more
Also, page load after server startup is taking lot of time and when check
logs, it shows same exception.
Can you please help out?
-Abhishek Kulkarni
Illinois Institute of Technology
On Wed, Apr 24, 2013 at 1:29 PM, helix84 <[email protected]> wrote:
> On Wed, Apr 24, 2013 at 7:47 PM, abhishek.kulkarni
> <[email protected]> wrote:
> > Search started working after I refreshed the indexes.
> > However, I wasn't successful in refreshing Discovery.
> > Faced exception: -
> >
> > Exception: java.net.ConnectException: Connection refused
> > org.dspace.discovery.SearchServiceException: java.net.ConnectException:
> > Connection refused
> > at
> > org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:418)
> > at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > Maybe, I might not be using it in DSpace, and hence the connection
> refused
> > exception.
>
> You're right, Discovery it not enabled by default, so if you didn't
> enable it, you don't have to worry about update-discovery-index not
> working.
>
> > java.lang.RuntimeException: ERROR: permission denied for relation
> > versionitem
>
> Yes, this is the actual error. The "versionitem" tables and some other
> related stuff were created by the database_schema_18-3.sql upgrade
> script. According to the error message, you don't have the permission
> to access this new table. So you probably run psql <
> database_schema_18-3.sql as a different database user (role) than the
> rest of your dspace tables. The easiest solution at this point would
> be to drop your upgraded database and do the import and upgrade steps
> again, this time using the correct databse user (role). You will know
> what the correct user should be by looking at "db.username" in
> dspace.cfg.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette