[ckan-dev] CKAN 2.5.2 test suite errors

Adrià Mercader adria.mercader at okfn.org
Wed Aug 3 13:26:09 UTC 2016


Hi James,

These errors seem to suggest that Solr is not using the right schema file.

I'm not familiar with Solr 6 but I seem to recall from other messages
on the list that it required a special setup to use file based
schemas.

Maybe someone with more experience can provide more details.

Adrià



On 21 July 2016 at 20:34, Espeland, James <james.espeland at montana.edu> wrote:
> Hello Everyone,
>
>
>
> I have been setting up a pilot instance of CKAN 2.5.2 following the CKAN
> documentation for Release 2.5.2.  I can run the Paste development server
> from the command line and see the CKAN front page.  The documentation then
> says to “run CKAN’s tests to make sure that everything’s working”.
>
>
>
> I'm still getting a number of errors when I run the tests.
>
>
>
> My pilot environment includes:
>
>
>
> centos 6.7
>
> ckan 2.5.2
>
> solr 6.0.0
>
> java 1.8.0
>
> python 2.7.11
>
> postgres 9.4.8
>
> jetty 9.3.8
>
>
>
> I have created a solr core named ckan1.  I set the solr_url entry in
> test-core.ini to:
>
>
>
> http://127.0.0.1:8393/solr/ckan1
>
>
>
> I soft-linked the ckan src schema.xml into my core config directory as
> follows:
>
>
>
> ln -s /usr/lib/ckan/default/src/ckan/ckan/config/solr/schema.xml
> /var/solr/data/ckan1/conf/schema.xml
>
>
>
> When I run the tests, I get the following types of errors in the solr.log
> file:
>
>
>
> **********
>
>
>
> 2016-07-21 19:05:02.647 ERROR (qtp1634198-20) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: undefined
> field site_id
>
>
>
> 2016-07-21 19:05:09.544 ERROR (qtp1634198-15) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: s
>
> ort param field can't be found: metadata_modified
>
>
>
> 2016-07-21 19:05:21.759 ERROR (qtp1634198-13) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=812b3b0a-30e4-4aa6-bcd6-9e1fe2072d22] unknown field 'data_dict'
>
>
>
> 2016-07-21 19:05:40.053 ERROR (qtp1634198-13) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=9315d7ca-7c3e-4e59-92f6-8d494e1d374d] unknown field
> 'res_description'
>
>
>
> 2016-07-21 19:05:56.431 ERROR (qtp1634198-15) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: u
>
> ndefined field capacity
>
>
>
> 016-07-21 19:06:56.184 ERROR (qtp1634198-15) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=abed426b-cfa4-45b1-8403-cbf23c3fa899] unknown field 'maintainer'
>
>
>
> 2016-07-21 19:07:38.205 ERROR (qtp1634198-15) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=0cdcd6d7-8cf6-4767-bb3a-f9ed82141a6f] unknown field 'owner_org'
>
>
>
> 2016-07-21 19:08:51.554 ERROR (qtp1634198-17) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=d9567b82-d3f0-4c17-b222-d9a7499f7940] unknown field 'capacity'
>
>
>
> 2016-07-21 19:08:51.638 ERROR (qtp1634198-20) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: E
>
> RROR: [doc=test-index] unknown field 'views_recent'
>
>
>
> 2016-07-21 19:08:51.727 ERROR (qtp1634198-16) [   x:ckan1]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: undefined
> field entity_type
>
>
>
> **********
>
>
>
> I suspect that something isn’t configured correctly.
>
>
>
> Any help or advice regarding how to correct this would be greatly
> appreciated.
>
>
>
> Best regards,
>
>
>
> --- Jim Espeland
>
> james.espeland at montana.edu
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list