[ckan-dev] Problems updating resources in CKAN 2.7.2 + Centos 7.4

David Hernández Gutiérrez davisoski at gmail.com
Wed Jan 3 10:10:37 UTC 2018


Hi.

I'm experience something very annoying in my installation of ckan 2.7.2 in
Centos 7.4 (httpd+tomcat 7).

I have followed this info to install it:

https://github.com/ckan/ckan/wiki/How-to-Install-CKAN

https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.x-on-CentOS-7

https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.5.2-on-CentOS-6.8

https://github.com/ckan/ckan/wiki/How-to-Install-CKAN-2.0-on-CentOS-6.3


When I upload file, the resource is correctly upload but I get an *Internal
Server Error, *later I refresh page an the resource is correctly updated.

[Wed Jan 03 10:03:59.113908 2018] [:error] [pid 18195] 2018-01-03
10:03:59,113 INFO  [ckan.lib.base]  /api/i18n/es render time 0.086 seconds
[Wed Jan 03 10:03:59.123945 2018] [:error] [pid 18195] 2018-01-03
10:03:59,123 INFO  [ckan.lib.base]  /api/i18n/es render time 0.004 seconds
[Wed Jan 03 10:04:11.793452 2018] [:error] [pid 18196] 2018-01-03
10:04:11,793 INFO  [ckan.lib.base]
/api/2/util/resource/format_autocomplete render time 0.028 seconds
[Wed Jan 03 10:04:14.847291 2018] [:error] [pid 18195] 2018-01-03
10:04:14,846 INFO  [ckan.lib.base]
/api/2/util/resource/format_autocomplete render time 0.023 seconds
[Wed Jan 03 10:04:15.202347 2018] [:error] [pid 18196] 2018-01-03
10:04:15,202 INFO  [ckan.lib.base]
/api/2/util/resource/format_autocomplete render time 0.020 seconds
[Wed Jan 03 10:04:26.837181 2018] [:error] [pid 18195]
/usr/lib/ckan/default/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py:79:
SAWarning: Usage of the 'related attribute set' operation is not currently
supported within the execution stage of the flush process. Results may not
be consistent.  Consider using alternative event listeners or
connection-level operations instead.
[Wed Jan 03 10:04:26.837230 2018] [:error] [pid 18195]
sess._flush_warning("related attribute set")
[Wed Jan 03 10:04:29.450327 2018] [:error] [pid 18195] [remote
172.19.153.13:12] mod_wsgi (pid=18195): Exception occurred processing WSGI
script '/etc/ckan/default/apache.wsgi'.
*[Wed Jan 03 10:04:29.450386 2018] [:error] [pid 18195] [remote
172.19.153.13:12 <http://172.19.153.13:12>] TypeError: expected byte string
object for header name, value of type unicode found*


There is an issue in github with something similar:

https://github.com/ckan/ckan/issues/3921
Any idea to fix this??

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180103/2068cc05/attachment-0002.html>


More information about the ckan-dev mailing list