[ckan-dev] CKAN 2.5.2 test suite errors

Pedro G Silva pedro.gracio at deimos.com.pt
Wed Jul 13 09:28:50 UTC 2016


maybe your core doesn't respect the ckan schema? I had to do this on my
install (core naem is ckan)

sudo -u solr mkdir -p /var/solr/data/configsets/ckan/conf
sudo ln -s /usr/lib/ckan/default/src/ckan/ckan/config/solr/schema.xml
/var/solr/data/configsets/ckan/conf/schema.xml
sudo -u solr cp
/opt/solr/server/solr/configsets/basic_configs/conf/solrconfig.xml
/var/solr/data/configsets/ckan/conf/.
sudo -u solr cp
/opt/solr/server/solr/configsets/basic_configs/conf/synonyms.txt
/var/solr/data/configsets/ckan/conf/.
sudo -u solr cp
/opt/solr/server/solr/configsets/basic_configs/conf/protwords.txt
/var/solr/data/configsets/ckan/conf/.

restart solr

wget --quiet  "
http://localhost:8983/solr/admin/cores?action=CREATE&name=ckan&configSet=ckan
"

On Wed, Jul 13, 2016 at 6:40 AM, 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 8.4.20
>
> jetty 9.2.15
>
>
> I have created a solr core named ckan1.  I set the solr_url entry in
> test-core.ini to:
>
> http://127.0.0.1:8983/solr/ckan1
>
>
> I'm seeing a number of these errors:
>
>
> SearchIndexError: SOLR 'http://127.0.0.1:8983/solr/ckan1' exception: HTTP
> code=400, Reason=Bad Request, body=<?xml version="1.0" encoding="UTF-8"?>
>
>
> I also see ImportErrors that state there is no module named factory.  When
> I run the following command:
>
>
> pip install factory
>
>
> I get this response:
>
>
> Requirement already satisfied (use --upgrade to upgrade): factory in
> /usr/lib/ckan/default/lib/python2.7/site-packages
>
>
> Any help or advice regarding how to get the test suite to pass 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
>
>


-- 


[image: DEIMOS Engenharia, SA] <http://www.deimos.pt>
*Pedro Gracio Silva*
Aerospace Systems / Production Center

*Av. D. Joao II, Lt 1.17.01, 10 • 1998-023 Lisboa, Portugal*
Ph: +351 21 893 3020 • Fax: +351 21 896 9099
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160713/ab94b102/attachment-0003.html>


More information about the ckan-dev mailing list