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

Matthew Fullerton matt.fullerton at gmail.com
Wed Jan 3 11:50:13 UTC 2018


Are you certain that log is coming at the time of the Internal Server
Error? I don't think the two are related.

What might be happening is this:
- You upload the resource, and after a successful upload, you are
redirected to the resource view page
- In the background, the resource is being uploaded to the datastore
- The first view of the resource you get is before the datastore upload is
completed
- Something goes wrong somewhere because the resource is not in the
datastore, possibly something with the resource view itself, or another bug

To get more insight, you could adjust the file types that datapusher tries
to upload automatically in the config file or temporarily disable the
datapusher plugin completely. That will leave you at point 3 above and give
you more time to debug.

That's all just a guess though at what's going on from your description and
a bit of experience...

Best,
Matt

On 3 January 2018 at 11:10, David Hernández Gutiérrez <davisoski at gmail.com>
wrote:

> 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
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180103/d1cb55ce/attachment-0003.html>


More information about the ckan-dev mailing list