[ckan-dev] Problem downloading files since 2.2 CKAN upgrade (from 2.0.2)

David Read david.read at hackneyworkshop.com
Thu Oct 16 10:33:39 UTC 2014


Jesus,

You've hit this bug:
https://github.com/ckan/ckan/pull/1534
It only affects downloads with extensions that it doesn't recognize,
which includes .ttl. The simple solution is to upgrade to CKAN 2.2.1.

David

On 16 October 2014 09:19, Jesús Redondo <redondogarciajesus at gmail.com> wrote:
> Hello,
>
> I decided to update a CKAN 2.0.2 instance to 2.2 version. The original one
> was installed from package, so I followed these steps:
> http://docs.ckan.org/en/847-new-theming-docs/upgrade-package-to-minor-release.html
>
> The problem occurs when I try to download some kind of files from de
> catalog. For example:
>
> The portal URL is: http://www.caceresabierto.es/
>
> The resource URL I want to download is:
> http://www.caceresabierto.es/dataset/un_dataset_de_prueba2/resource/f67c2aed-5bb8-4282-896c-5c028f120c13
>
> The URL to download the resource:
> http://www.caceresabierto.es/dataset/2714d351-74ea-48b8-b779-d82d1eaa921e/resource/f67c2aed-5bb8-4282-896c-5c028f120c13/download/alojamientostripletas.ttl
>
> The error message I receive is "Internal Server Error". Checking the apache2
> logs I have found these error messages:
>
>
> [Thu Oct 16 10:14:10 2014] [error] 2014-10-16 10:14:10,096 INFO
> [ckan.lib.base]
> /dataset/2714d351-74ea-48b8-b779-d82d1eaa921e/resource/f67c2aed-5bb8-4282-896c-5c028f120c13/download/alojamientostripletas.ttl
> render time 0.043 seconds
> [Thu Oct 16 10:14:10 2014] [error] [client 127.0.0.1] mod_wsgi (pid=25871):
> Exception occurred processing WSGI script '/etc/ckan/default/apache.wsgi'.
> [Thu Oct 16 10:14:10 2014] [error] [client 127.0.0.1] TypeError: expected
> byte string object for header value, value of type NoneType found
>
>
> Not sure why this is happening. I have found this related question [1], so
> it seems like I am not the only one facing this problem. Regards.
>
> Jesús Redondo
>
>
> [1]: https://lists.okfn.org/pipermail/ckan-dev/2014-June/007627.html
>
> _______________________________________________
> 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
>



More information about the ckan-dev mailing list