[ckan-dev] Problems updating to tomcat 7.0.90 in Centos 7.4
ross at mailbolt.com
ross at mailbolt.com
Sat Jul 28 09:46:05 UTC 2018
Hi,
This particular error seems to be PySolr, and I had a look at the PySolr issues page and I found this – which seems like it might be related
https://github.com/django-haystack/pysolr/issues/119
That though is a particularly old bug, was the tomcat update related to encoding where it now sends a non-ascii encoding where before it was just us-ascii? Has anything else changed with the config/schema? 0xe2 is â if it helps you locate it in the response …
Ross.
From: ckan-dev <ckan-dev-bounces at lists.okfn.org> On Behalf Of David Hernández Gutiérrez
Sent: 28 July 2018 01:22
To: ckan-dev at lists.okfn.org
Subject: [ckan-dev] Problems updating to tomcat 7.0.90 in Centos 7.4
Hi.
I have installed ckan 2.7.2 about 7 months ago using a mix of this links:
https://github.com/ckan/ckan/wiki/How-to-Install-CKAN
Everything goes well, but now I have the requierement to update tomcat to version 7.0.90 because of a bug in version 7.0.76.
Once updated to 7.0.90 I get this error:
ERROR [ckan.lib.search.common] 'ascii' codec can't decode byte 0xe2 in
Traceback (most recent call last):
File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 57, in is_available conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pysolr.py", line 720, in search response = self._select(params, handler=search_handler)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pysolr.py", line 418, in _select return self._send_request('get', path)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pysolr.py", line 387, in _send_request solr_message = self._extract_error(resp)
File "/usr/lib/ckan/default/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/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)
Problems were found while connecting to the SOLR server
ERROR [ckan.lib.search.common] 'ascii' codec can't decode byte 0xe2 in position
Traceback (most recent call last):
File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 57, in is_available conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python2.7/site-packages/pysolr.py", line 720, in search
There is an issue open:
https://github.com/ckan/ckan/issues/4128
Tried suggestion in: https://github.com/ckan/ckan/issues/4043
pip install --upgrade psycopg2==2.7.5
Any suggestion??
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180728/d0b38a2f/attachment-0002.html>
More information about the ckan-dev
mailing list