[ckan-dev] UnicodeDecodeError when running paster search-index rebuild

Stefan Oderbolz stefan.oderbolz at liip.ch
Wed Jan 30 12:19:03 UTC 2019


Hi Florian

I found an old thread on the mailinglist (
https://lists.okfn.org/pipermail/ckan-dev/2018-July/022811.html) and an
open issue on github (https://github.com/ckan/ckan/issues/4128) related to
your problem.
>From what I understand, it seems to be a bug of tomcat/jetty (whatever you
are using) to return the response as unicode, which it did not do before.
Maybe you can try to switch to another version of solr/jetty/tomcat?

- Stefan

On Mon, Jan 28, 2019 at 1:12 PM <Florian.Brucker at it.karlsruhe.de> wrote:

> Hi everyone,
>
> I'm currently setting up a CKAN 2.8.2 instance, and I'm running into the
> following UnicodeDecodeError whenever I'm trying to do "paster search-index
> rebuild":
>
>
> 2019-01-28 12:37:12,326 ERROR [ckan.lib.search.common] 'ascii' codec can't
> decode byte 0xe2 in position 60: ordinal not in range(128)
> Traceback (most recent call last):
>   File "/var/transparenz.karlsruhe.de/ckan/ckan/lib/search/common.py",
> line 60, in is_available
>     conn.search(q="*:*", rows=1)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line
> 720, in search
>     response = self._select(params, handler=search_handler)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line
> 418, in _select
>     return self._send_request('get', path)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line
> 387, in _send_request
>     solr_message = self._extract_error(resp)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line
> 496, in _extract_error
>     reason, full_html = self._scrape_response(resp.headers, resp.content)
>   File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line
> 527, in _scrape_response
>     if response.startswith('<?xml'):
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 60:
> ordinal not in range(128)
>
>
> Any ideas?
>
>
> Regards,
> Florian_______________________________________________
> 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
>


-- 
Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190130/dda94c04/attachment-0002.html>


More information about the ckan-dev mailing list