[ckan-discuss] Problems using schema.xml provided by CKAN 2.2

David Hernández Gutiérrez davisoski at gmail.com
Fri Jan 3 16:31:38 UTC 2014


Hi.

After installing correctly ckan I have decided to re-install in a new
ubuntu 12.04.


I have decided to install jetty + solr + jdk6 first, and everythings ok. (
http://127.0.0.1:8983/solr)

Later I have followed the steps in:
http://docs.ckan.org/en/latest/install-from-source.html

without re-install jetty+solr +jdk6.

Setting up solr in 5.2 I get error with *schema.xml* provided by CKAN



*paster db init -c /etc/ckan/default/development.ini*

This is the result with the schema.xml provided by CKAN. If I change
again with the solr everything is ok.




2014-01-03 16:26:25,028 ERROR [ckan.lib.search.common] HTTP code=500,
reason=Severe errors in solr configuration.  Check your log files for more
detailed information on what may be wrong.  If you want solr to continue
after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError>  in null
-------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'schema.xml' in classpath
or '/usr/share/solr/conf/', cwd=/var/cache/jetty/tmp     at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
    at
org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:222)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:94)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:521)     at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
    at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart
Traceback (most recent call last):
  File "/root/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line
51, in is_available
    conn.query("*:*", rows=1)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 703, in query
    return self.select(*args, **params)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 798, in __call__
    xml = self.raw(**params)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 823, in raw
    rsp = conn._post(self.selector, request, conn.form_headers)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 639, in _post
    return check_response_status(self.conn.getresponse())
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 1097, in check_response_status
    raise ex
SolrException: HTTP code=500, reason=Severe errors in solr configuration.
Check your log files for more detailed information on what may be wrong.
If you want solr to continue after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError>  in null
-------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'schema.xml' in classpath
or '/usr/share/solr/conf/', cwd=/var/cache/jetty/tmp     at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
    at
org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:222)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:94)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:521)     at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart
2014-01-03 16:26:25,029 WARNI [ckan.lib.search] Problems were found while
connecting to the SOLR server
2014-01-03 16:26:26,275 ERROR [ckan.lib.search.common] HTTP code=500,
reason=Severe errors in solr configuration.  Check your log files for more
detailed information on what may be wrong.  If you want solr to continue
after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError>  in null
-------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'schema.xml' in classpath
or '/usr/share/solr/conf/', cwd=/var/cache/jetty/tmp     at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
    at
org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:222)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:94)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:521)     at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
    at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart
Traceback (most recent call last):
  File "/root/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line
51, in is_available
    conn.query("*:*", rows=1)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 703, in query
    return self.select(*args, **params)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 798, in __call__
    xml = self.raw(**params)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 823, in raw
    rsp = conn._post(self.selector, request, conn.form_headers)
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 639, in _post
    return check_response_status(self.conn.getresponse())
  File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py",
line 1097, in check_response_status
    raise ex
SolrException: HTTP code=500, reason=Severe errors in solr configuration.
Check your log files for more detailed information on what may be wrong.
If you want solr to continue after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError>  in null
-------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'schema.xml' in classpath
or '/usr/share/solr/conf/', cwd=/var/cache/jetty/tmp     at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
    at
org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:222)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:94)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:521)     at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart
2014-01-03 16:26:26,276 WARNI [ckan.lib.search] Problems were found while
connecting to the SOLR server
2014-01-03 16:26:26,562 INFO  [ckan.model] CKAN database version remains
as: 71
2014-01-03 16:26:26,711 INFO  [ckan.model] Database initialised
*Initialising DB: SUCCESS*



In web browser 127.0.0.1:8983/solr
HTTP ERROR 500

Problem accessing /solr/. Reason:

    Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change:

 <abortOnConfigurationError>false</abortOnConfigurationError>

in null

-------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'schema.xml' in
classpath or '/usr/share/solr/conf/', cwd=/var/cache/jetty/tmp
	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:262)
	at org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:222)
	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:94)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:521)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:224)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
	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:622)
	at org.mortbay.start.Main.invokeMain(Main.java:194)
	at org.mortbay.start.Main.start(Main.java:534)
	at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
	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:622)
	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/pipermail/ckan-discuss/attachments/20140103/2b2a8328/attachment-0001.html>


More information about the ckan-discuss mailing list